statiegeld: use correct id for deduplication key

Bug introduced in fffb2d72
This commit is contained in:
Juerd Waalboer 2023-02-13 02:43:24 +01:00
parent 8e9a037d1c
commit ff4ffd16f8

View file

@ -78,9 +78,10 @@ sub command { # args via @_ for mutable alias
$cart
->add(+$addon->{price}, $d, {
plugin => $invocant->id,
addon_id => $addon->{id},
deduplicate => join("/", $invocant->id, $addon->{id}),
plugin => $invocant->id,
addon_id => $addon->{id},
product_id => $product->{id},
deduplicate => join("/", $invocant->id, $product->{id}),
})
->add_contra($addon->{contra}, -$addon->{price}, "$d for \$you");
}