@aptos-scp/scp-component-store-selling-features-domain-model 1.53.2 → 1.53.3

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.
@@ -64,7 +64,12 @@ class BaseFeeLineDecorator extends BaseLineDecorator_1.BaseLineDecorator {
64
64
  return this.decoratedTransactionLine.extendedAmount;
65
65
  }
66
66
  get extendedAmountAdjustment() {
67
- return this.extendedAmount.minus(this.decoratedTransactionLine.extendedAmount);
67
+ if (this.decoratedTransactionLine.extendedAmount) {
68
+ return this.extendedAmount.minus(this.decoratedTransactionLine.extendedAmount);
69
+ }
70
+ else {
71
+ return this._lineSavings.times(-1);
72
+ }
68
73
  }
69
74
  get extendedAmountExcludingTax() {
70
75
  return this.decoratedTransactionLine.extendedAmountExcludingTax;
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.2",
3
+ "version": "1.53.3",
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",