mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
Place of Supply set on save Delivery Note if Customer Address Present (#13492)
This commit is contained in:
committed by
Nabin Hait
parent
d5f9ebd008
commit
2505c74d64
@@ -64,7 +64,7 @@ def get_itemised_tax_breakup_data(doc):
|
||||
def set_place_of_supply(doc, method):
|
||||
if not frappe.get_meta('Address').has_field('gst_state'): return
|
||||
|
||||
if doc.doctype == "Sales Invoice":
|
||||
if doc.doctype in ("Sales Invoice", "Delivery Note"):
|
||||
address_name = doc.shipping_address_name or doc.customer_address
|
||||
elif doc.doctype == "Purchase Invoice":
|
||||
address_name = doc.shipping_address or doc.supplier_address
|
||||
|
||||
Reference in New Issue
Block a user