@aptos-scp/scp-component-store-selling-features-domain-model 1.53.3-patch.1 → 1.53.4

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,7 +3,6 @@ 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");
7
6
  const ItemLineBaseDiscountDecorator_1 = require("./ItemLineBaseDiscountDecorator");
8
7
  exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_ITEM_DISCOUNT = "ITEM_LINE_MANUAL_ITEM_DISCOUNT_DECORATOR";
9
8
  exports.DECORATOR_TYPE_ITEM_LINE_EMPLOYEE_ITEM_DISCOUNT = "ITEM_LINE_EMPLOYEE_ITEM_DISCOUNT_DECORATOR";
@@ -168,9 +167,7 @@ class ItemLineManualDiscountDecorator extends ItemLineBaseDiscountDecorator_1.It
168
167
  : this.unitPrice;
169
168
  }
170
169
  get extendedAmountExcludingTransactionDiscounts() {
171
- return this.lineDecoratorType === exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_TRANSACTION_DISCOUNT &&
172
- !ItemLine_1.isFulfillmentLine(this.decoratedTransactionLine) &&
173
- !ItemLine_1.isCancelLine(this.decoratedTransactionLine)
170
+ return this.lineDecoratorType === exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_TRANSACTION_DISCOUNT
174
171
  ? this.decoratedTransactionLine.extendedAmountExcludingTransactionDiscounts
175
172
  : this.decoratedTransactionLine.extendedAmountExcludingTransactionDiscounts.minus(this.adjustmentAmount);
176
173
  }
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.53.3-patch.1",
3
+ "version": "1.53.4",
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",