[hotfix] [patch] cleanup journal entry

This commit is contained in:
Anand Doshi 2015-08-14 12:05:50 +05:30
parent 698ee434c0
commit dc278a7427
2 changed files with 2 additions and 2 deletions

View File

@ -190,5 +190,5 @@ erpnext.patches.v5_4.fix_invoice_outstanding
execute:frappe.db.sql("update `tabStock Ledger Entry` set stock_queue = '[]' where voucher_type = 'Stock Reconciliation' and ifnull(qty_after_transaction, 0) = 0")
erpnext.patches.v5_4.fix_missing_item_images
erpnext.patches.v5_4.stock_entry_additional_costs
erpnext.patches.v5_4.cleanup_journal_entry
erpnext.patches.v5_4.cleanup_journal_entry #2015-08-14
execute:frappe.db.sql("update `tabProduction Order` pro set description = (select description from tabItem where name=pro.production_item) where ifnull(description, '') = ''")

View File

@ -11,5 +11,5 @@ def execute():
("Expense Claim", "against_expense_claim"),
):
frappe.db.sql("""update `tabJournal Entry Account`
set reference_type=%s and reference_name={0} where ifnull({0}, '') != ''
set reference_type=%s, reference_name={0} where ifnull({0}, '') != ''
""".format(fieldname), doctype)