@aptos-scp/scp-component-store-selling-features-domain-model 1.24.1 → 1.25.0
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.
|
@@ -785,7 +785,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
785
785
|
return this.getTransactionTotal(this.transactionTotalTaxExcludingPreviouslyCollected, this.transactionSubTotalExcludingPreviouslyCollected);
|
|
786
786
|
}
|
|
787
787
|
get transactionBalanceDue() {
|
|
788
|
-
return this.getTransactionBalanceDue(this.transactionTotal, this.transactionTotalTendered, true
|
|
788
|
+
return this.getTransactionBalanceDue(this.transactionTotal, this.transactionTotalTendered, true);
|
|
789
789
|
}
|
|
790
790
|
get transactionBalanceDueExcludingPreviouslyCollected() {
|
|
791
791
|
return this.getTransactionBalanceDue(this.transactionTotalExcludingPreviouslyCollected, this.transactionTotalTenderedExcludingPreviouslyCollected, true);
|
|
@@ -1310,14 +1310,9 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
1310
1310
|
.plus(this.transactionTotalDonations)
|
|
1311
1311
|
.plus(transactionTotalPreviouslyPaidItemFee);
|
|
1312
1312
|
}
|
|
1313
|
-
getTransactionBalanceDue(totalAmount, totalTendered, removeTotalTendered
|
|
1313
|
+
getTransactionBalanceDue(totalAmount, totalTendered, removeTotalTendered) {
|
|
1314
1314
|
let balanceDue;
|
|
1315
|
-
|
|
1316
|
-
balanceDue = totalAmount.plus(transactionTotalPreviouslyPaidItemFee);
|
|
1317
|
-
}
|
|
1318
|
-
else {
|
|
1319
|
-
balanceDue = totalAmount;
|
|
1320
|
-
}
|
|
1315
|
+
balanceDue = totalAmount;
|
|
1321
1316
|
if (removeTotalTendered) {
|
|
1322
1317
|
balanceDue = balanceDue.minus(totalTendered.plus(this.denominationRounding));
|
|
1323
1318
|
}
|
|
@@ -293,12 +293,9 @@ class FeeLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
293
293
|
* @param sublines fee's sublines
|
|
294
294
|
*/
|
|
295
295
|
setSublines(sublines) {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
return newLine;
|
|
300
|
-
}
|
|
301
|
-
throw new Error("Method not implemented.");
|
|
296
|
+
const newLine = this.clone();
|
|
297
|
+
newLine._sublines = sublines;
|
|
298
|
+
return newLine;
|
|
302
299
|
}
|
|
303
300
|
setItemLineReference(itemLineReference) {
|
|
304
301
|
if (this.lineType === exports.ITEM_FEE_LINE_TYPE) {
|
|
@@ -703,8 +700,9 @@ function isTransactionFeeLine(transactionLine) {
|
|
|
703
700
|
}
|
|
704
701
|
exports.isTransactionFeeLine = isTransactionFeeLine;
|
|
705
702
|
function isTransactionFeeRefundLine(transactionLine) {
|
|
706
|
-
return (transactionLine
|
|
707
|
-
|
|
703
|
+
return (transactionLine &&
|
|
704
|
+
transactionLine instanceof FeeLine &&
|
|
705
|
+
transactionLine.lineType === exports.TRANSACTION_FEE_REFUND_LINE_TYPE);
|
|
708
706
|
}
|
|
709
707
|
exports.isTransactionFeeRefundLine = isTransactionFeeRefundLine;
|
|
710
708
|
function isBagFeeLine(transactionLine) {
|
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.
|
|
3
|
+
"version": "1.25.0",
|
|
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",
|