@aptos-scp/scp-component-store-selling-features-domain-model 2.29.2 → 2.29.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.
|
@@ -716,9 +716,6 @@ function getOriginalTenderRefundableAmount(originalTender, refundDue, originalTr
|
|
|
716
716
|
return undefined;
|
|
717
717
|
}
|
|
718
718
|
let refundableAmount = new scp_component_business_core_1.Money(0, refundDue.currency);
|
|
719
|
-
const doesNotHaveTransactionTotals = _.isUndefined(withTransactionTotal) &&
|
|
720
|
-
_.isUndefined(withoutTransactionTotal) &&
|
|
721
|
-
_.isUndefined(withOfflineTransactionTotal);
|
|
722
719
|
if (!originalTender.showReference && !_.isUndefined(withTransactionTotal)) {
|
|
723
720
|
refundableAmount = refundableAmount.plus(withTransactionTotal);
|
|
724
721
|
}
|
|
@@ -755,9 +752,6 @@ function getOriginalTenderRefundableAmount(originalTender, refundDue, originalTr
|
|
|
755
752
|
refundableAmount = getLowestRefundDue(refundableAmount.plus(currentTranRefundableAmount), undefined, refundDue);
|
|
756
753
|
}
|
|
757
754
|
});
|
|
758
|
-
refundableAmount = doesNotHaveTransactionTotals
|
|
759
|
-
? adjustAmount(refundableAmount, originalTender.adjustmentAmount)
|
|
760
|
-
: refundableAmount;
|
|
761
755
|
refundableAmount = getLowestRefundDue(refundableAmount, undefined, refundDue);
|
|
762
756
|
return originalTender.isMappedTender
|
|
763
757
|
? refundableAmount
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-scp/scp-component-store-selling-features-domain-model",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.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",
|