kts-component-invoice-operate 3.2.101 → 3.2.102
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
|
@@ -14814,7 +14814,7 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14814
14814
|
return;
|
|
14815
14815
|
}
|
|
14816
14816
|
|
|
14817
|
-
if (parseFloat(value) > lineAmountSum || parseFloat(value)
|
|
14817
|
+
if (parseFloat(value) > lineAmountSum || parseFloat(value) <= 0) {
|
|
14818
14818
|
callback('请输入大于0小于金额合计的数字');
|
|
14819
14819
|
}
|
|
14820
14820
|
|
package/dist/index.js
CHANGED
|
@@ -14824,7 +14824,7 @@ var DrawerBody = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(funct
|
|
|
14824
14824
|
return;
|
|
14825
14825
|
}
|
|
14826
14826
|
|
|
14827
|
-
if (parseFloat(value) > lineAmountSum || parseFloat(value)
|
|
14827
|
+
if (parseFloat(value) > lineAmountSum || parseFloat(value) <= 0) {
|
|
14828
14828
|
callback('请输入大于0小于金额合计的数字');
|
|
14829
14829
|
}
|
|
14830
14830
|
|
package/package.json
CHANGED
package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx
CHANGED
|
@@ -221,7 +221,7 @@ const DrawerBody = decorator<{}, FormComponentProps>(Form.create())((props) => {
|
|
|
221
221
|
validator: (_, value: string, callback) => {
|
|
222
222
|
if (!value) { callback(); return; }
|
|
223
223
|
if (!value.match(/^[+-]?(0|([1-9]\d*))(\.\d+)?$/)?.length) { callback(); return; }
|
|
224
|
-
if (parseFloat(value) > lineAmountSum || parseFloat(value)
|
|
224
|
+
if (parseFloat(value) > lineAmountSum || parseFloat(value) <= 0) { callback('请输入大于0小于金额合计的数字'); }
|
|
225
225
|
callback();
|
|
226
226
|
},
|
|
227
227
|
},
|