mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
Taxes and charges category issue fixed
This commit is contained in:
@@ -182,7 +182,7 @@ class DocType:
|
||||
if le_map['table_field']:
|
||||
for d in getlist(doclist,le_map['table_field']):
|
||||
# purchase_tax_details is the table of other charges in purchase cycle
|
||||
if le_map['table_field'] != 'purchase_tax_details' or (le_map['table_field'] == 'purchase_tax_details' and d.fields.get('category') != 'For Valuation'):
|
||||
if le_map['table_field'] != 'purchase_tax_details' or (le_map['table_field'] == 'purchase_tax_details' and d.fields.get('category') != 'Valuation'):
|
||||
self.make_single_entry(doc,d,le_map,cancel, merge_entries)
|
||||
else:
|
||||
self.make_single_entry(None,doc,le_map,cancel, merge_entries)
|
||||
|
||||
@@ -37,7 +37,7 @@ tax_acc = [c[0] for c in sql("""select distinct account_head
|
||||
from `tabPurchase Taxes and Charges`
|
||||
where parenttype = 'Purchase Invoice'
|
||||
and add_deduct_tax = 'Add'
|
||||
and category in ('For Total', 'For Both')
|
||||
and category in ('Total', 'Valuation and Total')
|
||||
and docstatus=1
|
||||
order by account_head asc""")]
|
||||
|
||||
@@ -82,7 +82,7 @@ for r in res:
|
||||
where parent = '%s'
|
||||
and parenttype = 'Purchase Invoice'
|
||||
and add_deduct_tax = 'Add'
|
||||
and category in ('For Total', 'For Both')
|
||||
and category in ('Total', 'Valuation and Total')
|
||||
group by account_head
|
||||
""" %(r[col_idx['ID']],))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user