File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ matcher:
1616 - Processes::SyncShipmentFromPricing*
1717 - Processes::SyncInventoryFromOrdering*
1818 - Processes::NotifyPaymentsAboutOrderValue*
19- - Processes::ThreePlusOneFree*
2019 - Processes::DetermineVatRatesOnOrderPlaced*
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def apply(event)
2424 state . with ( lines :, eligible_free_product : eligible_free_product ( lines ) )
2525 when Pricing ::PriceItemRemoved
2626 lines = state . lines
27- index_of_line_to_remove = lines . index { |line | line . fetch ( :product_id ) == product_id && line . fetch ( :price ) == event . data . fetch ( :price ) }
27+ index_of_line_to_remove = lines . index { |line | line . fetch ( :product_id ) == product_id }
2828 lines . delete_at ( index_of_line_to_remove )
2929 state . with ( lines :, eligible_free_product : eligible_free_product ( lines ) )
3030 when Pricing ::ProductMadeFreeForOrder
You can’t perform that action at this time.
0 commit comments