kupos-ui-components-lib 10.4.38 → 10.4.39
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.
|
@@ -419,7 +419,7 @@ export const PaymentCardMobile = (props) => {
|
|
|
419
419
|
React.createElement("span", { style: S.sectionRowValue, className: "bold-text" }, CommonService.currency((_g = insuranceData === null || insuranceData === void 0 ? void 0 : insuranceData.insurance_total) !== null && _g !== void 0 ? _g : 0, currencySign)))) : null,
|
|
420
420
|
((_h = props.serviceFeeDataStateValue) === null || _h === void 0 ? void 0 : _h.total_convenience_fee_amount) && (React.createElement("div", { style: S.sectionRow },
|
|
421
421
|
React.createElement("span", { style: { flex: 1 } }, "Cargo por servicio"),
|
|
422
|
-
React.createElement("span", { style: S.sectionRowValue
|
|
422
|
+
React.createElement("span", { style: S.sectionRowValue }, CommonService.currency(props.serviceFeeDataStateValue
|
|
423
423
|
.total_convenience_fee_amount, currencySign)))),
|
|
424
424
|
(promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCodeApplied) && (React.createElement(React.Fragment, null,
|
|
425
425
|
React.createElement("div", { style: S.sectionRow },
|
|
@@ -476,8 +476,7 @@ export const PaymentCardMobile = (props) => {
|
|
|
476
476
|
virtualMoney ? (React.createElement("div", { style: S.sectionRow },
|
|
477
477
|
React.createElement("span", { style: { flex: 1 } },
|
|
478
478
|
React.createElement("span", { style: { color: "var(--secondary-color)" } }, `${creditosLabel}(${virtualLimit}%)`)),
|
|
479
|
-
React.createElement("span", { style: Object.assign(Object.assign({}, S.sectionRowValue), { color: "var(--secondary-color)" }), className: "bold-text" }, CommonService.currency(
|
|
480
|
-
Number(virtualMoney !== null && virtualMoney !== void 0 ? virtualMoney : 0), currencySign)))) : null,
|
|
479
|
+
React.createElement("span", { style: Object.assign(Object.assign({}, S.sectionRowValue), { color: "var(--secondary-color)" }), className: "bold-text" }, CommonService.currency(virtualMoney, currencySign)))) : null,
|
|
481
480
|
React.createElement("div", { style: {
|
|
482
481
|
borderTop: "1.5px dashed #464647",
|
|
483
482
|
margin: "14px 0",
|
|
@@ -495,10 +494,17 @@ export const PaymentCardMobile = (props) => {
|
|
|
495
494
|
currency ? currency : "",
|
|
496
495
|
" ",
|
|
497
496
|
CommonService.currency(isPeru
|
|
498
|
-
? Math.round((
|
|
497
|
+
? Math.round(Math.max(0, ((removeDiscountAtomValue
|
|
498
|
+
? 0
|
|
499
|
+
: (netFare !== null && netFare !== void 0 ? netFare : 0)) -
|
|
500
|
+
(walletMoney !== null && walletMoney !== void 0 ? walletMoney : 0) -
|
|
501
|
+
(virtualMoney !== null && virtualMoney !== void 0 ? virtualMoney : 0)) *
|
|
502
|
+
100)) / 100
|
|
499
503
|
: removeDiscountAtomValue
|
|
500
504
|
? 0
|
|
501
|
-
:
|
|
505
|
+
: Math.max(0, (netFare !== null && netFare !== void 0 ? netFare : 0) -
|
|
506
|
+
(walletMoney !== null && walletMoney !== void 0 ? walletMoney : 0) -
|
|
507
|
+
(virtualMoney !== null && virtualMoney !== void 0 ? virtualMoney : 0)), currencySign))))));
|
|
502
508
|
} }),
|
|
503
509
|
React.createElement("div", { style: {
|
|
504
510
|
display: "flex",
|
package/package.json
CHANGED
|
@@ -712,7 +712,7 @@ const PaymentSideBarMobile: React.FC<PaymentSideBarProps> = (props) => {
|
|
|
712
712
|
}
|
|
713
713
|
amount={CommonService.currency(
|
|
714
714
|
((virtualLimit ?? 0) / 100) * Number(virtualMoney ?? 0),
|
|
715
|
-
currencySign
|
|
715
|
+
currencySign,
|
|
716
716
|
)}
|
|
717
717
|
customStyle={{ color: "var(--secondary-color)" }}
|
|
718
718
|
className="text-[14px]"
|
|
@@ -777,7 +777,7 @@ export const PaymentCardMobile: React.FC<PaymentSideBarProps> = (props) => {
|
|
|
777
777
|
?.total_convenience_fee_amount && (
|
|
778
778
|
<div style={S.sectionRow}>
|
|
779
779
|
<span style={{ flex: 1 }}>Cargo por servicio</span>
|
|
780
|
-
<span style={S.sectionRowValue}
|
|
780
|
+
<span style={S.sectionRowValue}>
|
|
781
781
|
{CommonService.currency(
|
|
782
782
|
props.serviceFeeDataStateValue
|
|
783
783
|
.total_convenience_fee_amount,
|
|
@@ -934,11 +934,7 @@ export const PaymentCardMobile: React.FC<PaymentSideBarProps> = (props) => {
|
|
|
934
934
|
}}
|
|
935
935
|
className="bold-text"
|
|
936
936
|
>
|
|
937
|
-
{CommonService.currency(
|
|
938
|
-
((virtualLimit ?? 0) / 100) *
|
|
939
|
-
Number(virtualMoney ?? 0),
|
|
940
|
-
currencySign,
|
|
941
|
-
)}
|
|
937
|
+
{CommonService.currency(virtualMoney, currencySign)}
|
|
942
938
|
</span>
|
|
943
939
|
</div>
|
|
944
940
|
) : null}
|
|
@@ -968,11 +964,24 @@ export const PaymentCardMobile: React.FC<PaymentSideBarProps> = (props) => {
|
|
|
968
964
|
{CommonService.currency(
|
|
969
965
|
isPeru
|
|
970
966
|
? Math.round(
|
|
971
|
-
(
|
|
967
|
+
Math.max(
|
|
968
|
+
0,
|
|
969
|
+
((removeDiscountAtomValue
|
|
970
|
+
? 0
|
|
971
|
+
: (netFare ?? 0)) -
|
|
972
|
+
(walletMoney ?? 0) -
|
|
973
|
+
(virtualMoney ?? 0)) *
|
|
974
|
+
100,
|
|
975
|
+
),
|
|
972
976
|
) / 100
|
|
973
977
|
: removeDiscountAtomValue
|
|
974
978
|
? 0
|
|
975
|
-
:
|
|
979
|
+
: Math.max(
|
|
980
|
+
0,
|
|
981
|
+
(netFare ?? 0) -
|
|
982
|
+
(walletMoney ?? 0) -
|
|
983
|
+
(virtualMoney ?? 0),
|
|
984
|
+
),
|
|
976
985
|
currencySign,
|
|
977
986
|
)}
|
|
978
987
|
</span>
|