From cc61926850865743e03e0517648e4e62c5fba33b Mon Sep 17 00:00:00 2001 From: Smit Vora Date: Tue, 21 Jan 2025 11:16:33 +0530 Subject: [PATCH] fix: update address mapping; variable names; conditional IRN being set (cherry picked from commit f8d4c06bf88e83c9df975f8903accdbaada65979) --- .../e_waybill_detailed/e_waybill_detailed.css | 45 ++++++--------- .../e_waybill_detailed.html | 56 ++++++------------- .../e_waybill_detailed.json | 8 +-- 3 files changed, 38 insertions(+), 71 deletions(-) diff --git a/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.css b/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.css index 889990203..1bca28f79 100644 --- a/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.css +++ b/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.css @@ -1,4 +1,4 @@ -.align-middle{ +.align-middle { vertical-align: middle; } @@ -7,62 +7,51 @@ color: black; } -.qr-code{ - -} - -.attribute{ - -} - -.barcode{ - -} - -.no-border{ +.no-border { border: none !important; } -.no-border > *{ +.no-border > * { border: none; } - -.attribute-value{ + +.attribute-value { font-weight: bold; } -.bold{ +.bold { font-weight: bold; } -.table-element{ +.table-element { font-size: 10px; } -.table-element > .table-heading{ +.table-element > .table-heading { font-size: 13px; font-weight: bold; } -.table-heading{ +.table-heading { font-size: 13px; font-weight: bold; } -thead > th{ +thead > th { background-color: white !important; } -table, th, td { +table, +th, +td { border: 1px solid black; border-collapse: collapse; } -.table-element .border div{ +.table-element .border div { border: 1px solid black !important; width: 100%; padding: 5px; - } @media print { @@ -73,8 +62,8 @@ table, th, td { } } -.print-format tbody>tr>td, -.print-format tbody>tr>th { +.print-format tbody > tr > td, +.print-format tbody > tr > th { padding: 6px !important; border-top: none; color: black; @@ -129,4 +118,4 @@ table, th, td { margin-top: 5px; width: 95px !important; image-rendering: -webkit-optimize-contrast; -} \ No newline at end of file +} diff --git a/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.html b/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.html index c9e3b2961..54e890305 100644 --- a/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.html +++ b/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.html @@ -76,12 +76,14 @@

e-Waybill

{{ get_transport_type(data.transactionType) }} + {% if irn %} Irn: - {{data.irn}} + {{irn}} + {% endif %} @@ -90,37 +92,34 @@

e-Waybill

- {% set from_state = get_state(data.fromStateCode) %} -
From
GSTIN: {{ add_spacing(data.fromGstin,5) }}
{{data.fromTrdName}}
-
{{ from_state }}
{# get_state_by_state_code #} +
{{ get_state(data.fromStateCode) }}
{# get_state_by_state_code #}
:: Dispatch From ::
{{ data.fromAddr1 }}
{{ data.fromAddr2 }}
-
{{ data.fromPlace }}, {{ from_state }}-{{ data.fromPincode }}
+
{{ data.fromPlace }}, {{ get_state(data.actFromStateCode) }}-{{ data.fromPincode }}
- {% set to_state = get_state(data.toStateCode) %}
To
GSTIN: {{ add_spacing(data.toGstin,5) }}
{{data.toTrdName}}
-
{{ to_state }}
{# get_state_by_state_code #} +
{{ get_state(data.toStateCode) }}
{# get_state_by_state_code #}
:: Ship to ::
{{ data.toAddr1 }}
{{ data.toAddr2 }}
-
{{ data.toPlace }}, {{ to_state }}-{{ data.toPincode }}
+
{{ data.toPlace }}, {{ get_state(data.actToStateCode) }}-{{ data.toPincode }}
@@ -257,11 +256,11 @@

e-Waybill

Transporter ID & Name: - {{ data.transporterId }} & {{ data.transporterName }} + {{ add_spacing(data.transporterId, 5) or "None" }} & {{ data.transporterName or "None" }} Transporter Doc. No & Date: - {{ data.transDocNo|default('') }} - {{ data.transDocDate|default('') }} + {{ data.transDocNo or "None" }} & {{ data.transDocDate or "None" }} @@ -295,28 +294,28 @@

e-Waybill

- {% for item in data.VehiclListDetails %} + {% for detail in data.VehiclListDetails %} - {{ get_transport_mode(item.transMode) }} + {{ get_transport_mode(detail.transMode) }} - {{ item.vehicleNo }} + {{ detail.vehicleNo }} - {{ item.fromPlace }} + {{ detail.fromPlace }} - {{ item.enteredDate }} + {{ detail.enteredDate }} - {{ item.userGSTINTransin }} + {{ detail.userGSTINTransin }} - {{ item.cebwNo | default('-') }} + {{ detail.cebwNo | default('-') }} - {{ item.multiVehInfo | default('-') }} + {{ detail.multiVehInfo | default('-') }} @@ -337,27 +336,6 @@

e-Waybill

- - - - - - - - - {#
- -

e-Waybill

-
- - - -
- #} - diff --git a/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.json b/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.json index d028983b8..971df3175 100644 --- a/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.json +++ b/india_compliance/gst_india/print_format/e_waybill_detailed/e_waybill_detailed.json @@ -5,7 +5,7 @@ "custom_format": 0, "default_print_language": "en", "disabled": 0, - "doc_type": "Print-E waybill", + "doc_type": "e-Waybill Log", "docstatus": 0, "doctype": "Print Format", "font_size": 14, @@ -15,11 +15,11 @@ "margin_left": 0.0, "margin_right": 0.0, "margin_top": 0.0, - "modified": "2025-01-16 12:01:14.556660", - "modified_by": "admin@example.com", + "modified": "2025-01-21 10:42:52.756385", + "modified_by": "Administrator", "module": "GST India", "name": "e-Waybill Detailed", - "owner": "admin@example.com", + "owner": "Administrator", "page_number": "Hide", "print_format_builder": 0, "print_format_builder_beta": 0,