Skip to content

Commit

Permalink
Merge pull request #30912 from frappe/mergify/bp/version-13-hotfix/pr…
Browse files Browse the repository at this point in the history
…-30879

fix(india): keyerror while generating e-way bill from an e-invoice (backport #30879)
  • Loading branch information
deepeshgarg007 authored May 6, 2022
2 parents d60a6cb + 98d799e commit 96db9ee
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 96db9ee

Please sign in to comment.