mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
find wrong vouchers
This commit is contained in:
@@ -2,7 +2,7 @@ def execute():
|
|||||||
import webnotes
|
import webnotes
|
||||||
from webnotes.utils import flt
|
from webnotes.utils import flt
|
||||||
vouchers = webnotes.conn.sql("""
|
vouchers = webnotes.conn.sql("""
|
||||||
select parent, parenttype, modified, sum(tax_amount) as tax from `tabPurchase Taxes and Charges`
|
select parent, parenttype, modified, sum(if(add_deduct_tax='Add', tax_amount, -tax_amount)) as tax from `tabPurchase Taxes and Charges`
|
||||||
where modified >= '2012-07-12'
|
where modified >= '2012-07-12'
|
||||||
and category in ('Total', 'Valuation and Total')
|
and category in ('Total', 'Valuation and Total')
|
||||||
and parenttype != 'Purchase Taxes and Charges Master'
|
and parenttype != 'Purchase Taxes and Charges Master'
|
||||||
|
|||||||
Reference in New Issue
Block a user