From 996e469562249c876f9cebf23a882c09b8bec23b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 2 Apr 2013 14:26:26 +0530 Subject: [PATCH] added country Aruba and currency AWG --- .../p02_add_country_and_currency.py | 20 +++++++++++++++++++ patches/patch_list.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 patches/april_2013/p02_add_country_and_currency.py diff --git a/patches/april_2013/p02_add_country_and_currency.py b/patches/april_2013/p02_add_country_and_currency.py new file mode 100644 index 0000000000..ae48a4dbc7 --- /dev/null +++ b/patches/april_2013/p02_add_country_and_currency.py @@ -0,0 +1,20 @@ +import webnotes +def execute(): + if not webnotes.conn.exists("Country", "Aruba"): + webnotes.bean({ + "doctype": "Country", + "country_name": "Aruba", + "time_zones": "America/Aruba", + "date_format": "mm-dd-yyyy" + }).insert() + + if not webnotes.conn.exists("Currency", "AWG"): + webnotes.bean({ + "doctype": "Currency", + "currency_name": "AWG", + "fraction": "Cent", + "fraction_units": 100, + "symbol": "Afl", + "number_format": "#,###.##" + }).insert() + \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index 544fc957e9..b2a5140fc8 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -228,4 +228,5 @@ patch_list = [ "patches.march_2013.p11_update_attach_files", "patches.march_2013.p12_set_item_tax_rate_in_json", "patches.april_2013.p01_update_serial_no_valuation_rate", + "patches.april_2013.p02_add_country_and_currency", ] \ No newline at end of file