From 84ecaac27d1df88d405d8b0dbddf6055b016ae4f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 10 Nov 2016 11:24:22 +0530 Subject: [PATCH 1/2] Update set_base_amount_in_invoice_payment_table.py --- .../patches/v7_0/set_base_amount_in_invoice_payment_table.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/patches/v7_0/set_base_amount_in_invoice_payment_table.py b/erpnext/patches/v7_0/set_base_amount_in_invoice_payment_table.py index 89ce43bfa3..5dd61a06cc 100644 --- a/erpnext/patches/v7_0/set_base_amount_in_invoice_payment_table.py +++ b/erpnext/patches/v7_0/set_base_amount_in_invoice_payment_table.py @@ -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 @@ -20,4 +21,4 @@ def execute(): count +=1 if count % 200 == 0: - frappe.db.commit() \ No newline at end of file + frappe.db.commit() From 27c1f85836e8a3dd0dc6472167cc06ab885450fa Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 10 Nov 2016 11:55:33 +0600 Subject: [PATCH 2/2] bumped to version 7.1.10 --- erpnext/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/__init__.py b/erpnext/__init__.py index 152584976b..1eee36041f 100644 --- a/erpnext/__init__.py +++ b/erpnext/__init__.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals import frappe -__version__ = '7.1.9' +__version__ = '7.1.10' def get_default_company(user=None): '''Get default company for user'''