Skip to content

Commit

Permalink
Merge pull request #43482 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-43481

fix: patch to update Currency Exchange Settings for `frankfurter.app` (backport #43481)
  • Loading branch information
sagarvora authored Oct 2, 2024
2 parents f608ba5 + 02ce528 commit 824ccfb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 824ccfb

Please sign in to comment.