[Fix] gst_state field issue (#12481)
This commit is contained in:
parent
35d8ce4fbd
commit
0a2d83d40c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user