@aptos-scp/scp-component-store-selling-features-domain-model 1.55.0 → 1.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const scp_component_business_core_1 = require("@aptos-scp/scp-component-business-core");
4
4
  const StoreItem_1 = require("../StoreItem");
5
5
  const BaseItemLineDecorator_1 = require("./BaseItemLineDecorator");
6
+ const ItemLine_1 = require("./ItemLine");
6
7
  const ItemLineBaseDiscountDecorator_1 = require("./ItemLineBaseDiscountDecorator");
7
8
  exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_ITEM_DISCOUNT = "ITEM_LINE_MANUAL_ITEM_DISCOUNT_DECORATOR";
8
9
  exports.DECORATOR_TYPE_ITEM_LINE_EMPLOYEE_ITEM_DISCOUNT = "ITEM_LINE_EMPLOYEE_ITEM_DISCOUNT_DECORATOR";
@@ -167,7 +168,9 @@ class ItemLineManualDiscountDecorator extends ItemLineBaseDiscountDecorator_1.It
167
168
  : this.unitPrice;
168
169
  }
169
170
  get extendedAmountExcludingTransactionDiscounts() {
170
- return this.lineDecoratorType === exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_TRANSACTION_DISCOUNT
171
+ return this.lineDecoratorType === exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_TRANSACTION_DISCOUNT &&
172
+ !ItemLine_1.isFulfillmentLine(this.decoratedTransactionLine) &&
173
+ !ItemLine_1.isCancelLine(this.decoratedTransactionLine)
171
174
  ? this.decoratedTransactionLine.extendedAmountExcludingTransactionDiscounts
172
175
  : this.decoratedTransactionLine.extendedAmountExcludingTransactionDiscounts.minus(this.adjustmentAmount);
173
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-scp/scp-component-store-selling-features-domain-model",
3
- "version": "1.55.0",
3
+ "version": "1.55.1",
4
4
  "description": "This component library provides the common components to handle the coordination of processing the business events from the UI.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE.md",