Skip to content

Commit

Permalink
fix(india): keyerror while generating e-way bill from an e-invoice (f…
Browse files Browse the repository at this point in the history
…rappe#30879)

(cherry picked from commit ee7a7eb)
  • Loading branch information
maharshivpatel authored and mergify[bot] committed May 6, 2022
1 parent d60a6cb commit 98d799e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/regional/india/e_invoice/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def get_eway_bill_details(invoice):
dict(
gstin=invoice.gst_transporter_id,
name=invoice.transporter_name,
mode_of_transport=mode_of_transport[invoice.mode_of_transport],
mode_of_transport=mode_of_transport[invoice.mode_of_transport or ""] or None,
distance=invoice.distance or 0,
document_name=invoice.lr_no,
document_date=format_date(invoice.lr_date, "dd/mm/yyyy"),
Expand Down

0 comments on commit 98d799e

Please sign in to comment.