@pisell/pisellos 2.2.196 → 2.2.197
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.
|
@@ -1999,7 +1999,7 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1999
1999
|
var tempOrder = this.ensureTempOrder();
|
|
2000
2000
|
var mappedVouchers = mapPaymentItemsToOrderPayments(payments.map(function (payment) {
|
|
2001
2001
|
return _this9.normalizePaymentSource(payment, {
|
|
2002
|
-
defaultPaid:
|
|
2002
|
+
defaultPaid: true
|
|
2003
2003
|
});
|
|
2004
2004
|
})).filter(function (payment) {
|
|
2005
2005
|
return payment.voucher_id !== undefined && Number(payment.voucher_id) !== 0;
|
package/dist/server/index.js
CHANGED
|
@@ -818,7 +818,7 @@ var Server = /*#__PURE__*/function () {
|
|
|
818
818
|
_context11.next = 29;
|
|
819
819
|
break;
|
|
820
820
|
}
|
|
821
|
-
_this.
|
|
821
|
+
_this.logInfo('handleOrderSalesDetail: 后端返回订单为空', {
|
|
822
822
|
lookup: lookup,
|
|
823
823
|
backendPath: backendPath
|
|
824
824
|
});
|
|
@@ -1447,7 +1447,7 @@ var OrderModule = class extends import_BaseModule.BaseModule {
|
|
|
1447
1447
|
const tempOrder = this.ensureTempOrder();
|
|
1448
1448
|
const mappedVouchers = (0, import_utils.mapPaymentItemsToOrderPayments)(
|
|
1449
1449
|
payments.map(
|
|
1450
|
-
(payment) => this.normalizePaymentSource(payment, { defaultPaid:
|
|
1450
|
+
(payment) => this.normalizePaymentSource(payment, { defaultPaid: true })
|
|
1451
1451
|
)
|
|
1452
1452
|
).filter((payment) => {
|
|
1453
1453
|
return payment.voucher_id !== void 0 && Number(payment.voucher_id) !== 0;
|
package/lib/server/index.js
CHANGED
|
@@ -511,7 +511,7 @@ var Server = class {
|
|
|
511
511
|
});
|
|
512
512
|
const fresh = (response == null ? void 0 : response.data) ?? response;
|
|
513
513
|
if (!fresh || typeof fresh !== "object" || fresh.order_id == null) {
|
|
514
|
-
this.
|
|
514
|
+
this.logInfo("handleOrderSalesDetail: 后端返回订单为空", {
|
|
515
515
|
lookup,
|
|
516
516
|
backendPath
|
|
517
517
|
});
|