Merge branch 'master' of github.com:webnotes/erpnext
Conflicts: patches/patch.py
This commit is contained in:
commit
a5e728a358
@ -100,7 +100,9 @@ class DocType:
|
||||
def post_entries(self):
|
||||
sql("LOCK TABLE `tabGL Entry` WRITE")
|
||||
# post each gl entry (batch or complete)
|
||||
gle = sql("select name, account, debit, credit, is_opening, posting_date from `tabGL Entry` where fiscal_year=%s and ifnull(is_cancelled,'No')='No' and company=%s", (self.doc.name, self.doc.company))
|
||||
gle = sql("select name, account, debit, credit, is_opening, posting_date from `tabGL Entry` where fiscal_year=%s and ifnull(is_cancelled,'No')='No' and company=%s
|
||||
|
||||
", (self.doc.name, self.doc.company))
|
||||
account_details = {}
|
||||
|
||||
cnt = 0
|
||||
@ -163,7 +165,7 @@ class DocType:
|
||||
# Clear outstanding
|
||||
self.clear_outstanding()
|
||||
sql("LOCK TABLE `tabGL Entry` WRITE")
|
||||
against_voucher = sql("select against_voucher, against_voucher_type from `tabGL Entry` where fiscal_year=%s and is_cancelled='No' and company=%s group by against_voucher, against_voucher_type for update", (self.doc.name, self.doc.company))
|
||||
against_voucher = sql("select against_voucher, against_voucher_type from `tabGL Entry` where fiscal_year=%s and is_cancelled='No' and company=%s and ifnull(against_voucher, '') != '' and ifnull(against_voucher_type, '') != '' group by against_voucher, against_voucher_type", (self.doc.name, self.doc.company))
|
||||
for d in against_voucher:
|
||||
# get voucher balance
|
||||
bal = sql("select sum(debit)-sum(credit) from `tabGL Entry` where against_voucher=%s and against_voucher_type=%s", (d[0], d[1]))
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
# REMEMBER to update this
|
||||
# ========================
|
||||
last_patch = 288
|
||||
last_patch = 289
|
||||
|
||||
#-------------------------------------------
|
||||
|
||||
@ -1148,10 +1148,7 @@ def execute(patch_no):
|
||||
elif patch_no == 287:
|
||||
sql("update `tabDocField` set no_copy = 1 where fieldname in ('per_received', 'per_billed', 'per_delivered') and parent in ('Purchase Order', 'Purchase Receipt', 'Sales Order', 'Delivery Note')")
|
||||
elif patch_no == 288:
|
||||
count = sql("""SELECT * FROM `tabModule Def`
|
||||
WHERE `module_name` LIKE 'Home'""")
|
||||
if not count:
|
||||
md = Document('Module Def')
|
||||
md.module_name = 'Home'
|
||||
md.module_label = 'Home'
|
||||
md.save(1)
|
||||
reload_doc('accounts', 'doctype', 'payable_voucher')
|
||||
elif patch_no == 289:
|
||||
sql("update `tabDocType` set subject = 'From %(supplier_name)s worth %(grand_total)s due on %(due_date)s | %(outstanding_amount)s outstanding' where name = 'Payable Voucher'")
|
||||
sql("update `tabDocType` set search_fields = 'status,transaction_date,customer,lead,order_type' where name = 'Quotation'")
|
||||
|
Loading…
x
Reference in New Issue
Block a user