@@ -88,6 +88,10 @@ export class ShippingLine extends VendureEntity {
this.adjustments = this.adjustments.concat(adjustment);
}
+ removeAdjustments() {
+ this.adjustments = [];
+ }
+
/**
* @description
* The total of all price adjustments. Will typically be a negative number due to discounts.
@@ -364,6 +364,11 @@ export class OrderCalculator {
+ } else {
+ // If there is no applicable promotion for shipping, we should remove already assigned adjustment from shipping lines.
+ for (const shippingLine of order.shippingLines) {
+ shippingLine.removeAdjustments();