mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix: Patch error and tests
This commit is contained in:
@@ -772,7 +772,7 @@ def update_place_of_supply(doc, method):
|
||||
if country != 'India':
|
||||
return
|
||||
|
||||
address = frappe.db.get_value("Address", doc.customer_address, ["gst_state", "gst_state_number"], as_dict=1)
|
||||
address = frappe.db.get_value("Address", doc.get('customer_address'), ["gst_state", "gst_state_number"], as_dict=1)
|
||||
if address and address.gst_state and address.gst_state_number:
|
||||
doc.place_of_supply = cstr(address.gst_state_number) + "-" + cstr(address.gst_state)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user