@pisell/pisellos 2.3.185 → 2.3.187
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/dist/modules/Order/utils.d.ts +3 -1
- package/dist/modules/Order/utils.js +17 -3
- package/dist/modules/Product/index.d.ts +1 -1
- package/dist/modules/Product/types.d.ts +5 -0
- package/dist/modules/Rules/index.js +30 -19
- package/dist/solution/BaseSales/index.d.ts +1 -0
- package/dist/solution/BaseSales/index.js +298 -209
- package/dist/solution/BaseSales/types.d.ts +3 -0
- package/dist/solution/BaseSales/utils/posDurationPricing.d.ts +21 -0
- package/dist/solution/BaseSales/utils/posDurationPricing.js +174 -0
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +2 -0
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +8 -8
- package/dist/solution/BookingByStep/index.d.ts +2 -2
- package/dist/solution/UnifiedBookingSales/index.js +34 -16
- package/lib/modules/Order/utils.d.ts +3 -1
- package/lib/modules/Order/utils.js +18 -2
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/modules/Product/types.d.ts +5 -0
- package/lib/modules/Rules/index.js +19 -9
- package/lib/solution/BaseSales/index.d.ts +1 -0
- package/lib/solution/BaseSales/index.js +95 -36
- package/lib/solution/BaseSales/types.d.ts +3 -0
- package/lib/solution/BaseSales/utils/posDurationPricing.d.ts +21 -0
- package/lib/solution/BaseSales/utils/posDurationPricing.js +133 -0
- package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +2 -0
- package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +1 -1
- package/lib/solution/BookingByStep/index.d.ts +2 -2
- package/lib/solution/UnifiedBookingSales/index.js +23 -1
- package/package.json +1 -1
- package/dist/apis/picoding.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/effects/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/inventory/index.d.ts.map +0 -1
- package/dist/model/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/example.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/locales.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/utils.d.ts.map +0 -1
- package/dist/model/strategy/engine.d.ts.map +0 -1
- package/dist/model/strategy/index.d.ts.map +0 -1
- package/dist/model/strategy/strategy-example.d.ts.map +0 -1
- package/dist/model/strategy/type.d.ts.map +0 -1
- package/dist/modules/Account/index.d.ts.map +0 -1
- package/dist/modules/Account/types.d.ts.map +0 -1
- package/dist/modules/AccountList/index.d.ts.map +0 -1
- package/dist/modules/AccountList/types.d.ts.map +0 -1
- package/dist/modules/AccountList/utils.d.ts.map +0 -1
- package/dist/modules/BaseModule.d.ts.map +0 -1
- package/dist/modules/BookingContext/index.d.ts.map +0 -1
- package/dist/modules/BookingContext/types.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/flexible.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/formatResourceList.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/index.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/noResource.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/productExtend.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resourceErrors.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resourceSelection.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resources.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/serviceTimes.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/timeSlices.d.ts.map +0 -1
- package/dist/modules/BusinessAvailability/index.d.ts.map +0 -1
- package/dist/modules/Cart/index.d.ts.map +0 -1
- package/dist/modules/Cart/types.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartAccount.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartDate.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartDiscount.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartNote.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartProduct.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartRelationForms.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartResource.d.ts.map +0 -1
- package/dist/modules/Cart/utils/changePrice.d.ts.map +0 -1
- package/dist/modules/Cart/utils/index.d.ts.map +0 -1
- package/dist/modules/Customer/constants.d.ts.map +0 -1
- package/dist/modules/Customer/index.d.ts.map +0 -1
- package/dist/modules/Customer/types.d.ts.map +0 -1
- package/dist/modules/Date/index.d.ts.map +0 -1
- package/dist/modules/Date/types.d.ts.map +0 -1
- package/dist/modules/Date/utils.d.ts.map +0 -1
- package/dist/modules/Discount/availability.d.ts.map +0 -1
- package/dist/modules/Discount/entitlementPass.d.ts.map +0 -1
- package/dist/modules/Discount/index.d.ts.map +0 -1
- package/dist/modules/Discount/types.d.ts.map +0 -1
- package/dist/modules/FulfillmentTiming/index.d.ts.map +0 -1
- package/dist/modules/FulfillmentTiming/types.d.ts.map +0 -1
- package/dist/modules/Guests/index.d.ts.map +0 -1
- package/dist/modules/Guests/types.d.ts.map +0 -1
- package/dist/modules/Holder/index.d.ts.map +0 -1
- package/dist/modules/Holder/types.d.ts.map +0 -1
- package/dist/modules/Holder/utils.d.ts.map +0 -1
- package/dist/modules/OpenData/contactInfo.d.ts.map +0 -1
- package/dist/modules/OpenData/index.d.ts.map +0 -1
- package/dist/modules/OpenData/salesSettings.d.ts.map +0 -1
- package/dist/modules/OpenData/types.d.ts.map +0 -1
- package/dist/modules/OpenData/utils.d.ts.map +0 -1
- package/dist/modules/Order/holderRelations.d.ts.map +0 -1
- package/dist/modules/Order/index.d.ts.map +0 -1
- package/dist/modules/Order/localEftposState.d.ts.map +0 -1
- package/dist/modules/Order/payment-utils.d.ts.map +0 -1
- package/dist/modules/Order/pickupTiming.d.ts.map +0 -1
- package/dist/modules/Order/salesNotes.d.ts.map +0 -1
- package/dist/modules/Order/types.d.ts.map +0 -1
- package/dist/modules/Order/utils/bundleDiscountHydration.d.ts.map +0 -1
- package/dist/modules/Order/utils/discountProductLineIdentity.d.ts.map +0 -1
- package/dist/modules/Order/utils/manualProductDiscount.d.ts.map +0 -1
- package/dist/modules/Order/utils/orderCollectionIdentity.d.ts.map +0 -1
- package/dist/modules/Order/utils/productVoucherGroups.d.ts.map +0 -1
- package/dist/modules/Order/utils/virtualSettlement.d.ts.map +0 -1
- package/dist/modules/Order/utils/weighedProduct.d.ts.map +0 -1
- package/dist/modules/Order/utils.d.ts.map +0 -1
- package/dist/modules/Payment/cash.d.ts.map +0 -1
- package/dist/modules/Payment/cashRecommendationAlgorithm.d.ts.map +0 -1
- package/dist/modules/Payment/eftpos.d.ts.map +0 -1
- package/dist/modules/Payment/index.d.ts.map +0 -1
- package/dist/modules/Payment/mx51.d.ts.map +0 -1
- package/dist/modules/Payment/types.d.ts.map +0 -1
- package/dist/modules/Payment/utils.d.ts.map +0 -1
- package/dist/modules/Payment/walletpass.d.ts.map +0 -1
- package/dist/modules/Product/index.d.ts.map +0 -1
- package/dist/modules/Product/types.d.ts.map +0 -1
- package/dist/modules/Product/utils.d.ts.map +0 -1
- package/dist/modules/ProductList/clientDataVariants.d.ts.map +0 -1
- package/dist/modules/ProductList/index.d.ts.map +0 -1
- package/dist/modules/ProductList/types.d.ts.map +0 -1
- package/dist/modules/Quotation/index.d.ts.map +0 -1
- package/dist/modules/Quotation/types.d.ts.map +0 -1
- package/dist/modules/Resource/index.d.ts.map +0 -1
- package/dist/modules/Resource/types.d.ts.map +0 -1
- package/dist/modules/Resource/utils.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/index.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/localClock.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/planner.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/types.d.ts.map +0 -1
- package/dist/modules/Rules/index.d.ts.map +0 -1
- package/dist/modules/Rules/promotionSelection.d.ts.map +0 -1
- package/dist/modules/Rules/types.d.ts.map +0 -1
- package/dist/modules/SalesSummary/index.d.ts.map +0 -1
- package/dist/modules/SalesSummary/types.d.ts.map +0 -1
- package/dist/modules/SalesSummary/utils.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/index.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/providers/feishu.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/providers/grafana.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/types.d.ts.map +0 -1
- package/dist/modules/Schedule/getDateIsInSchedule.d.ts.map +0 -1
- package/dist/modules/Schedule/index.d.ts.map +0 -1
- package/dist/modules/Schedule/type.d.ts.map +0 -1
- package/dist/modules/Schedule/types.d.ts.map +0 -1
- package/dist/modules/Schedule/utils.d.ts.map +0 -1
- package/dist/modules/Step/index.d.ts.map +0 -1
- package/dist/modules/Step/tyeps.d.ts.map +0 -1
- package/dist/modules/Summary/index.d.ts.map +0 -1
- package/dist/modules/Summary/types.d.ts.map +0 -1
- package/dist/modules/Summary/utils.d.ts.map +0 -1
- package/dist/modules/SurchargeList/index.d.ts.map +0 -1
- package/dist/modules/SurchargeList/types.d.ts.map +0 -1
- package/dist/modules/index.d.ts.map +0 -1
- package/dist/plugins/app.d.ts.map +0 -1
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/request.d.ts.map +0 -1
- package/dist/plugins/shopStore.d.ts.map +0 -1
- package/dist/plugins/user.d.ts.map +0 -1
- package/dist/plugins/window.d.ts.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/modules/floor-plan/index.d.ts.map +0 -1
- package/dist/server/modules/floor-plan/types.d.ts.map +0 -1
- package/dist/server/modules/form/index.d.ts.map +0 -1
- package/dist/server/modules/form/types.d.ts.map +0 -1
- package/dist/server/modules/index.d.ts.map +0 -1
- package/dist/server/modules/menu/index.d.ts.map +0 -1
- package/dist/server/modules/menu/types.d.ts.map +0 -1
- package/dist/server/modules/order/index.d.ts.map +0 -1
- package/dist/server/modules/order/types.d.ts.map +0 -1
- package/dist/server/modules/order/utils/filterBookings.d.ts.map +0 -1
- package/dist/server/modules/order/utils/filterOrders.d.ts.map +0 -1
- package/dist/server/modules/payment/index.d.ts.map +0 -1
- package/dist/server/modules/payment/types.d.ts.map +0 -1
- package/dist/server/modules/products/index.d.ts.map +0 -1
- package/dist/server/modules/products/replication.d.ts.map +0 -1
- package/dist/server/modules/products/types.d.ts.map +0 -1
- package/dist/server/modules/quotation/index.d.ts.map +0 -1
- package/dist/server/modules/quotation/types.d.ts.map +0 -1
- package/dist/server/modules/resource/index.d.ts.map +0 -1
- package/dist/server/modules/resource/types.d.ts.map +0 -1
- package/dist/server/modules/schedule/index.d.ts.map +0 -1
- package/dist/server/modules/schedule/types.d.ts.map +0 -1
- package/dist/server/modules/schedule/utils.d.ts.map +0 -1
- package/dist/server/types.d.ts.map +0 -1
- package/dist/server/utils/index.d.ts.map +0 -1
- package/dist/server/utils/product.d.ts.map +0 -1
- package/dist/server/utils/schedule.d.ts.map +0 -1
- package/dist/server/utils/small-ticket.d.ts.map +0 -1
- package/dist/server/utils/time.d.ts.map +0 -1
- package/dist/shared/payment/loadPaymentMethods.d.ts.map +0 -1
- package/dist/shared/receipt/customerInvoiceLanguages.d.ts.map +0 -1
- package/dist/shared/receipt/loadCustomerInvoiceLayout.d.ts.map +0 -1
- package/dist/shared/receipt/small-ticket.d.ts.map +0 -1
- package/dist/shared/receipt/templateVisibility.d.ts.map +0 -1
- package/dist/shared/sales/loadSalesOrderSnapshot.d.ts.map +0 -1
- package/dist/solution/BaseSales/fulfillmentItemRules.d.ts.map +0 -1
- package/dist/solution/BaseSales/index.d.ts.map +0 -1
- package/dist/solution/BaseSales/pickupTiming.d.ts.map +0 -1
- package/dist/solution/BaseSales/types.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/cartPromotion.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/quotationPrice.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils.d.ts.map +0 -1
- package/dist/solution/BookingByStep/index.d.ts.map +0 -1
- package/dist/solution/BookingByStep/types.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/capacity.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/products.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/resources.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/stock.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/timeslots.d.ts.map +0 -1
- package/dist/solution/BookingTicket/index.d.ts.map +0 -1
- package/dist/solution/BookingTicket/types.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/addProductDecision.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/bookingStatus.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/cartView.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/exampleData.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/orderCustomer.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/index.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/scanCache.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/weighingProductSku.d.ts.map +0 -1
- package/dist/solution/BuyTickets/index.d.ts.map +0 -1
- package/dist/solution/BuyTickets/types.d.ts.map +0 -1
- package/dist/solution/Checkout/index.d.ts.map +0 -1
- package/dist/solution/Checkout/types.d.ts.map +0 -1
- package/dist/solution/Checkout/utils/index.d.ts.map +0 -1
- package/dist/solution/OrderInvoicePreview/index.d.ts.map +0 -1
- package/dist/solution/PlaceOrder/index.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/config.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/index.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/types.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/utils.d.ts.map +0 -1
- package/dist/solution/Sales/index.d.ts.map +0 -1
- package/dist/solution/Sales/types.d.ts.map +0 -1
- package/dist/solution/ScanOrder/index.d.ts.map +0 -1
- package/dist/solution/ScanOrder/menuAvailability.d.ts.map +0 -1
- package/dist/solution/ScanOrder/types.d.ts.map +0 -1
- package/dist/solution/ScanOrder/utils.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/index.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/types.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/utils.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/businessAvailability.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/salesSettings.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/types.d.ts.map +0 -1
- package/dist/solution/VenueBooking/index.d.ts.map +0 -1
- package/dist/solution/VenueBooking/types.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/dateSummary.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/resource.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/smartPricing.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/timeSlot.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils.d.ts.map +0 -1
- package/dist/solution/index.d.ts.map +0 -1
- package/dist/store/createStore.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/os-private-payload.d.ts.map +0 -1
- package/dist/utils/payment-number.d.ts.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/task.d.ts.map +0 -1
- package/dist/utils/watch.d.ts.map +0 -1
|
@@ -940,6 +940,22 @@ class RulesModule extends _BaseModule.BaseModule {
|
|
|
940
940
|
|
|
941
941
|
// 记录已应用优惠券的商品信息
|
|
942
942
|
const appliedDiscountProducts = new Map();
|
|
943
|
+
const hasPayableOptions = product => {
|
|
944
|
+
return (product.options || []).reduce((total, option) => {
|
|
945
|
+
const unitPrice = Number(option._original_price ?? option._original_add_price ?? option.price ?? option.add_price ?? 0);
|
|
946
|
+
const quantity = Number(option.num ?? option.quantity ?? 1);
|
|
947
|
+
if (!Number.isFinite(unitPrice) || !Number.isFinite(quantity) || quantity <= 0) {
|
|
948
|
+
return total;
|
|
949
|
+
}
|
|
950
|
+
return total.plus(new _decimal.default(unitPrice).mul(quantity));
|
|
951
|
+
}, new _decimal.default(0)).greaterThan(0);
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
// 只排除赠品主项的零可抵扣金额;收费 option 和独立 bundle 保持原有规则。
|
|
955
|
+
const isGiftWithoutDeductibleAmount = (flatItem, discount) => {
|
|
956
|
+
if (flatItem.type !== 'main' || !flatItem.originProduct?.metadata?._giftInfo || Number(flatItem.price || 0) > 0) return false;
|
|
957
|
+
return !discount.config?.deductOptionPrice || !hasPayableOptions(flatItem.product);
|
|
958
|
+
};
|
|
943
959
|
|
|
944
960
|
// 可用性和实际应用共用金额判断;零基础价商品可按策略抵扣收费 option。
|
|
945
961
|
const isDiscountCardPriceAvailable = (flatItem, discount) => {
|
|
@@ -950,14 +966,7 @@ class RulesModule extends _BaseModule.BaseModule {
|
|
|
950
966
|
if (flatItem.type !== 'main' || Number(flatItem.price) !== 0 || !['discount_card', 'product_discount_card'].includes(discount.tag || discount.type || '') || !discount.config?.deductOptionPrice || (0, _utils.isOrderLevelFixedAmountDiscount)(discount)) {
|
|
951
967
|
return false;
|
|
952
968
|
}
|
|
953
|
-
return (product
|
|
954
|
-
const unitPrice = Number(option._original_price ?? option._original_add_price ?? option.price ?? option.add_price ?? 0);
|
|
955
|
-
const quantity = Number(option.num ?? option.quantity ?? 1);
|
|
956
|
-
if (!Number.isFinite(unitPrice) || !Number.isFinite(quantity) || quantity <= 0) {
|
|
957
|
-
return total;
|
|
958
|
-
}
|
|
959
|
-
return total.plus(new _decimal.default(unitPrice).mul(quantity));
|
|
960
|
-
}, new _decimal.default(0)).greaterThan(0);
|
|
969
|
+
return hasPayableOptions(product);
|
|
961
970
|
};
|
|
962
971
|
|
|
963
972
|
// 首先遍历所有商品和所有优惠券,确定每个优惠券的适用范围,包括isSelected为false的优惠券
|
|
@@ -1012,7 +1021,7 @@ class RulesModule extends _BaseModule.BaseModule {
|
|
|
1012
1021
|
}
|
|
1013
1022
|
|
|
1014
1023
|
// 判断优惠券是否适用于该商品
|
|
1015
|
-
if (isAvailableProduct && !isItemRewardProductDiscount && isLimitedProduct && timeLimit && isBundleAvailable && discount.config?.isAvailable && ((0, _entitlementPass.isFullCoveragePass)(discount) || isDiscountCardPriceAvailable(flatItem, discount)) && (!(0, _entitlementPass.isEntitlementPass)(discount) || (0, _entitlementPass.getRemainingEntitlementUses)(discount, 0, 1) > 0)) {
|
|
1024
|
+
if (isAvailableProduct && !isItemRewardProductDiscount && !isGiftWithoutDeductibleAmount(flatItem, discount) && isLimitedProduct && timeLimit && isBundleAvailable && discount.config?.isAvailable && ((0, _entitlementPass.isFullCoveragePass)(discount) || isDiscountCardPriceAvailable(flatItem, discount)) && (!(0, _entitlementPass.isEntitlementPass)(discount) || (0, _entitlementPass.getRemainingEntitlementUses)(discount, 0, 1) > 0)) {
|
|
1016
1025
|
// 记录此优惠券适用的商品
|
|
1017
1026
|
discountApplicability.get(discount.id)?.push(product.id);
|
|
1018
1027
|
if (flatItem.type === 'main' && (0, _promotionSelection.isPromotionDiscountCard)(discount)) {
|
|
@@ -1161,6 +1170,7 @@ class RulesModule extends _BaseModule.BaseModule {
|
|
|
1161
1170
|
|
|
1162
1171
|
// 找到适用于此商品的所有优惠券,仅考虑isSelected不为false的优惠券
|
|
1163
1172
|
const applicableDiscounts = sortedDiscountList.filter(discount => {
|
|
1173
|
+
if (isGiftWithoutDeductibleAmount(flatItem, discount)) return false;
|
|
1164
1174
|
if (this.discountScope && !this.discountScope(originProduct, discount)) return false;
|
|
1165
1175
|
if (this.isItemRewardProductDiscount(product)) return false;
|
|
1166
1176
|
if (isCardBlockedByPromotion(flatItem, discount)) return false;
|
|
@@ -535,6 +535,7 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
|
|
|
535
535
|
getQuotationCustomerScopeInfo(): BaseSalesQuotationCustomerScopeInfo;
|
|
536
536
|
private hasSmartPricingStrategies;
|
|
537
537
|
shouldRecalculateProductBookingPricesForContextChange(params: BaseSalesPriceRecalculationContextChange): boolean;
|
|
538
|
+
private resolveProductBookingPriceGroups;
|
|
538
539
|
calculateProductBookingPrices(paramsList: BaseSalesCalculateProductBookingPriceParams[]): Promise<BaseSalesProductBookingPriceResult[]>;
|
|
539
540
|
setProductVoucherGroups(groups: Array<{
|
|
540
541
|
key: string;
|
|
@@ -43,6 +43,7 @@ var _platform = require("../../utils/platform");
|
|
|
43
43
|
var _Quotation = require("../../modules/Quotation");
|
|
44
44
|
var _transformBaseProductToOrderProduct = require("./utils/transformBaseProductToOrderProduct");
|
|
45
45
|
var _quotationPrice = require("./utils/quotationPrice");
|
|
46
|
+
var _posDurationPricing = require("./utils/posDurationPricing");
|
|
46
47
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47
48
|
const SERVER_ORDER_CHANGED_EVENT = 'order:onOrdersChanged';
|
|
48
49
|
const PAYMENT_METHODS_CHANGED_EVENT = 'payment:onPaymentMethodsChanged';
|
|
@@ -1127,6 +1128,9 @@ class BaseSalesImpl extends _BaseModule.BaseModule {
|
|
|
1127
1128
|
const shouldAlignSelectedVariantPrice = handledByOsServer && this.preferAuthoritativeProductQueryPrice();
|
|
1128
1129
|
return productIds.map((productId, index) => {
|
|
1129
1130
|
const authoritativeProduct = productId === null ? null : productsById.get(productId) || null;
|
|
1131
|
+
if (authoritativeProduct && (0, _platform.normalizeRuntimePlatform)(this.otherParams?.platform) === 'pos' && (params.strictDurationPricing || (0, _posDurationPricing.usesPosDurationPricing)(authoritativeProduct) || (0, _posDurationPricing.hasAppliedPosDurationPricing)(selectedProducts[index]))) {
|
|
1132
|
+
return (0, _posDurationPricing.resolveDurationPricingProduct)(authoritativeProduct, selectedProducts[index]);
|
|
1133
|
+
}
|
|
1130
1134
|
if (!shouldAlignSelectedVariantPrice || !authoritativeProduct) return authoritativeProduct;
|
|
1131
1135
|
const selectedProduct = selectedProducts[index];
|
|
1132
1136
|
const selectedVariantId = this.getSelectedProductVariantId(selectedProduct);
|
|
@@ -1244,6 +1248,8 @@ class BaseSalesImpl extends _BaseModule.BaseModule {
|
|
|
1244
1248
|
return {
|
|
1245
1249
|
...product,
|
|
1246
1250
|
...authoritativeProduct,
|
|
1251
|
+
// An omitted current configuration clears a previous catalog/order snapshot.
|
|
1252
|
+
pricing_method: authoritativeProduct.pricing_method,
|
|
1247
1253
|
id: product.id ?? authoritativeProduct.id,
|
|
1248
1254
|
product_id: product.product_id ?? authoritativeProduct.product_id ?? authoritativeProduct.id,
|
|
1249
1255
|
product_variant_id: product.product_variant_id ?? authoritativeProduct.product_variant_id ?? 0,
|
|
@@ -4205,33 +4211,8 @@ class BaseSalesImpl extends _BaseModule.BaseModule {
|
|
|
4205
4211
|
return (0, _transformBaseProductToOrderProduct.transformBaseProductToOrderProduct)(params);
|
|
4206
4212
|
}
|
|
4207
4213
|
async calculateProductBookingPrice(params) {
|
|
4208
|
-
const
|
|
4209
|
-
|
|
4210
|
-
const customerId = params.customer_id ?? this.getCurrentOrderCustomerId();
|
|
4211
|
-
await this.prepareProductPriceQueryContext(customerId);
|
|
4212
|
-
const channel = this.getPriceQueryChannel(params.channel);
|
|
4213
|
-
const [authoritativeProduct] = await this.resolveProductsForPriceQuery({
|
|
4214
|
-
priceQueries: [params],
|
|
4215
|
-
schedule: this.getPriceQuerySchedule(params),
|
|
4216
|
-
customerId,
|
|
4217
|
-
channel
|
|
4218
|
-
});
|
|
4219
|
-
const product = this.mergeProductForPriceQuery(params.product, authoritativeProduct);
|
|
4220
|
-
if (!useCustomerUserPricing) {
|
|
4221
|
-
await this.loadQuotationForPriceQuery({
|
|
4222
|
-
quotation,
|
|
4223
|
-
customer_id: customerId,
|
|
4224
|
-
channel
|
|
4225
|
-
});
|
|
4226
|
-
}
|
|
4227
|
-
return (0, _quotationPrice.calculateBaseSalesProductBookingPrice)({
|
|
4228
|
-
...params,
|
|
4229
|
-
channel,
|
|
4230
|
-
product,
|
|
4231
|
-
fallback_price: authoritativeProduct ? undefined : params.fallback_price,
|
|
4232
|
-
customer_id: customerId,
|
|
4233
|
-
quotation: authoritativeProduct && this.preferAuthoritativeProductQueryPrice() ? undefined : quotation
|
|
4234
|
-
});
|
|
4214
|
+
const [result] = await this.calculateProductBookingPrices([params]);
|
|
4215
|
+
return result;
|
|
4235
4216
|
}
|
|
4236
4217
|
getQuotationCustomerScopeInfo() {
|
|
4237
4218
|
const quotation = this.store.quotation;
|
|
@@ -4295,11 +4276,7 @@ class BaseSalesImpl extends _BaseModule.BaseModule {
|
|
|
4295
4276
|
}
|
|
4296
4277
|
return shouldRecalculate;
|
|
4297
4278
|
}
|
|
4298
|
-
async
|
|
4299
|
-
if (!paramsList.length) return [];
|
|
4300
|
-
const useCustomerUserPricing = this.isCustomerUserPriceQuery();
|
|
4301
|
-
const quotation = useCustomerUserPricing ? undefined : this.store.quotation;
|
|
4302
|
-
const currentOrderCustomerId = this.getCurrentOrderCustomerId();
|
|
4279
|
+
async resolveProductBookingPriceGroups(paramsList, currentOrderCustomerId, strictDurationPricing = false) {
|
|
4303
4280
|
const resolvedChannels = paramsList.map(params => this.getPriceQueryChannel(params.channel));
|
|
4304
4281
|
const authoritativeProducts = paramsList.map(() => null);
|
|
4305
4282
|
const groups = new Map();
|
|
@@ -4317,22 +4294,68 @@ class BaseSalesImpl extends _BaseModule.BaseModule {
|
|
|
4317
4294
|
group.indices.push(index);
|
|
4318
4295
|
groups.set(groupKey, group);
|
|
4319
4296
|
});
|
|
4320
|
-
await
|
|
4297
|
+
await (0, _posDurationPricing.forEachPriceQueryGroup)(Array.from(groups.values()), async group => {
|
|
4321
4298
|
await this.prepareProductPriceQueryContext(group.customerId);
|
|
4322
4299
|
const priceQueries = group.indices.map(index => paramsList[index]);
|
|
4323
4300
|
const resolvedProducts = await this.resolveProductsForPriceQuery({
|
|
4324
4301
|
priceQueries,
|
|
4325
4302
|
schedule: group.schedule,
|
|
4326
4303
|
customerId: group.customerId,
|
|
4327
|
-
channel: group.channel
|
|
4304
|
+
channel: group.channel,
|
|
4305
|
+
strictDurationPricing
|
|
4328
4306
|
});
|
|
4329
4307
|
group.indices.forEach((originalIndex, groupIndex) => {
|
|
4330
4308
|
authoritativeProducts[originalIndex] = resolvedProducts[groupIndex] || null;
|
|
4331
4309
|
});
|
|
4332
|
-
}));
|
|
4310
|
+
}, (0, _platform.normalizeRuntimePlatform)(this.otherParams?.platform) === 'pos' ? 4 : groups.size);
|
|
4311
|
+
return authoritativeProducts;
|
|
4312
|
+
}
|
|
4313
|
+
async calculateProductBookingPrices(paramsList) {
|
|
4314
|
+
if (!paramsList.length) return [];
|
|
4315
|
+
const useCustomerUserPricing = this.isCustomerUserPriceQuery();
|
|
4316
|
+
const isPos = (0, _platform.normalizeRuntimePlatform)(this.otherParams?.platform) === 'pos';
|
|
4317
|
+
const quotation = useCustomerUserPricing ? undefined : this.store.quotation;
|
|
4318
|
+
const currentOrderCustomerId = this.getCurrentOrderCustomerId();
|
|
4319
|
+
const resolvedChannels = paramsList.map(params => this.getPriceQueryChannel(params.channel));
|
|
4320
|
+
const authoritativeProducts = await this.resolveProductBookingPriceGroups(paramsList, currentOrderCustomerId);
|
|
4321
|
+
const plans = paramsList.map((params, index) => {
|
|
4322
|
+
if (!isPos) return null;
|
|
4323
|
+
const product = authoritativeProducts[index];
|
|
4324
|
+
if (!product && ((0, _posDurationPricing.usesPosDurationPricing)(params.product) || (0, _posDurationPricing.hasAppliedPosDurationPricing)(params.product))) {
|
|
4325
|
+
throw (0, _posDurationPricing.durationPricingUnavailable)('The authoritative product is unavailable for duration pricing.');
|
|
4326
|
+
}
|
|
4327
|
+
// Read configuration from the response itself: an omitted field must not inherit an old snapshot.
|
|
4328
|
+
return product && (0, _posDurationPricing.usesPosDurationPricing)(product) ? (0, _posDurationPricing.buildPosDurationPricingPlan)(params, product) : null;
|
|
4329
|
+
});
|
|
4330
|
+
const segmentQueries = [];
|
|
4331
|
+
const segmentQueryIndices = plans.map((plan, index) => plan?.segments.slice(1).map(segment => {
|
|
4332
|
+
const queryIndex = segmentQueries.length;
|
|
4333
|
+
segmentQueries.push({
|
|
4334
|
+
...paramsList[index],
|
|
4335
|
+
product: {
|
|
4336
|
+
...paramsList[index].product,
|
|
4337
|
+
product_bundle: undefined
|
|
4338
|
+
},
|
|
4339
|
+
booking: {
|
|
4340
|
+
...paramsList[index].booking,
|
|
4341
|
+
start_date: segment.start.slice(0, 10),
|
|
4342
|
+
start_time: segment.start.slice(11),
|
|
4343
|
+
end_date: segment.end.slice(0, 10),
|
|
4344
|
+
end_time: segment.end.slice(11)
|
|
4345
|
+
},
|
|
4346
|
+
duration: undefined,
|
|
4347
|
+
fallback_price: undefined
|
|
4348
|
+
});
|
|
4349
|
+
return queryIndex;
|
|
4350
|
+
}) || []);
|
|
4351
|
+
const segmentProducts = await this.resolveProductBookingPriceGroups(segmentQueries, currentOrderCustomerId, true);
|
|
4352
|
+
if (segmentProducts.some(product => !product)) {
|
|
4353
|
+
throw (0, _posDurationPricing.durationPricingUnavailable)('An authoritative product is missing for a billing unit.');
|
|
4354
|
+
}
|
|
4333
4355
|
if (!useCustomerUserPricing) {
|
|
4334
4356
|
const quotationContexts = new Map();
|
|
4335
4357
|
paramsList.forEach((params, index) => {
|
|
4358
|
+
if (plans[index]) return;
|
|
4336
4359
|
const channel = resolvedChannels[index];
|
|
4337
4360
|
const key = channel || '';
|
|
4338
4361
|
if (quotationContexts.has(key)) return;
|
|
@@ -4352,14 +4375,50 @@ class BaseSalesImpl extends _BaseModule.BaseModule {
|
|
|
4352
4375
|
const product = this.mergeProductForPriceQuery(productInput, authoritativeProduct);
|
|
4353
4376
|
const customerId = params.customer_id ?? currentOrderCustomerId;
|
|
4354
4377
|
const channel = resolvedChannels[index];
|
|
4355
|
-
|
|
4378
|
+
const plan = plans[index];
|
|
4379
|
+
if (plan) {
|
|
4380
|
+
const unitProducts = [authoritativeProduct, ...segmentQueryIndices[index].map(queryIndex => segmentProducts[queryIndex])];
|
|
4381
|
+
const prices = unitProducts.map((unitProduct, unitIndex) => (0, _quotationPrice.calculateBaseSalesProductBookingPrice)({
|
|
4382
|
+
...params,
|
|
4383
|
+
channel,
|
|
4384
|
+
product: this.mergeProductForPriceQuery(unitIndex === 0 ? productInput : {
|
|
4385
|
+
...productInput,
|
|
4386
|
+
product_bundle: undefined
|
|
4387
|
+
}, unitProduct),
|
|
4388
|
+
booking: {
|
|
4389
|
+
...params.booking,
|
|
4390
|
+
start_date: plan.segments[unitIndex].start.slice(0, 10),
|
|
4391
|
+
start_time: plan.segments[unitIndex].start.slice(11)
|
|
4392
|
+
},
|
|
4393
|
+
duration: undefined,
|
|
4394
|
+
fallback_price: undefined,
|
|
4395
|
+
customer_id: customerId,
|
|
4396
|
+
quotation: undefined
|
|
4397
|
+
}));
|
|
4398
|
+
return (0, _posDurationPricing.combinePosDurationPrices)(plan, prices);
|
|
4399
|
+
}
|
|
4400
|
+
const changedToFixed = isPos && ((0, _posDurationPricing.usesPosDurationPricing)(productInput) || (0, _posDurationPricing.hasAppliedPosDurationPricing)(productInput)) && authoritativeProduct && !(0, _posDurationPricing.usesPosDurationPricing)(authoritativeProduct);
|
|
4401
|
+
// A switch to Days can explicitly request the existing per-day quotation path.
|
|
4402
|
+
// Discard the old minute basis, but do not erase that independent legacy input.
|
|
4403
|
+
const keepLegacyDayDuration = changedToFixed && ['day', 'days'].includes(String(authoritativeProduct?.duration?.type || '').trim().toLowerCase()) && ['day', 'days'].includes(String(params.duration?.type || '').trim().toLowerCase());
|
|
4404
|
+
const result = (0, _quotationPrice.calculateBaseSalesProductBookingPrice)({
|
|
4356
4405
|
...params,
|
|
4406
|
+
...(changedToFixed && !keepLegacyDayDuration ? {
|
|
4407
|
+
duration: undefined
|
|
4408
|
+
} : {}),
|
|
4357
4409
|
channel,
|
|
4358
4410
|
product,
|
|
4359
4411
|
fallback_price: authoritativeProduct ? undefined : params.fallback_price,
|
|
4360
4412
|
customer_id: customerId,
|
|
4361
4413
|
quotation: authoritativeProduct && this.preferAuthoritativeProductQueryPrice() ? undefined : quotation
|
|
4362
4414
|
});
|
|
4415
|
+
return changedToFixed ? {
|
|
4416
|
+
...result,
|
|
4417
|
+
pricing_method: {
|
|
4418
|
+
type: 'fixed_price'
|
|
4419
|
+
},
|
|
4420
|
+
duration: undefined
|
|
4421
|
+
} : result;
|
|
4363
4422
|
});
|
|
4364
4423
|
}
|
|
4365
4424
|
setProductVoucherGroups(groups) {
|
|
@@ -348,6 +348,9 @@ export interface BaseSalesProductBookingPriceResult {
|
|
|
348
348
|
unit_price: string;
|
|
349
349
|
total_price: string;
|
|
350
350
|
quantity: number;
|
|
351
|
+
pricing_method?: {
|
|
352
|
+
type: 'fixed_price' | 'duration_based';
|
|
353
|
+
};
|
|
351
354
|
duration?: BaseSalesQuotationDurationConfig;
|
|
352
355
|
quotation_shelf_id: number;
|
|
353
356
|
segments: BaseSalesProductBookingPriceSegment[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BaseSalesCalculateProductBookingPriceParams, BaseSalesProductBookingPriceResult, BaseSalesQuotationDurationConfig } from '../types';
|
|
2
|
+
export interface PosDurationPricingPlan {
|
|
3
|
+
duration: BaseSalesQuotationDurationConfig;
|
|
4
|
+
segments: Array<{
|
|
5
|
+
start: string;
|
|
6
|
+
end: string;
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
export declare function durationPricingUnavailable(message: string): Error & {
|
|
10
|
+
code: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function hasDurationBasedPricing(product: Record<string, any> | null | undefined): boolean;
|
|
13
|
+
/** Days/Flexible retain their existing quotation behavior. */
|
|
14
|
+
export declare function usesPosDurationPricing(product: Record<string, any> | null | undefined): boolean;
|
|
15
|
+
/** A hydrated catalog can already be fixed while its order/quote still contains an applied duration price. */
|
|
16
|
+
export declare function hasAppliedPosDurationPricing(product: Record<string, any> | null | undefined): boolean;
|
|
17
|
+
export declare function buildPosDurationPricingPlan(params: BaseSalesCalculateProductBookingPriceParams, product: Record<string, any>): PosDurationPricingPlan;
|
|
18
|
+
/** Never use a previously accumulated order price as one unit's fallback. */
|
|
19
|
+
export declare function resolveDurationPricingProduct(product: Record<string, any>, selected: Record<string, any>): Record<string, any>;
|
|
20
|
+
export declare function combinePosDurationPrices(plan: PosDurationPricingPlan, prices: BaseSalesProductBookingPriceResult[]): BaseSalesProductBookingPriceResult;
|
|
21
|
+
export declare function forEachPriceQueryGroup<T>(groups: T[], resolve: (group: T) => Promise<void>, concurrency: number): Promise<void>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.buildPosDurationPricingPlan = buildPosDurationPricingPlan;
|
|
7
|
+
exports.combinePosDurationPrices = combinePosDurationPrices;
|
|
8
|
+
exports.durationPricingUnavailable = durationPricingUnavailable;
|
|
9
|
+
exports.forEachPriceQueryGroup = forEachPriceQueryGroup;
|
|
10
|
+
exports.hasAppliedPosDurationPricing = hasAppliedPosDurationPricing;
|
|
11
|
+
exports.hasDurationBasedPricing = hasDurationBasedPricing;
|
|
12
|
+
exports.resolveDurationPricingProduct = resolveDurationPricingProduct;
|
|
13
|
+
exports.usesPosDurationPricing = usesPosDurationPricing;
|
|
14
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
15
|
+
var _decimal = _interopRequireDefault(require("decimal.js"));
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function durationPricingUnavailable(message) {
|
|
18
|
+
return Object.assign(new Error(message), {
|
|
19
|
+
code: 'DURATION_PRICING_UNAVAILABLE'
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function hasDurationBasedPricing(product) {
|
|
23
|
+
return product?.pricing_method?.type === 'duration_based';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Days/Flexible retain their existing quotation behavior. */
|
|
27
|
+
function usesPosDurationPricing(product) {
|
|
28
|
+
const type = String(product?.duration?.type || '').trim().toLowerCase();
|
|
29
|
+
return hasDurationBasedPricing(product) && !['day', 'days', 'flexible'].includes(type);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** A hydrated catalog can already be fixed while its order/quote still contains an applied duration price. */
|
|
33
|
+
function hasAppliedPosDurationPricing(product) {
|
|
34
|
+
return usesPosDurationPricing(product?._extend?.bookingPriceQuote) || usesPosDurationPricing(product?._extend?.bookingPrice?.quote) || usesPosDurationPricing(product?.metadata);
|
|
35
|
+
}
|
|
36
|
+
function bookingDateTime(date, time) {
|
|
37
|
+
const dateText = typeof date === 'string' ? date.trim() : '';
|
|
38
|
+
const timeText = typeof time === 'string' ? time.trim() : '';
|
|
39
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(dateText) || !/^\d{2}:\d{2}(?::\d{2})?$/.test(timeText)) {
|
|
40
|
+
throw durationPricingUnavailable('A valid booking start and end are required for duration pricing.');
|
|
41
|
+
}
|
|
42
|
+
const text = `${dateText} ${timeText.length === 5 ? `${timeText}:00` : timeText}`;
|
|
43
|
+
const value = (0, _dayjs.default)(text);
|
|
44
|
+
if (!value.isValid() || value.format('YYYY-MM-DD HH:mm:ss') !== text) {
|
|
45
|
+
throw durationPricingUnavailable('The booking time is invalid for duration pricing.');
|
|
46
|
+
}
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function buildPosDurationPricingPlan(params, product) {
|
|
50
|
+
const type = String(product.duration?.type || '').trim().toLowerCase();
|
|
51
|
+
const value = Number(product.duration?.value);
|
|
52
|
+
const minutes = ['hour', 'hours'].includes(type) ? value * 60 : value;
|
|
53
|
+
if (!['minute', 'minutes', 'hour', 'hours'].includes(type) || !Number.isFinite(minutes) || minutes <= 0) {
|
|
54
|
+
throw durationPricingUnavailable('A positive fixed billing duration is required.');
|
|
55
|
+
}
|
|
56
|
+
const start = bookingDateTime(params.booking?.start_date, params.booking?.start_time);
|
|
57
|
+
const end = bookingDateTime(params.booking?.end_date, params.booking?.end_time);
|
|
58
|
+
const count = end.diff(start) / (minutes * 60_000);
|
|
59
|
+
if (!Number.isInteger(count) || count < 1 || count > 10_000) {
|
|
60
|
+
throw durationPricingUnavailable('The booking duration must be a whole multiple of its billing duration.');
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
duration: {
|
|
64
|
+
type: 'minutes',
|
|
65
|
+
value: minutes
|
|
66
|
+
},
|
|
67
|
+
segments: Array.from({
|
|
68
|
+
length: count
|
|
69
|
+
}, (_, index) => ({
|
|
70
|
+
start: start.add(index * minutes, 'minute').format('YYYY-MM-DD HH:mm:ss'),
|
|
71
|
+
end: start.add((index + 1) * minutes, 'minute').format('YYYY-MM-DD HH:mm:ss')
|
|
72
|
+
}))
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Never use a previously accumulated order price as one unit's fallback. */
|
|
77
|
+
function resolveDurationPricingProduct(product, selected) {
|
|
78
|
+
const variantId = Number(selected.product_variant_id ?? selected.variant_id ?? 0);
|
|
79
|
+
const authoritativeVariantId = Number(product.product_variant_id ?? product.variant_id ?? 0);
|
|
80
|
+
const variant = variantId > 0 && Array.isArray(product.variant) ? product.variant.find(item => Number(item?.id) === variantId) : undefined;
|
|
81
|
+
if (variantId > 0 && !variant && authoritativeVariantId !== variantId) {
|
|
82
|
+
throw durationPricingUnavailable('The selected SKU is missing from the authoritative price response.');
|
|
83
|
+
}
|
|
84
|
+
const appliedFields = product._dataVariant?.appliedFields;
|
|
85
|
+
const hasAppliedPrice = Array.isArray(appliedFields) && ['price', 'selling_price', 'original_price', 'base_price'].some(field => appliedFields.includes(field));
|
|
86
|
+
const priceSource = variantId > 0 && authoritativeVariantId !== variantId && !hasAppliedPrice ? variant : product;
|
|
87
|
+
const price = priceSource?.price ?? priceSource?.selling_price ?? priceSource?.base_price ?? priceSource?.original_price;
|
|
88
|
+
if (!(typeof price === 'number' || typeof price === 'string' && price.trim() !== '') || !Number.isFinite(Number(price)) || Number(price) < 0) {
|
|
89
|
+
throw durationPricingUnavailable('An authoritative price is required for every billing unit.');
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
...product,
|
|
93
|
+
price
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function combinePosDurationPrices(plan, prices) {
|
|
97
|
+
if (prices.length !== plan.segments.length || prices.length === 0) {
|
|
98
|
+
throw durationPricingUnavailable('The duration price is incomplete.');
|
|
99
|
+
}
|
|
100
|
+
const unitPrice = prices.reduce((sum, price) => sum.plus(price.unit_price), new _decimal.default(0));
|
|
101
|
+
return {
|
|
102
|
+
...prices[0],
|
|
103
|
+
pricing_method: {
|
|
104
|
+
type: 'duration_based'
|
|
105
|
+
},
|
|
106
|
+
duration: plan.duration,
|
|
107
|
+
unit_price: unitPrice.toFixed(2),
|
|
108
|
+
total_price: unitPrice.times(prices[0].quantity).toFixed(2),
|
|
109
|
+
quotation_shelf_id: prices.find(price => price.quotation_shelf_id)?.quotation_shelf_id || 0,
|
|
110
|
+
segments: prices.map((price, index) => ({
|
|
111
|
+
...price.segments[0],
|
|
112
|
+
start_datetime: plan.segments[index].start,
|
|
113
|
+
end_datetime: plan.segments[index].end,
|
|
114
|
+
time_point: plan.segments[index].start,
|
|
115
|
+
unit_price: price.unit_price,
|
|
116
|
+
total_price: price.unit_price,
|
|
117
|
+
quantity: 1
|
|
118
|
+
})),
|
|
119
|
+
// Options are composed by the caller; bundle pricing belongs to the first unit only.
|
|
120
|
+
product_bundle: prices[0].product_bundle
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
async function forEachPriceQueryGroup(groups, resolve, concurrency) {
|
|
124
|
+
let next = 0;
|
|
125
|
+
await Promise.all(Array.from({
|
|
126
|
+
length: Math.min(groups.length, concurrency)
|
|
127
|
+
}, async () => {
|
|
128
|
+
while (next < groups.length) {
|
|
129
|
+
const group = groups[next++];
|
|
130
|
+
await resolve(group);
|
|
131
|
+
}
|
|
132
|
+
}));
|
|
133
|
+
}
|
|
@@ -55,6 +55,8 @@ export interface TransformBaseProductToOrderProductParams {
|
|
|
55
55
|
fallbackProductId?: number | string | null;
|
|
56
56
|
sourceProduct?: ProductData | Record<string, any> | null;
|
|
57
57
|
sourceItem?: ProductData | Record<string, any> | null;
|
|
58
|
+
/** Validated booking quote's pre-discount main price, excluding options/bundles. */
|
|
59
|
+
quotedSourceProductPrice?: number | string;
|
|
58
60
|
}
|
|
59
61
|
export type BaseProductOrderProductInput = Partial<OrderProduct> & OrderProductIdentity & {
|
|
60
62
|
_origin?: Record<string, any>;
|
|
@@ -156,7 +156,7 @@ function transformBaseProductToOrderProduct(params) {
|
|
|
156
156
|
// 售价仍由 line_total - bundle 推导。
|
|
157
157
|
const catalogSourcePrice = matchedVariant?.price ?? matchedVariant?.base_price ?? origin?.price ?? origin?.base_price ?? sourceProduct?.price ?? sourceProduct?.selling_price ?? sourceProduct?.base_price;
|
|
158
158
|
const weighedSourcePrice = (0, _weighedProduct.resolveWeighedSourcePrice)(payload.product_sku ?? origin.product_sku, payload._extend?.weighing ?? origin._extend?.weighing);
|
|
159
|
-
const sourceProductPrice = toPriceString(weighedSourcePrice ?? (hasPriceOverride ? catalogSourcePrice ?? payload.price ?? payload.selling_price : payload.price ?? payload.selling_price ?? catalogSourcePrice), '0.00');
|
|
159
|
+
const sourceProductPrice = toPriceString(params.quotedSourceProductPrice ?? weighedSourcePrice ?? (hasPriceOverride ? catalogSourcePrice ?? payload.price ?? payload.selling_price : payload.price ?? payload.selling_price ?? catalogSourcePrice), '0.00');
|
|
160
160
|
const explicitLineTotal = payload.line_total ?? payload.total ?? payload._extend?.total;
|
|
161
161
|
const hasExplicitLineTotal = Number.isFinite(Number(explicitLineTotal));
|
|
162
162
|
const lineCompositeTotal = toPriceString(explicitLineTotal, sourceProductPrice);
|
|
@@ -328,7 +328,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
328
328
|
date: string;
|
|
329
329
|
status: string;
|
|
330
330
|
week: string;
|
|
331
|
-
weekNum: 0 |
|
|
331
|
+
weekNum: 0 | 1 | 2 | 3 | 5 | 4 | 6;
|
|
332
332
|
}[]>;
|
|
333
333
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
334
334
|
private getScheduleDataByIds;
|
|
@@ -375,7 +375,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
375
375
|
};
|
|
376
376
|
setOtherData(key: string, value: any): void;
|
|
377
377
|
getOtherData(key: string): any;
|
|
378
|
-
getProductTypeById(id: number): Promise<"
|
|
378
|
+
getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
|
|
379
379
|
/**
|
|
380
380
|
* 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
|
|
381
381
|
*
|
|
@@ -2589,6 +2589,17 @@ class UnifiedBookingSalesImpl extends _BookingTicket.BookingTicket {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
buildUnifiedOrderProduct(sourceProduct, ownershipKey, product) {
|
|
2591
2591
|
const normalizedProductRaw = product?.raw || {};
|
|
2592
|
+
const bookingQuote = sourceProduct._extend?.bookingPriceQuote;
|
|
2593
|
+
const isPos = (0, _platform.normalizeRuntimePlatform)(this.otherParams?.platform) === 'pos';
|
|
2594
|
+
const quoteMethod = isPos ? bookingQuote?.pricing_method?.type : undefined;
|
|
2595
|
+
const hasDurationQuote = quoteMethod === 'duration_based';
|
|
2596
|
+
const quoteSourcePrice = bookingQuote?.sourceUnitPrice;
|
|
2597
|
+
const quoteDuration = bookingQuote?.duration;
|
|
2598
|
+
if (hasDurationQuote && (quoteSourcePrice === undefined || quoteSourcePrice === null || quoteSourcePrice === '' || !Number.isFinite(Number(quoteSourcePrice)) || Number(quoteSourcePrice) < 0 || quoteDuration?.type !== 'minutes' || !Number.isFinite(Number(quoteDuration.value)) || Number(quoteDuration.value) <= 0)) {
|
|
2599
|
+
throw Object.assign(new Error('按时长计价结果无效,请重新选择预约时间。'), {
|
|
2600
|
+
code: 'DURATION_PRICING_UNAVAILABLE'
|
|
2601
|
+
});
|
|
2602
|
+
}
|
|
2592
2603
|
const quotationShelfId = sourceProduct._extend?.quotation_shelf_id ?? sourceProduct.quotation_shelf_id ?? sourceProduct.metadata?.quotation_shelf_id;
|
|
2593
2604
|
const orderProduct = this.transformBaseProductToOrderProduct({
|
|
2594
2605
|
payload: {
|
|
@@ -2603,7 +2614,10 @@ class UnifiedBookingSalesImpl extends _BookingTicket.BookingTicket {
|
|
|
2603
2614
|
[ownershipKey]: true
|
|
2604
2615
|
}
|
|
2605
2616
|
},
|
|
2606
|
-
sourceProduct
|
|
2617
|
+
sourceProduct,
|
|
2618
|
+
...(hasDurationQuote ? {
|
|
2619
|
+
quotedSourceProductPrice: quoteSourcePrice
|
|
2620
|
+
} : {})
|
|
2607
2621
|
});
|
|
2608
2622
|
if (orderProduct && typeof orderProduct === 'object') {
|
|
2609
2623
|
// BaseSales may rebuild metadata from its price source. Stamp ownership and the selected
|
|
@@ -2611,6 +2625,14 @@ class UnifiedBookingSalesImpl extends _BookingTicket.BookingTicket {
|
|
|
2611
2625
|
orderProduct.metadata = {
|
|
2612
2626
|
...(orderProduct.metadata || {}),
|
|
2613
2627
|
[ownershipKey]: true,
|
|
2628
|
+
...(hasDurationQuote || quoteMethod === 'fixed_price' ? {
|
|
2629
|
+
pricing_method: {
|
|
2630
|
+
type: quoteMethod
|
|
2631
|
+
},
|
|
2632
|
+
duration: hasDurationQuote ? {
|
|
2633
|
+
...quoteDuration
|
|
2634
|
+
} : undefined
|
|
2635
|
+
} : {}),
|
|
2614
2636
|
...(quotationShelfId !== undefined ? {
|
|
2615
2637
|
quotation_shelf_id: quotationShelfId
|
|
2616
2638
|
} : {})
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"picoding.d.ts","sourceRoot":"","sources":["../../src/apis/picoding.ts"],"names":[],"mappings":""}
|
package/dist/core/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,aAAa,EACb,MAAM,EACN,aAAa,EACb,UAAU,EACV,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C;;GAEG;AACH,cAAM,YAAa,YAAW,UAAU;IACtC,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,MAAM,CAA+C;IACtD,OAAO,EAAE,cAAc,CAAwB;IACtD,OAAO,CAAC,KAAK,CAAkB;IACxB,OAAO,EAAE,eAAe,CAAM;IAC9B,MAAM,EAAE,GAAG,CAAC;IACZ,aAAa,CAAC,EAAE,aAAa,CAAC;IACrC,OAAO,CAAC,mBAAmB,CAAC,CAAsC;gBAEtD,OAAO,CAAC,EAAE,eAAe;IAarC,OAAO,CAAC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AuB;IAClC,SAAS,aAAc,MAAM,IAAI,gBAG/B;IACF,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,aAAa;IAIrB,QAAQ;IACR,OAAO;IACP,UAAU;IAOV,8FAA8F;IAC9F,gBAAgB,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,EAAE,QAAQ,UAAQ;IAuBvE,mFAAmF;IAC7E,OAAO,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,sBAAsB,CAAC;QAAC,MAAM,CAAC,EAAE,WAAW,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA4ChH,kBAAkB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,qBAAqB;IAQvD,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,qBAAqB;IAe1F,OAAO,CAAC,UAAU;IAGlB,+EAA+E;IAC/E,qBAAqB,CACnB,OAAO,EAAE,eAAe,EACxB,SAAS,EAAE,MAAM,GAAG,MAAM,EAC1B,KAAK,EAAE,SAAS,eAAe,EAAE,EACjC,WAAW,CAAC,EAAE,eAAe,GAC5B,8BAA8B;IAgCjC,OAAO,CAAC,MAAM;IAcd,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,EAAE,OAAO,GAAE,SAAS,eAAe,EAAO,EAAE,eAAe,UAAO;IAU/G,cAAc,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,GAAG,uBAAuB;CAa3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../../src/model/strategy/adapter/dataVariant/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,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CAAC,uBAAuB,CA0C/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,uBAAuB,CAoC9E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,cAAc,CAAC,uBAAuB,CAgDjF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,YAAY,EAwBxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,eAAe,EAiBvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,kBAAkB,EAmC7D,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,+CAgBjC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,+CAY9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/model/strategy/adapter/dataVariant/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,cAAc,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../src/model/strategy/adapter/dataVariant/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,cAAc,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEvE;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;CAE5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,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nB,YAAY,EAAE,oBAAoB,GACjC,kBAAkB,GAAG,IAAI;IAa5B;;;;;;OAMG;IACH,iBAAiB,CAAC,YAAY,EAAE,oBAAoB,GAAG,mBAAmB,EAAE;IAyB5E;;OAEG;IACH,YAAY,CAAC,YAAY,EAAE,oBAAoB,GAAG;QAChD,MAAM,EAAE,OAAO,CAAC;QAChB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;KACjC;IAQD;;OAEG;IACH,eAAe,CAAC,YAAY,EAAE,oBAAoB,GAAG,iBAAiB,EAAE;IAKxE,gCAAgC;IAChC,cAAc,CAAC,YAAY,EAAE,oBAAoB,GAAG,kBAAkB,EAAE;CAGzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../../../src/model/strategy/adapter/itemRule/examples.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AASjD;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,EAAE,cAsD/C,CAAC;AAMF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,cA0CzC,CAAC;AAMF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,EAAE,cA+D3C,CAAC;AAMF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,6BAA6B,EAAE,cA4C3C,CAAC;AAMF;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB;;;;;;;;;EA2BxC;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB;;;;;;;EAiDvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/model/strategy/adapter/itemRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC7B,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AAEpB,cAAc,QAAQ,CAAC"}
|