Passing the Quantity of Items During Partial Return
The quantity of items is now passed in the notification PartialOrderItemsRemovalTypeSelected.
Previously, the method did not pass the quantity of returned items, which was necessary for the correct operation of plugins (for example, AlcoholMarkingPlugin) during a partial return of an order.
Now, the method signature includes the quantity for each item:
PartialOrderItemsRemovalTypeSelected(
Guid orderId,
IReadOnlyCollection<(Guid itemId, decimal amount)> returnProductIdsWithAmounts,
Guid removalTypeId
);
This allows plugins to accurately determine how many of each item is being returned and perform the corresponding operations in external systems (for example, canceling the charge of marked goods).