@pisell/private-materials 6.11.150 → 6.11.151
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/ticketBooking/dialog.js +5 -2
- package/lib/components/ticketBooking/dialog.js +3 -2
- package/package.json +3 -3
|
@@ -330,10 +330,13 @@ function TicketBookingDialog(props) {
|
|
|
330
330
|
*/
|
|
331
331
|
function getPaidAmounts(bookingOrigin) {
|
|
332
332
|
var payments = (bookingOrigin === null || bookingOrigin === void 0 ? void 0 : bookingOrigin.payments) || [];
|
|
333
|
-
var
|
|
333
|
+
var paidPayments = payments.filter(function (item) {
|
|
334
|
+
return (item === null || item === void 0 ? void 0 : item.status) === 'paid';
|
|
335
|
+
});
|
|
336
|
+
var paidAmount = paidPayments.reduce(function (total, item) {
|
|
334
337
|
return total + Number(item.amount);
|
|
335
338
|
}, 0);
|
|
336
|
-
var paidAmountWithoutSurcharge =
|
|
339
|
+
var paidAmountWithoutSurcharge = paidPayments.reduce(function (total, item) {
|
|
337
340
|
return total + Number(item.amount) - Number(item.service_fee || 0);
|
|
338
341
|
}, 0);
|
|
339
342
|
return {
|
|
@@ -267,10 +267,11 @@ function TicketBookingDialog(props) {
|
|
|
267
267
|
}
|
|
268
268
|
function getPaidAmounts(bookingOrigin) {
|
|
269
269
|
const payments = (bookingOrigin == null ? void 0 : bookingOrigin.payments) || [];
|
|
270
|
-
const
|
|
270
|
+
const paidPayments = payments.filter((item) => (item == null ? void 0 : item.status) === "paid");
|
|
271
|
+
const paidAmount = paidPayments.reduce((total, item) => {
|
|
271
272
|
return total + Number(item.amount);
|
|
272
273
|
}, 0);
|
|
273
|
-
const paidAmountWithoutSurcharge =
|
|
274
|
+
const paidAmountWithoutSurcharge = paidPayments.reduce(
|
|
274
275
|
(total, item) => {
|
|
275
276
|
return total + Number(item.amount) - Number(item.service_fee || 0);
|
|
276
277
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.151",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"react-infinite-scroll-component": "^6.1.0",
|
|
68
68
|
"react-resizable": "^3.0.5",
|
|
69
69
|
"styled-components": "^6.0.0-rc.3",
|
|
70
|
-
"@pisell/utils": "3.0.2",
|
|
71
70
|
"@pisell/materials": "6.11.48",
|
|
72
71
|
"@pisell/icon": "0.0.11",
|
|
73
|
-
"@pisell/date-picker": "3.0.8"
|
|
72
|
+
"@pisell/date-picker": "3.0.8",
|
|
73
|
+
"@pisell/utils": "3.0.2"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": "^18.0.0",
|