From 60d9a5e2ee0f991953e6bf328ef008a43584b984 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 18 Jul 2013 13:15:41 +0530 Subject: [PATCH] [patch] repost billed amt in sales cycle, based on export amount instead of amount in base currency --- .../p07_repost_billed_amt_in_sales_cycle.py | 23 +++++++++++++++++++ patches/patch_list.py | 1 + 2 files changed, 24 insertions(+) create mode 100644 patches/july_2013/p07_repost_billed_amt_in_sales_cycle.py diff --git a/patches/july_2013/p07_repost_billed_amt_in_sales_cycle.py b/patches/july_2013/p07_repost_billed_amt_in_sales_cycle.py new file mode 100644 index 00000000000..94acf71f817 --- /dev/null +++ b/patches/july_2013/p07_repost_billed_amt_in_sales_cycle.py @@ -0,0 +1,23 @@ +# ERPNext - web based ERP (http://erpnext.com) +# Copyright (C) 2012 Web Notes Technologies Pvt Ltd +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +from __future__ import unicode_literals + +def execute(): + import webnotes + for si in webnotes.conn.sql("""select name from `tabSales Invoice` where docstatus = 1"""): + webnotes.get_obj("Sales Invoice", si[0], + with_children=1).update_qty(change_modified=False) \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index 74a96521193..d484f16d0e7 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -256,4 +256,5 @@ patch_list = [ "patches.july_2013.p04_merge_duplicate_leads", "patches.july_2013.p05_custom_doctypes_in_list_view", "patches.july_2013.p06_same_sales_rate", + "patches.july_2013.p07_repost_billed_amt_in_sales_cycle", ] \ No newline at end of file