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
  • Loading branch information
maharshivpatel authored and hrwX committed May 10, 2022
1 parent 61b74a9 commit a8556eb
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 @@ -443,7 +443,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 a8556eb

Please sign in to comment.