kts-component-invoice-operate 3.2.181-13 → 3.2.181-14
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/index.esm.js
CHANGED
|
@@ -8946,7 +8946,7 @@ var onChangeLineAmountIncludeTax = lazyFn(function (controller, form, record) {
|
|
|
8946
8946
|
}
|
|
8947
8947
|
|
|
8948
8948
|
quantity = format15(values.quantity, calculatingDigits);
|
|
8949
|
-
priceIncludeTax = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(quantity)),
|
|
8949
|
+
priceIncludeTax = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(quantity)), 6);
|
|
8950
8950
|
form.setFieldsValue({
|
|
8951
8951
|
priceIncludeTax: priceIncludeTax
|
|
8952
8952
|
});
|
|
@@ -8965,7 +8965,7 @@ var onChangeLineAmountIncludeTax = lazyFn(function (controller, form, record) {
|
|
|
8965
8965
|
break;
|
|
8966
8966
|
}
|
|
8967
8967
|
|
|
8968
|
-
_priceIncludeTax = format15(values.priceIncludeTax,
|
|
8968
|
+
_priceIncludeTax = format15(values.priceIncludeTax, 6);
|
|
8969
8969
|
_quantity3 = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(_priceIncludeTax)), calculatingDigits);
|
|
8970
8970
|
form.setFieldsValue({
|
|
8971
8971
|
quantity: _quantity3
|
|
@@ -9050,7 +9050,7 @@ var onChangeLineAmountExcludeTax = lazyFn(function (controller, form, record) {
|
|
|
9050
9050
|
}
|
|
9051
9051
|
|
|
9052
9052
|
quantity = format15(values.quantity, calculatingDigits);
|
|
9053
|
-
priceExcludeTax = format15(evaluate("".concat(lineAmountExcludeTax, " / ").concat(quantity)),
|
|
9053
|
+
priceExcludeTax = format15(evaluate("".concat(lineAmountExcludeTax, " / ").concat(quantity)), 6);
|
|
9054
9054
|
form.setFieldsValue({
|
|
9055
9055
|
priceExcludeTax: priceExcludeTax
|
|
9056
9056
|
});
|
|
@@ -9069,7 +9069,7 @@ var onChangeLineAmountExcludeTax = lazyFn(function (controller, form, record) {
|
|
|
9069
9069
|
break;
|
|
9070
9070
|
}
|
|
9071
9071
|
|
|
9072
|
-
_priceExcludeTax = format15(values.priceExcludeTax,
|
|
9072
|
+
_priceExcludeTax = format15(values.priceExcludeTax, 6);
|
|
9073
9073
|
_quantity4 = format15(evaluate("".concat(lineAmountExcludeTax, " / ").concat(_priceExcludeTax)), calculatingDigits);
|
|
9074
9074
|
form.setFieldsValue({
|
|
9075
9075
|
quantity: _quantity4
|
|
@@ -9354,7 +9354,7 @@ var updateUnitPriceTax = /*#__PURE__*/function () {
|
|
|
9354
9354
|
break;
|
|
9355
9355
|
}
|
|
9356
9356
|
|
|
9357
|
-
priceIncludeTax = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(values.quantity)),
|
|
9357
|
+
priceIncludeTax = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(values.quantity)), 6);
|
|
9358
9358
|
_context11.next = 11;
|
|
9359
9359
|
return controller.setEditGood({
|
|
9360
9360
|
priceIncludeTax: priceIncludeTax
|
|
@@ -27020,7 +27020,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
27020
27020
|
editGood.priceIncludeTax = undefined;
|
|
27021
27021
|
editGood.priceExcludeTax = undefined;
|
|
27022
27022
|
} else {
|
|
27023
|
-
editGood.priceExcludeTax = editGood.priceExcludeTax || getPriceExcludeTax$1(editGood, record,
|
|
27023
|
+
editGood.priceExcludeTax = editGood.priceExcludeTax || getPriceExcludeTax$1(editGood, record, 6);
|
|
27024
27024
|
}
|
|
27025
27025
|
|
|
27026
27026
|
if (editGood.quantity && editGood.priceIncludeTax) {
|
package/dist/index.js
CHANGED
|
@@ -8956,7 +8956,7 @@ var onChangeLineAmountIncludeTax = lazyFn(function (controller, form, record) {
|
|
|
8956
8956
|
}
|
|
8957
8957
|
|
|
8958
8958
|
quantity = format15(values.quantity, calculatingDigits);
|
|
8959
|
-
priceIncludeTax = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(quantity)),
|
|
8959
|
+
priceIncludeTax = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(quantity)), 6);
|
|
8960
8960
|
form.setFieldsValue({
|
|
8961
8961
|
priceIncludeTax: priceIncludeTax
|
|
8962
8962
|
});
|
|
@@ -8975,7 +8975,7 @@ var onChangeLineAmountIncludeTax = lazyFn(function (controller, form, record) {
|
|
|
8975
8975
|
break;
|
|
8976
8976
|
}
|
|
8977
8977
|
|
|
8978
|
-
_priceIncludeTax = format15(values.priceIncludeTax,
|
|
8978
|
+
_priceIncludeTax = format15(values.priceIncludeTax, 6);
|
|
8979
8979
|
_quantity3 = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(_priceIncludeTax)), calculatingDigits);
|
|
8980
8980
|
form.setFieldsValue({
|
|
8981
8981
|
quantity: _quantity3
|
|
@@ -9060,7 +9060,7 @@ var onChangeLineAmountExcludeTax = lazyFn(function (controller, form, record) {
|
|
|
9060
9060
|
}
|
|
9061
9061
|
|
|
9062
9062
|
quantity = format15(values.quantity, calculatingDigits);
|
|
9063
|
-
priceExcludeTax = format15(evaluate("".concat(lineAmountExcludeTax, " / ").concat(quantity)),
|
|
9063
|
+
priceExcludeTax = format15(evaluate("".concat(lineAmountExcludeTax, " / ").concat(quantity)), 6);
|
|
9064
9064
|
form.setFieldsValue({
|
|
9065
9065
|
priceExcludeTax: priceExcludeTax
|
|
9066
9066
|
});
|
|
@@ -9079,7 +9079,7 @@ var onChangeLineAmountExcludeTax = lazyFn(function (controller, form, record) {
|
|
|
9079
9079
|
break;
|
|
9080
9080
|
}
|
|
9081
9081
|
|
|
9082
|
-
_priceExcludeTax = format15(values.priceExcludeTax,
|
|
9082
|
+
_priceExcludeTax = format15(values.priceExcludeTax, 6);
|
|
9083
9083
|
_quantity4 = format15(evaluate("".concat(lineAmountExcludeTax, " / ").concat(_priceExcludeTax)), calculatingDigits);
|
|
9084
9084
|
form.setFieldsValue({
|
|
9085
9085
|
quantity: _quantity4
|
|
@@ -9364,7 +9364,7 @@ var updateUnitPriceTax = /*#__PURE__*/function () {
|
|
|
9364
9364
|
break;
|
|
9365
9365
|
}
|
|
9366
9366
|
|
|
9367
|
-
priceIncludeTax = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(values.quantity)),
|
|
9367
|
+
priceIncludeTax = format15(evaluate("".concat(lineAmountIncludeTax, " / ").concat(values.quantity)), 6);
|
|
9368
9368
|
_context11.next = 11;
|
|
9369
9369
|
return controller.setEditGood({
|
|
9370
9370
|
priceIncludeTax: priceIncludeTax
|
|
@@ -27030,7 +27030,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
27030
27030
|
editGood.priceIncludeTax = undefined;
|
|
27031
27031
|
editGood.priceExcludeTax = undefined;
|
|
27032
27032
|
} else {
|
|
27033
|
-
editGood.priceExcludeTax = editGood.priceExcludeTax || getPriceExcludeTax$1(editGood, record,
|
|
27033
|
+
editGood.priceExcludeTax = editGood.priceExcludeTax || getPriceExcludeTax$1(editGood, record, 6);
|
|
27034
27034
|
}
|
|
27035
27035
|
|
|
27036
27036
|
if (editGood.quantity && editGood.priceIncludeTax) {
|
package/package.json
CHANGED
|
@@ -284,11 +284,11 @@ export const onChangeLineAmountIncludeTax = lazyFn(
|
|
|
284
284
|
// 是否有数量
|
|
285
285
|
if (!err.quantity && values.quantity) {
|
|
286
286
|
const quantity = format15(values.quantity, calculatingDigits);
|
|
287
|
-
const priceIncludeTax = format15(evaluate(`${lineAmountIncludeTax} / ${quantity}`),
|
|
287
|
+
const priceIncludeTax = format15(evaluate(`${lineAmountIncludeTax} / ${quantity}`), 6);
|
|
288
288
|
form.setFieldsValue({ priceIncludeTax });
|
|
289
289
|
await controller.setEditGood({ priceIncludeTax });
|
|
290
290
|
} else if (!err.priceIncludeTax && (values.priceIncludeTax || values.priceIncludeTax === 0)) {
|
|
291
|
-
const priceIncludeTax = format15(values.priceIncludeTax,
|
|
291
|
+
const priceIncludeTax = format15(values.priceIncludeTax, 6);
|
|
292
292
|
const quantity = format15(evaluate(`${lineAmountIncludeTax} / ${priceIncludeTax}`), calculatingDigits);
|
|
293
293
|
form.setFieldsValue({ quantity });
|
|
294
294
|
await controller.setEditGood({ quantity });
|
|
@@ -324,11 +324,11 @@ export const onChangeLineAmountExcludeTax = lazyFn(
|
|
|
324
324
|
// 是否有数量
|
|
325
325
|
if (!err.quantity && values.quantity) {
|
|
326
326
|
const quantity = format15(values.quantity, calculatingDigits);
|
|
327
|
-
const priceExcludeTax = format15(evaluate(`${lineAmountExcludeTax} / ${quantity}`),
|
|
327
|
+
const priceExcludeTax = format15(evaluate(`${lineAmountExcludeTax} / ${quantity}`), 6);
|
|
328
328
|
form.setFieldsValue({ priceExcludeTax });
|
|
329
329
|
await controller.setEditGood({ priceExcludeTax });
|
|
330
330
|
} else if (!err.priceExcludeTax && values.priceExcludeTax) {
|
|
331
|
-
const priceExcludeTax = format15(values.priceExcludeTax,
|
|
331
|
+
const priceExcludeTax = format15(values.priceExcludeTax, 6);
|
|
332
332
|
const quantity = format15(evaluate(`${lineAmountExcludeTax} / ${priceExcludeTax}`), calculatingDigits);
|
|
333
333
|
form.setFieldsValue({ quantity });
|
|
334
334
|
await controller.setEditGood({ quantity });
|
|
@@ -491,7 +491,7 @@ export const updateUnitPriceTax = async (controller: InvoiceController, form: Wr
|
|
|
491
491
|
// 单价(含税) = 金额(含税) / (數量)
|
|
492
492
|
// 是否有数量
|
|
493
493
|
if (!err.quantity && values.quantity) {
|
|
494
|
-
const priceIncludeTax = format15(evaluate(`${lineAmountIncludeTax} / ${values.quantity}`),
|
|
494
|
+
const priceIncludeTax = format15(evaluate(`${lineAmountIncludeTax} / ${values.quantity}`), 6);
|
|
495
495
|
await controller.setEditGood({ priceIncludeTax });
|
|
496
496
|
}
|
|
497
497
|
|
|
@@ -112,7 +112,7 @@ const DrawerBody = () => {
|
|
|
112
112
|
editGood.priceIncludeTax = undefined;
|
|
113
113
|
editGood.priceExcludeTax = undefined;
|
|
114
114
|
} else {
|
|
115
|
-
editGood.priceExcludeTax = editGood.priceExcludeTax || getPriceExcludeTax(editGood, record,
|
|
115
|
+
editGood.priceExcludeTax = editGood.priceExcludeTax || getPriceExcludeTax(editGood, record, 6) as number;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
if (editGood.quantity && editGood.priceIncludeTax) {
|