From e7ddb72e7f666115fcaf15da7854f806984a1db7 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Wed, 15 Apr 2015 18:21:53 +0530 Subject: [PATCH] patch for renaming project feilds --- erpnext/patches.txt | 1 + erpnext/patches/v5_0/project_costing.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 erpnext/patches/v5_0/project_costing.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 0e0fda93110..0665df4ab10 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -143,3 +143,4 @@ execute:frappe.permissions.reset_perms("Expense Claim Type") #2014-06-19 erpnext.patches.v5_0.execute_on_doctype_update erpnext.patches.v4_2.fix_recurring_orders erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices +erpnext.patches.v5_0.project_costing diff --git a/erpnext/patches/v5_0/project_costing.py b/erpnext/patches/v5_0/project_costing.py new file mode 100644 index 00000000000..ffeb396a661 --- /dev/null +++ b/erpnext/patches/v5_0/project_costing.py @@ -0,0 +1,6 @@ +import frappe + +def execute(): + frappe.db.sql("update `tabProject` set expected_start_date = project_start_date, \ + expected_end_date = completion_date, actual_end_date = act_completion_date, \ + estimated_costing = project_value, gross_margin = gross_margin_value") \ No newline at end of file