mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Merge branch 'hotfix'
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
__version__ = '7.1.9'
|
__version__ = '7.1.10'
|
||||||
|
|
||||||
def get_default_company(user=None):
|
def get_default_company(user=None):
|
||||||
'''Get default company for user'''
|
'''Get default company for user'''
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ def execute():
|
|||||||
si_list = frappe.db.sql("""
|
si_list = frappe.db.sql("""
|
||||||
select distinct parent
|
select distinct parent
|
||||||
from `tabSales Invoice Payment`
|
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
|
count = 0
|
||||||
@@ -20,4 +21,4 @@ def execute():
|
|||||||
count +=1
|
count +=1
|
||||||
|
|
||||||
if count % 200 == 0:
|
if count % 200 == 0:
|
||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user