kts-component-invoice-operate 3.2.255 → 3.2.256
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
|
@@ -14865,9 +14865,9 @@ var useColumns = (function (form) {
|
|
|
14865
14865
|
|
|
14866
14866
|
if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
|
|
14867
14867
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
14868
|
-
var total =
|
|
14868
|
+
var total = chain$1(bignumber(lineAmountExcludeTax)).multiply(bignumber(taxRate || 0)).divide(bignumber(100)); // if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
14869
14869
|
|
|
14870
|
-
if (Math.abs(
|
|
14870
|
+
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.06) {
|
|
14871
14871
|
callback();
|
|
14872
14872
|
} else {
|
|
14873
14873
|
callback('税额填写错误,请重新输入');
|
|
@@ -24174,9 +24174,9 @@ var useColumns$1 = (function (form) {
|
|
|
24174
24174
|
|
|
24175
24175
|
if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
|
|
24176
24176
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
24177
|
-
var total =
|
|
24177
|
+
var total = chain$1(bignumber(lineAmountExcludeTax)).multiply(bignumber(taxRate || 0)).divide(bignumber(100)); // if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
24178
24178
|
|
|
24179
|
-
if (Math.abs(
|
|
24179
|
+
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.06) {
|
|
24180
24180
|
callback();
|
|
24181
24181
|
} else {
|
|
24182
24182
|
callback('第' + record.serialNo + '行税额校验不通过!');
|
package/dist/index.js
CHANGED
|
@@ -14875,9 +14875,9 @@ var useColumns = (function (form) {
|
|
|
14875
14875
|
|
|
14876
14876
|
if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
|
|
14877
14877
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
14878
|
-
var total =
|
|
14878
|
+
var total = mathjs.chain(mathjs.bignumber(lineAmountExcludeTax)).multiply(mathjs.bignumber(taxRate || 0)).divide(mathjs.bignumber(100)); // if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
14879
14879
|
|
|
14880
|
-
if (Math.abs(
|
|
14880
|
+
if (Math.abs(total.subtract(mathjs.bignumber(value || 0)).done().toNumber()) <= 0.06) {
|
|
14881
14881
|
callback();
|
|
14882
14882
|
} else {
|
|
14883
14883
|
callback('税额填写错误,请重新输入');
|
|
@@ -24184,9 +24184,9 @@ var useColumns$1 = (function (form) {
|
|
|
24184
24184
|
|
|
24185
24185
|
if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
|
|
24186
24186
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
24187
|
-
var total =
|
|
24187
|
+
var total = mathjs.chain(mathjs.bignumber(lineAmountExcludeTax)).multiply(mathjs.bignumber(taxRate || 0)).divide(mathjs.bignumber(100)); // if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
24188
24188
|
|
|
24189
|
-
if (Math.abs(
|
|
24189
|
+
if (Math.abs(total.subtract(mathjs.bignumber(value || 0)).done().toNumber()) <= 0.06) {
|
|
24190
24190
|
callback();
|
|
24191
24191
|
} else {
|
|
24192
24192
|
callback('第' + record.serialNo + '行税额校验不通过!');
|
package/package.json
CHANGED
|
@@ -574,9 +574,9 @@ export default (form: WrappedFormUtils) => {
|
|
|
574
574
|
const taxRate = editGood?.taxRate;
|
|
575
575
|
if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
|
|
576
576
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
577
|
-
const total =
|
|
577
|
+
const total =chain(bignumber(lineAmountExcludeTax)).multiply(bignumber(taxRate || 0)).divide(bignumber(100));
|
|
578
578
|
// if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
579
|
-
if (Math.abs(
|
|
579
|
+
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.06) {
|
|
580
580
|
callback();
|
|
581
581
|
} else {
|
|
582
582
|
callback('税额填写错误,请重新输入')
|
|
@@ -541,9 +541,9 @@ export default (form: WrappedFormUtils) => {
|
|
|
541
541
|
const taxRate = editGood?.taxRate;
|
|
542
542
|
if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
|
|
543
543
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
544
|
-
const total =
|
|
544
|
+
const total = chain(bignumber(lineAmountExcludeTax)).multiply(bignumber(taxRate || 0)).divide(bignumber(100));
|
|
545
545
|
// if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
546
|
-
if (Math.abs(
|
|
546
|
+
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.06) {
|
|
547
547
|
callback();
|
|
548
548
|
} else {
|
|
549
549
|
callback('第' + (record.serialNo) + '行税额校验不通过!')
|