Update set_base_amount_in_invoice_payment_table.py

This commit is contained in:
Nabin Hait 2016-11-10 11:24:22 +05:30 committed by GitHub
parent 0f2e3a4e95
commit 84ecaac27d

View File

@ -6,7 +6,8 @@ def execute():
si_list = frappe.db.sql("""
select distinct parent
from `tabSales Invoice Payment`
where docstatus!=2 and amount != 0 and base_amount = 0
where docstatus!=2 and parenttype = 'Sales Invoice'
and amount != 0 and base_amount = 0
""")
count = 0