From 9eb02637d8dff9986f1042f0ab2ac6fc88199c1d Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Fri, 6 Oct 2023 15:05:57 +0530 Subject: [PATCH] refactor: selectable exchange rate service providers (cherry picked from commit 55dfd8e99573f53c2e88ff9fc543e9995fa231d5) --- .../accounts_settings/accounts_settings.json | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/erpnext/accounts/doctype/accounts_settings/accounts_settings.json b/erpnext/accounts/doctype/accounts_settings/accounts_settings.json index d3b780b56f6..9a85b94e9a9 100644 --- a/erpnext/accounts/doctype/accounts_settings/accounts_settings.json +++ b/erpnext/accounts/doctype/accounts_settings/accounts_settings.json @@ -46,6 +46,7 @@ "currency_exchange_section", "allow_stale", "stale_days", + "service_provider", "report_settings_sb", "use_custom_cash_flow" ], @@ -282,32 +283,38 @@ "label": "Enable Common Party Accounting" }, { - "default": "0", - "description": "Enabling this will allow creation of multi-currency invoices against single party account in company currency", - "fieldname": "allow_multi_currency_invoices_against_single_party_account", - "fieldtype": "Check", - "label": "Allow multi-currency invoices against single party account" - }, - { - "default": "0", - "description": "Split Early Payment Discount Loss into Income and Tax Loss", - "fieldname": "book_tax_discount_loss", - "fieldtype": "Check", - "label": "Book Tax Loss on Early Payment Discount" - }, - { - "default": "0", - "fieldname": "show_taxes_as_table_in_print", - "fieldtype": "Check", - "label": "Show Taxes as Table in Print" - } + "default": "0", + "description": "Enabling this will allow creation of multi-currency invoices against single party account in company currency", + "fieldname": "allow_multi_currency_invoices_against_single_party_account", + "fieldtype": "Check", + "label": "Allow multi-currency invoices against single party account" + }, + { + "default": "0", + "description": "Split Early Payment Discount Loss into Income and Tax Loss", + "fieldname": "book_tax_discount_loss", + "fieldtype": "Check", + "label": "Book Tax Loss on Early Payment Discount" + }, + { + "default": "0", + "fieldname": "show_taxes_as_table_in_print", + "fieldtype": "Check", + "label": "Show Taxes as Table in Print" + }, + { + "fieldname": "service_provider", + "fieldtype": "Select", + "label": "Service Provider", + "options": "frankfurter.app\nexchangerate.host" + } ], "icon": "icon-cog", "idx": 1, "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2023-06-13 18:47:46.430291", + "modified": "2023-10-06 15:05:51.999404", "modified_by": "Administrator", "module": "Accounts", "name": "Accounts Settings",