kts-component-invoice-operate 3.2.252 → 3.2.253

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
@@ -9686,7 +9686,7 @@ var updateUnitPriceTax = /*#__PURE__*/function () {
9686
9686
  // 税额 = 金额(含税)-金额(不含税) (老逻辑)
9687
9687
  // const taxAmount = evaluate(`${lineAmountIncludeTax} - ${lineAmountExcludeTax}`);
9688
9688
  // 税额 = 金额(含税)-金额(不含税)(新逻辑)
9689
- taxAmount = evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100"));
9689
+ taxAmount = format2(evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100")));
9690
9690
  form.setFieldsValue({
9691
9691
  taxAmount: taxAmount
9692
9692
  });
package/dist/index.js CHANGED
@@ -9696,7 +9696,7 @@ var updateUnitPriceTax = /*#__PURE__*/function () {
9696
9696
  // 税额 = 金额(含税)-金额(不含税) (老逻辑)
9697
9697
  // const taxAmount = evaluate(`${lineAmountIncludeTax} - ${lineAmountExcludeTax}`);
9698
9698
  // 税额 = 金额(含税)-金额(不含税)(新逻辑)
9699
- taxAmount = evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100"));
9699
+ taxAmount = format2(evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100")));
9700
9700
  form.setFieldsValue({
9701
9701
  taxAmount: taxAmount
9702
9702
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.252",
3
+ "version": "3.2.253",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -443,7 +443,7 @@ export const updateUnitPriceTax = async (controller: InvoiceController, form: Wr
443
443
  // const taxAmount = evaluate(`${lineAmountIncludeTax} - ${lineAmountExcludeTax}`);
444
444
 
445
445
  // 税额 = 金额(含税)-金额(不含税)(新逻辑)
446
- const taxAmount = evaluate(`${lineAmountExcludeTax} * ${values.taxRate}/100`);
446
+ const taxAmount = format2(evaluate(`${lineAmountExcludeTax} * ${values.taxRate}/100`));
447
447
  form.setFieldsValue({ taxAmount });
448
448
  await controller.setEditGood({ taxAmount });
449
449
  } else {