From aaa6d1f1bc65890d50203ac9f0e8a4533284a8bf Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 8 Sep 2016 01:27:16 +0530 Subject: [PATCH] patch fix --- erpnext/patches/v7_0/migrate_mode_of_payments_v6_to_v7.py | 4 ++-- ...gbatch_from_salesinvoiceitem_to_salesinvoicetimesheet.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/patches/v7_0/migrate_mode_of_payments_v6_to_v7.py b/erpnext/patches/v7_0/migrate_mode_of_payments_v6_to_v7.py index 8de92b7f59..e0e3f7075a 100644 --- a/erpnext/patches/v7_0/migrate_mode_of_payments_v6_to_v7.py +++ b/erpnext/patches/v7_0/migrate_mode_of_payments_v6_to_v7.py @@ -29,8 +29,8 @@ def execute(): row.db_update() si_doc.set_paid_amount() - si_doc.db_set("paid_amount", si_doc.paid_amount) - si_doc.db_set("base_paid_amount", si_doc.base_paid_amount) + si_doc.db_set("paid_amount", si_doc.paid_amount, update_modified = False) + si_doc.db_set("base_paid_amount", si_doc.base_paid_amount, update_modified = False) count +=1 diff --git a/erpnext/patches/v7_0/move_timelogbatch_from_salesinvoiceitem_to_salesinvoicetimesheet.py b/erpnext/patches/v7_0/move_timelogbatch_from_salesinvoiceitem_to_salesinvoicetimesheet.py index 695c552f06..7f3b755428 100644 --- a/erpnext/patches/v7_0/move_timelogbatch_from_salesinvoiceitem_to_salesinvoicetimesheet.py +++ b/erpnext/patches/v7_0/move_timelogbatch_from_salesinvoiceitem_to_salesinvoicetimesheet.py @@ -9,6 +9,6 @@ def execute(): ts = si_doc.append('timesheets',{}) ts.time_sheet = time_sheet.name ts.billing_amount = time_sheet.total_billing_amount - si_doc.update_time_sheet(time_sheet.sales_invoice) - si_doc.flags.ignore_validate_update_after_submit = True - si_doc.save() \ No newline at end of file + ts.db_update() + si_doc.calculate_billing_amount_from_timesheet() + si_doc.db_set("total_billing_amount", si_doc.total_billing_amount, update_modified = False) \ No newline at end of file