[Fix] gst_state field issue (#12481)

This commit is contained in:
rohitwaghchaure 2018-01-15 11:55:25 +05:30 committed by Nabin Hait
parent 35d8ce4fbd
commit 0a2d83d40c

View File

@ -62,6 +62,8 @@ def get_itemised_tax_breakup_data(doc):
return hsn_tax, hsn_taxable_amount
def set_place_of_supply(doc, method):
if not frappe.get_meta('Address').has_field('gst_state'): return
address_name = doc.shipping_address_name or doc.customer_address
if address_name:
address = frappe.db.get_value("Address", address_name, ["gst_state", "gst_state_number"], as_dict=1)