From f0881a9e9241d6dcd11471366b0a1927f73a7ce6 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 22 Jan 2013 11:21:55 +0530 Subject: [PATCH] updated fraction for USD --- patches/january_2013/update_fraction_for_usd.py | 3 +++ patches/patch_list.py | 1 + 2 files changed, 4 insertions(+) create mode 100644 patches/january_2013/update_fraction_for_usd.py diff --git a/patches/january_2013/update_fraction_for_usd.py b/patches/january_2013/update_fraction_for_usd.py new file mode 100644 index 00000000000..f90f8658819 --- /dev/null +++ b/patches/january_2013/update_fraction_for_usd.py @@ -0,0 +1,3 @@ +def execute(): + import webnotes + webnotes.conn.sql("""update `tabCurrency` set fraction = 'Cent' where fraction = 'Cent[D]'""") \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index dda35247a44..cdaa2ad9a19 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -154,4 +154,5 @@ patch_list = [ "patches.january_2013.update_number_format", "patches.january_2013.purchase_price_list", "execute:webnotes.reload_doc('accounts','Print Format','Payment Receipt Voucher')", + "patches.january_2013.update_fraction_for_usd", ] \ No newline at end of file