kts-component-invoice-operate 3.2.203 → 3.2.204

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
@@ -22277,7 +22277,7 @@ var useColumns$1 = (function (form) {
22277
22277
  if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
22278
22278
  var total = lineAmountExcludeTax * taxRate / 100;
22279
22279
 
22280
- if (Number(Math.abs(total - Number(value)).toFixed(2)) <= 0.01) {
22280
+ if (Number(Math.abs(total - Number(value))) <= 0.01) {
22281
22281
  callback();
22282
22282
  } else {
22283
22283
  callback('税额填写错误,请重新输入');
package/dist/index.js CHANGED
@@ -22287,7 +22287,7 @@ var useColumns$1 = (function (form) {
22287
22287
  if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
22288
22288
  var total = lineAmountExcludeTax * taxRate / 100;
22289
22289
 
22290
- if (Number(Math.abs(total - Number(value)).toFixed(2)) <= 0.01) {
22290
+ if (Number(Math.abs(total - Number(value))) <= 0.01) {
22291
22291
  callback();
22292
22292
  } else {
22293
22293
  callback('税额填写错误,请重新输入');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.203",
3
+ "version": "3.2.204",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -525,7 +525,7 @@ export default (form: WrappedFormUtils) => {
525
525
  const taxRate = editGood?.taxRate;
526
526
  if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
527
527
  const total = lineAmountExcludeTax * taxRate / 100;
528
- if (Number(Math.abs(total - Number(value)).toFixed(2)) <= 0.01) {
528
+ if (Number(Math.abs(total - Number(value))) <= 0.01) {
529
529
  callback();
530
530
  } else {
531
531
  callback('税额填写错误,请重新输入')