Fix Bugsnag payload data

This commit is contained in:
Gaetan Craig-Riou
2024-10-21 11:13:42 +11:00
parent f024aff45d
commit 3f22e8cca7
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ module Spree
"Notice: Tax refund should not be possible, please check the default zone and " \
"the tax rate zone configuration"
) do |payload|
payload.add_metadata :order_tax_zone, order.tax_zone
payload.add_metadata :order_tax_zone, item.order.tax_zone
payload.add_metadata :tax_rate_zone, zone
payload.add_metadata :default_zone, Zone.default_tax
end

View File

@@ -392,7 +392,7 @@ module Spree
expect(Bugsnag).to receive(:notify).with(
"Notice: Tax refund should not be possible, please check the default zone and " \
"the tax rate zone configuration"
).twice
).twice.and_call_original
Spree::TaxRate.adjust(order, order.line_items)
end