kts-component-invoice-operate 3.2.45 → 3.2.47
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
|
@@ -2073,7 +2073,7 @@ function _checkSameNumber() {
|
|
|
2073
2073
|
return _context9.abrupt("return");
|
|
2074
2074
|
|
|
2075
2075
|
case 2:
|
|
2076
|
-
if (good.lineAmountExcludeTax) {
|
|
2076
|
+
if (!(!good.lineAmountExcludeTax && good.lineAmountExcludeTax !== 0)) {
|
|
2077
2077
|
_context9.next = 5;
|
|
2078
2078
|
break;
|
|
2079
2079
|
}
|
|
@@ -2082,7 +2082,7 @@ function _checkSameNumber() {
|
|
|
2082
2082
|
throw new Error('金额不能为空');
|
|
2083
2083
|
|
|
2084
2084
|
case 5:
|
|
2085
|
-
if (!(good.quantity >= 0 && good.lineAmountExcludeTax >= 0 || good.quantity < 0 && good.lineAmountExcludeTax < 0)) {
|
|
2085
|
+
if (!(good.quantity >= 0 && good.lineAmountExcludeTax >= 0 || good.lineAmountExcludeTax === 0 || good.quantity < 0 && good.lineAmountExcludeTax < 0)) {
|
|
2086
2086
|
_context9.next = 9;
|
|
2087
2087
|
break;
|
|
2088
2088
|
}
|
|
@@ -2090,8 +2090,8 @@ function _checkSameNumber() {
|
|
|
2090
2090
|
return _context9.abrupt("return");
|
|
2091
2091
|
|
|
2092
2092
|
case 9:
|
|
2093
|
-
message$1.error('
|
|
2094
|
-
throw new Error('
|
|
2093
|
+
message$1.error('合并失败,合并后“数量”和“金额”必须同时为正数或同时为负数。');
|
|
2094
|
+
throw new Error('合并失败,合并后“数量”和“金额”必须同时为正数或同时为负数。');
|
|
2095
2095
|
|
|
2096
2096
|
case 11:
|
|
2097
2097
|
case "end":
|
package/dist/index.js
CHANGED
|
@@ -2083,7 +2083,7 @@ function _checkSameNumber() {
|
|
|
2083
2083
|
return _context9.abrupt("return");
|
|
2084
2084
|
|
|
2085
2085
|
case 2:
|
|
2086
|
-
if (good.lineAmountExcludeTax) {
|
|
2086
|
+
if (!(!good.lineAmountExcludeTax && good.lineAmountExcludeTax !== 0)) {
|
|
2087
2087
|
_context9.next = 5;
|
|
2088
2088
|
break;
|
|
2089
2089
|
}
|
|
@@ -2092,7 +2092,7 @@ function _checkSameNumber() {
|
|
|
2092
2092
|
throw new Error('金额不能为空');
|
|
2093
2093
|
|
|
2094
2094
|
case 5:
|
|
2095
|
-
if (!(good.quantity >= 0 && good.lineAmountExcludeTax >= 0 || good.quantity < 0 && good.lineAmountExcludeTax < 0)) {
|
|
2095
|
+
if (!(good.quantity >= 0 && good.lineAmountExcludeTax >= 0 || good.lineAmountExcludeTax === 0 || good.quantity < 0 && good.lineAmountExcludeTax < 0)) {
|
|
2096
2096
|
_context9.next = 9;
|
|
2097
2097
|
break;
|
|
2098
2098
|
}
|
|
@@ -2100,8 +2100,8 @@ function _checkSameNumber() {
|
|
|
2100
2100
|
return _context9.abrupt("return");
|
|
2101
2101
|
|
|
2102
2102
|
case 9:
|
|
2103
|
-
ktsXui.message.error('
|
|
2104
|
-
throw new Error('
|
|
2103
|
+
ktsXui.message.error('合并失败,合并后“数量”和“金额”必须同时为正数或同时为负数。');
|
|
2104
|
+
throw new Error('合并失败,合并后“数量”和“金额”必须同时为正数或同时为负数。');
|
|
2105
2105
|
|
|
2106
2106
|
case 11:
|
|
2107
2107
|
case "end":
|
package/package.json
CHANGED
|
@@ -119,16 +119,20 @@ async function checkTaxTate(goodsList: IGood[]) {
|
|
|
119
119
|
async function checkSameNumber(good: IGood) {
|
|
120
120
|
if (!good.quantity) return;
|
|
121
121
|
|
|
122
|
-
if (!good.lineAmountExcludeTax) {
|
|
122
|
+
if (!good.lineAmountExcludeTax && good.lineAmountExcludeTax !== 0) {
|
|
123
123
|
message.error('金额不能为空');
|
|
124
124
|
throw new Error('金额不能为空');
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
if (
|
|
127
|
+
if (
|
|
128
|
+
good.quantity >= 0 && good.lineAmountExcludeTax >= 0 ||
|
|
129
|
+
good.lineAmountExcludeTax === 0 ||
|
|
130
|
+
good.quantity < 0 && good.lineAmountExcludeTax < 0
|
|
131
|
+
) {
|
|
128
132
|
return;
|
|
129
|
-
}else{
|
|
130
|
-
message.error('
|
|
131
|
-
throw new Error('
|
|
133
|
+
} else {
|
|
134
|
+
message.error('合并失败,合并后“数量”和“金额”必须同时为正数或同时为负数。');
|
|
135
|
+
throw new Error('合并失败,合并后“数量”和“金额”必须同时为正数或同时为负数。');
|
|
132
136
|
}
|
|
133
137
|
}
|
|
134
138
|
|