I use Commerce Currency Resolver and when I switch currencies, function OrderRefresh->refresh() fires twice and it adds taxes twice.
It works only for custom entities that don't have purchased entities.

CommentFileSizeAuthor
#2 issue-3139183.patch1.66 KBlobodakyrylo

Comments

lobodacyril created an issue. See original summary.

lobodakyrylo’s picture

Status: Active » Needs work
StatusFileSize
new1.66 KB

I suppose it's better to avoid adding the same adjustments twice. Patch is attached.

matthiasm11’s picture

Status: Needs work » Needs review
jsacksick’s picture

Status: Needs review » Closed (won't fix)

Adjustments are cleared at the beginning of the order refresh. Not sure what's causing this on your side, but we can't have this code in.

IF we need to worry about adjustments being double added, then we'll need the same workaround in all order processors.