You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
media_buy_seller/total_budget_redistribution: hard-coded USD in update_total_budget fails sellers that do not price in USD #8232
media_buy_seller/total_budget_redistribution (bundle 3.2.4) tests total_budget redistribution, not currency handling. Its update_total_budget step sends total_budget.currency: "USD" written into the storyboard. A seller that sells in another currency fails the storyboard even when its redistribution is correct.
The seller sells in EUR only. Its seeded products price in EUR, and create_fixed_buy commits the buy in EUR. That step passes, total_budget 100000 included.
The seller answers VALIDATION_ERROR on total_budget.currency: "USD" is not the currency of this media buy (EUR). An update cannot change the currency of a buy.
read_redistributed_budget then reads 100000 instead of 50000, as a consequence.
Suggested fix
Capture currency from the create_media_buy response (context_outputs) and send total_budget.currency: "$context.currency" in update_total_budget and line 191. This keeps the test on redistribution.
Or, if USD support is the intent, gate the storyboard on a declared currency so that a seller without USD grades it not_applicable.
Currency selection already has its own storyboard, media_buy_seller/pricing_currency_filter.
Activity
fix(compliance): send the committed buy's currency on total_budget re…
fix(compliance): send the committed buy's currency on total_budget re…