From b6e2488847d219caedd0c43042aeac4140a671ec Mon Sep 17 00:00:00 2001 From: Ravi Dey Date: Fri, 8 Jul 2011 15:33:18 +0530 Subject: [PATCH] party_address fix --- accounts/doctype/form_16a/form_16a.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/accounts/doctype/form_16a/form_16a.py b/accounts/doctype/form_16a/form_16a.py index 28d38c9779..292c52a2da 100644 --- a/accounts/doctype/form_16a/form_16a.py +++ b/accounts/doctype/form_16a/form_16a.py @@ -39,12 +39,12 @@ class DocType(TransactionBase): 'company_address': cstr(comp_det[0][0]), 'registration_details': cstr(comp_det[0][1]) } - return cstr(ret) - + return cstr(ret) + # Get party details #------------------ def get_party_det(self): - party_det=sql("select master_type, master_name, pan_number from `tabAccount` where name='%s'" % self.doc.party_name) + party_det=sql("select master_type, master_name from `tabAccount` where name='%s'" % self.doc.party_name) if party_det and party_det[0][0]=='Supplier': try: rec = sql("select name, address_line1, address_line2, city, country, pincode, state from `tabAddress` where supplier = '%s' and docstatus != 2 order by is_primary_address desc limit 1" %(party_det[0][1]), as_dict = 1) @@ -53,7 +53,6 @@ class DocType(TransactionBase): address_display = '' ret = { - 'pan_number': cstr(party_det[0][2]) , 'party_address': cstr(address_display) }