diff --git a/frappe/geo/country_info.json b/frappe/geo/country_info.json index f3a251f72d..41b8b3de81 100644 --- a/frappe/geo/country_info.json +++ b/frappe/geo/country_info.json @@ -2554,7 +2554,7 @@ "currency": "USD", "currency_fraction": "Cent", "currency_fraction_units": 100, - "smallest_currency_fraction_value": 0.05, + "smallest_currency_fraction_value": 0.01, "currency_name": "US Dollar", "currency_symbol": "$", "date_format": "mm-dd-yyyy", diff --git a/frappe/patches.txt b/frappe/patches.txt index ca22f99fbe..7025c7fafb 100644 --- a/frappe/patches.txt +++ b/frappe/patches.txt @@ -203,4 +203,5 @@ execute:frappe.delete_doc('Page', 'data-import-tool', ignore_missing=True) frappe.patches.v10_0.reload_countries_and_currencies frappe.patches.v10_0.set_no_copy_to_workflow_state frappe.patches.v10_0.increase_single_table_column_length -frappe.patches.v10_0.set_default_locking_time \ No newline at end of file +frappe.patches.v10_0.set_default_locking_time +frappe.patches.v10_0.modify_smallest_currency_fraction \ No newline at end of file diff --git a/frappe/patches/v10_0/modify_smallest_currency_fraction.py b/frappe/patches/v10_0/modify_smallest_currency_fraction.py new file mode 100644 index 0000000000..c9ae477359 --- /dev/null +++ b/frappe/patches/v10_0/modify_smallest_currency_fraction.py @@ -0,0 +1,7 @@ +# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors +# MIT License. See license.txt + +import frappe + +def execute(): + frappe.db.set_value('Currency', 'USD', 'smallest_currency_fraction_value', '0.01') \ No newline at end of file