Merge pull request #43482 from frappe/mergify/bp/version-14-hotfix/pr-43481

fix: patch to update Currency Exchange Settings for `frankfurter.app` (backport #43481)
This commit is contained in:
Sagar Vora
2024-10-02 15:14:46 +05:30
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -366,3 +366,4 @@ execute:frappe.db.set_single_value('E Commerce Settings', 'show_actual_qty', 1)
erpnext.patches.v14_0.delete_orphaned_asset_movement_item_records
erpnext.patches.v14_0.remove_cancelled_asset_capitalization_from_asset
erpnext.patches.v14_0.enable_set_priority_for_pricing_rules #1
erpnext.patches.v14_0.update_currency_exchange_settings_for_frankfurter

View File

@@ -0,0 +1,11 @@
import frappe
def execute():
settings = frappe.get_doc("Currency Exchange Settings")
if settings.service_provider != "frankfurter.app":
return
settings.set_parameters_and_result()
settings.flags.ignore_validate = True
settings.save()