Additional GST related fields in Invoice and Sales/Purchase Register reort (#10405)

This commit is contained in:
Nabin Hait
2017-08-21 08:28:55 +05:30
committed by Makarand Bauskar
parent 1f49f511aa
commit 879e162cce
15 changed files with 204 additions and 64 deletions

View File

@@ -79,7 +79,7 @@ def set_address_details(out, party, party_type, doctype=None, company=None):
out.shipping_address = get_address_display(out["shipping_address_name"])
out.update(get_fetch_values(doctype, 'shipping_address_name', out.shipping_address_name))
if doctype and doctype in ['Sales Invoice']:
if doctype and doctype in ['Delivery Note', 'Sales Invoice']:
out.update(get_company_address(company))
if out.company_address:
out.update(get_fetch_values(doctype, 'company_address', out.company_address))