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