@pisell/private-materials 6.11.663 → 6.11.664
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/plus/pisellSaleSummaryDetail/index.js +1 -1
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +2 -1
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.js +3 -1
- package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +1 -1
- package/es/plus/saleDetail/tmpl/B/components/Pay/index.js +1 -1
- package/es/plus/{saleDetail → salesSdk}/utils/paymentStatus.js +1 -1
- package/lib/plus/pisellSaleSummaryDetail/index.js +1 -1
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +2 -1
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.js +3 -1
- package/lib/plus/saleDetail/components/SummaryFinancialSections/index.js +1 -1
- package/lib/plus/saleDetail/tmpl/B/components/Pay/index.js +1 -1
- package/lib/plus/{saleDetail → salesSdk}/utils/paymentStatus.js +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/hel
|
|
|
2
2
|
import useEngineContext from "../../hooks/useEngineContext.js";
|
|
3
3
|
import useInitLocalesOnce from "../../hooks/useInitLocalesOnce.js";
|
|
4
4
|
import { resolvePaymentMethodName, usePaymentMethodNameMap } from "../pisellSalesManagement/hooks/usePaymentMethodNameMap.js";
|
|
5
|
-
import { isAppliedPaymentRecord } from "../
|
|
5
|
+
import { isAppliedPaymentRecord } from "../salesSdk/utils/paymentStatus.js";
|
|
6
6
|
import localeTexts from "./locales.js";
|
|
7
7
|
import React, { useCallback, useMemo, useState } from "react";
|
|
8
8
|
import { formatAmount, locales } from "@pisell/utils";
|
|
@@ -2,6 +2,7 @@ import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/
|
|
|
2
2
|
import useEngineContext from "../../../hooks/useEngineContext.js";
|
|
3
3
|
import { createNoteApis } from "../serve.js";
|
|
4
4
|
import { resolvePaymentMethodName, usePaymentMethodNameMap } from "./usePaymentMethodNameMap.js";
|
|
5
|
+
import { isAppliedPaymentRecord } from "../../salesSdk/utils/paymentStatus.js";
|
|
5
6
|
import ClientName from "../../clientName/index.js";
|
|
6
7
|
import { PAYMENT_STATUS_COLOR_MAP, getPaymentStatusMap } from "../config/order.js";
|
|
7
8
|
import { BOOKING_STATUS_COLOR_MAP, getBookingHeaderLabels, getBookingPlatformMap, getBookingStatusMap, getFilterButtonList, getSortList } from "../config/booking.js";
|
|
@@ -312,7 +313,7 @@ const useBookingPerspective = (params, options) => {
|
|
|
312
313
|
align: "center",
|
|
313
314
|
render: (_, record) => {
|
|
314
315
|
const order = (record === null || record === void 0 ? void 0 : record.order) || {};
|
|
315
|
-
const payments = Array.isArray(order === null || order === void 0 ? void 0 : order.payments) ? order.payments : [];
|
|
316
|
+
const payments = Array.isArray(order === null || order === void 0 ? void 0 : order.payments) ? order.payments.filter(isAppliedPaymentRecord) : [];
|
|
316
317
|
const currencySymbol = order === null || order === void 0 ? void 0 : order.currency_symbol;
|
|
317
318
|
if (payments.length === 0) return "-";
|
|
318
319
|
return /* @__PURE__ */ React.createElement("div", { style: {
|
|
@@ -2,6 +2,7 @@ import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/
|
|
|
2
2
|
import useEngineContext from "../../../hooks/useEngineContext.js";
|
|
3
3
|
import { createNoteApis } from "../serve.js";
|
|
4
4
|
import { resolvePaymentMethodName, usePaymentMethodNameMap } from "./usePaymentMethodNameMap.js";
|
|
5
|
+
import { isAppliedPaymentRecord } from "../../salesSdk/utils/paymentStatus.js";
|
|
5
6
|
import ClientName from "../../clientName/index.js";
|
|
6
7
|
import { DELIVERY_TYPE_COLOR_MAP, FULFILLMENT_STATUS_COLOR_MAP, ORDER_STATUS_COLOR_MAP, PAYMENT_STATUS_COLOR_MAP, SHOP_SERVICE_TYPE_COLOR_MAP, getDeliveryTypeMap, getFilterButtonList, getOrderHeaderLabels, getOrderStatusMap, getPaymentStatusMap, getPlatformMap, getShippingStatusMap, getShopServiceTypeMap, getSortList } from "../config/order.js";
|
|
7
8
|
import { BUSINESS_COLOR_MAP, getBusinessLabelMap } from "../config/index.js";
|
|
@@ -444,7 +445,8 @@ const useOrderPerspective = (options) => {
|
|
|
444
445
|
width: 180,
|
|
445
446
|
align: "center",
|
|
446
447
|
render: (_, record) => {
|
|
447
|
-
const
|
|
448
|
+
const rawPayments = (record === null || record === void 0 ? void 0 : record.payments) || (record === null || record === void 0 ? void 0 : record.payment);
|
|
449
|
+
const payments = Array.isArray(rawPayments) ? rawPayments.filter(isAppliedPaymentRecord) : [];
|
|
448
450
|
const currencySymbol = record === null || record === void 0 ? void 0 : record.currency_symbol;
|
|
449
451
|
if (payments.length === 0) return "-";
|
|
450
452
|
return /* @__PURE__ */ React.createElement("div", { style: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import useEngineContext from "../../../../hooks/useEngineContext.js";
|
|
2
2
|
import { resolvePaymentMethodName, usePaymentMethodNameMap } from "../../../pisellSalesManagement/hooks/usePaymentMethodNameMap.js";
|
|
3
|
-
import { isAppliedPaymentRecord } from "
|
|
3
|
+
import { isAppliedPaymentRecord } from "../../../salesSdk/utils/paymentStatus.js";
|
|
4
4
|
import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
|
|
5
5
|
import { useSalesSdkCart } from "../../../salesSdk/hooks/useSalesSdkCart.js";
|
|
6
6
|
import { useSalesSdkSummary } from "../../../salesSdk/hooks/useSalesSdkSummary.js";
|
|
@@ -2,7 +2,7 @@ import { _objectSpread2 } from "../../../../../../_virtual/_@oxc-project_runtime
|
|
|
2
2
|
import { _asyncToGenerator } from "../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
|
|
3
3
|
import useEngineContext from "../../../../../../hooks/useEngineContext.js";
|
|
4
4
|
import { resolvePaymentMethodName, usePaymentMethodNameMap } from "../../../../../pisellSalesManagement/hooks/usePaymentMethodNameMap.js";
|
|
5
|
-
import { isAppliedPaymentRecord } from "
|
|
5
|
+
import { isAppliedPaymentRecord } from "../../../../../salesSdk/utils/paymentStatus.js";
|
|
6
6
|
import { EftposProvider, PaymentMode } from "../../../../../piPaymentUI/eftpos/contracts/index.js";
|
|
7
7
|
import { PiPaymentType } from "../../../../../piPaymentUI/contracts/index.js";
|
|
8
8
|
import PiPayment from "../../../../../piPaymentUI/PiPayment.js";
|
|
@@ -3,7 +3,7 @@ const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.12
|
|
|
3
3
|
const require_useEngineContext = require("../../hooks/useEngineContext.js");
|
|
4
4
|
const require_useInitLocalesOnce = require("../../hooks/useInitLocalesOnce.js");
|
|
5
5
|
const require_usePaymentMethodNameMap = require("../pisellSalesManagement/hooks/usePaymentMethodNameMap.js");
|
|
6
|
-
const require_paymentStatus = require("../
|
|
6
|
+
const require_paymentStatus = require("../salesSdk/utils/paymentStatus.js");
|
|
7
7
|
const require_locales = require("./locales.js");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_runtime.__toESM(react);
|
|
@@ -3,6 +3,7 @@ const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0
|
|
|
3
3
|
const require_useEngineContext = require("../../../hooks/useEngineContext.js");
|
|
4
4
|
const require_serve = require("../serve.js");
|
|
5
5
|
const require_usePaymentMethodNameMap = require("./usePaymentMethodNameMap.js");
|
|
6
|
+
const require_paymentStatus = require("../../salesSdk/utils/paymentStatus.js");
|
|
6
7
|
const require_index = require("../../clientName/index.js");
|
|
7
8
|
const require_order = require("../config/order.js");
|
|
8
9
|
const require_booking = require("../config/booking.js");
|
|
@@ -314,7 +315,7 @@ const useBookingPerspective = (params, options) => {
|
|
|
314
315
|
align: "center",
|
|
315
316
|
render: (_, record) => {
|
|
316
317
|
const order = (record === null || record === void 0 ? void 0 : record.order) || {};
|
|
317
|
-
const payments = Array.isArray(order === null || order === void 0 ? void 0 : order.payments) ? order.payments : [];
|
|
318
|
+
const payments = Array.isArray(order === null || order === void 0 ? void 0 : order.payments) ? order.payments.filter(require_paymentStatus.isAppliedPaymentRecord) : [];
|
|
318
319
|
const currencySymbol = order === null || order === void 0 ? void 0 : order.currency_symbol;
|
|
319
320
|
if (payments.length === 0) return "-";
|
|
320
321
|
return /* @__PURE__ */ react.default.createElement("div", { style: {
|
|
@@ -3,6 +3,7 @@ const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0
|
|
|
3
3
|
const require_useEngineContext = require("../../../hooks/useEngineContext.js");
|
|
4
4
|
const require_serve = require("../serve.js");
|
|
5
5
|
const require_usePaymentMethodNameMap = require("./usePaymentMethodNameMap.js");
|
|
6
|
+
const require_paymentStatus = require("../../salesSdk/utils/paymentStatus.js");
|
|
6
7
|
const require_index = require("../../clientName/index.js");
|
|
7
8
|
const require_order = require("../config/order.js");
|
|
8
9
|
const require_index$1 = require("../config/index.js");
|
|
@@ -446,7 +447,8 @@ const useOrderPerspective = (options) => {
|
|
|
446
447
|
width: 180,
|
|
447
448
|
align: "center",
|
|
448
449
|
render: (_, record) => {
|
|
449
|
-
const
|
|
450
|
+
const rawPayments = (record === null || record === void 0 ? void 0 : record.payments) || (record === null || record === void 0 ? void 0 : record.payment);
|
|
451
|
+
const payments = Array.isArray(rawPayments) ? rawPayments.filter(require_paymentStatus.isAppliedPaymentRecord) : [];
|
|
450
452
|
const currencySymbol = record === null || record === void 0 ? void 0 : record.currency_symbol;
|
|
451
453
|
if (payments.length === 0) return "-";
|
|
452
454
|
return /* @__PURE__ */ react.default.createElement("div", { style: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
2
2
|
const require_useEngineContext = require("../../../../hooks/useEngineContext.js");
|
|
3
3
|
const require_usePaymentMethodNameMap = require("../../../pisellSalesManagement/hooks/usePaymentMethodNameMap.js");
|
|
4
|
-
const require_paymentStatus = require("
|
|
4
|
+
const require_paymentStatus = require("../../../salesSdk/utils/paymentStatus.js");
|
|
5
5
|
const require_useSalesSdk = require("../../../salesSdk/hooks/useSalesSdk.js");
|
|
6
6
|
const require_useSalesSdkCart = require("../../../salesSdk/hooks/useSalesSdkCart.js");
|
|
7
7
|
const require_useSalesSdkSummary = require("../../../salesSdk/hooks/useSalesSdkSummary.js");
|
|
@@ -3,7 +3,7 @@ const require_objectSpread2 = require("../../../../../../_virtual/_@oxc-project_
|
|
|
3
3
|
const require_asyncToGenerator = require("../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
|
|
4
4
|
const require_useEngineContext = require("../../../../../../hooks/useEngineContext.js");
|
|
5
5
|
const require_usePaymentMethodNameMap = require("../../../../../pisellSalesManagement/hooks/usePaymentMethodNameMap.js");
|
|
6
|
-
const require_paymentStatus = require("
|
|
6
|
+
const require_paymentStatus = require("../../../../../salesSdk/utils/paymentStatus.js");
|
|
7
7
|
const require_index = require("../../../../../piPaymentUI/eftpos/contracts/index.js");
|
|
8
8
|
const require_index$1 = require("../../../../../piPaymentUI/contracts/index.js");
|
|
9
9
|
const require_PiPayment = require("../../../../../piPaymentUI/PiPayment.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.664",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@pisell/pi-payment-sdk": "0.0.3",
|
|
73
73
|
"@pisell/materials": "6.11.256",
|
|
74
74
|
"@pisell/date-picker": "3.0.10",
|
|
75
|
-
"@pisell/
|
|
76
|
-
"@pisell/
|
|
75
|
+
"@pisell/icon": "0.0.11",
|
|
76
|
+
"@pisell/utils": "3.0.4"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|