kts-component-invoice-operate 1.0.67 → 1.0.68
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 +10 -9
- package/dist/index.js +10 -9
- package/package.json +1 -1
- package/src/Invoice/ui/ImportGoodsDrawer/index.tsx +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -4961,43 +4961,44 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
4961
4961
|
while (1) {
|
|
4962
4962
|
switch (_context2.prev = _context2.next) {
|
|
4963
4963
|
case 0:
|
|
4964
|
+
debugger;
|
|
4964
4965
|
Object.keys(record).filter(function (e) {
|
|
4965
4966
|
return !record[e] && record[e] !== 0;
|
|
4966
4967
|
}).forEach(function (e) {
|
|
4967
4968
|
delete record[e];
|
|
4968
4969
|
});
|
|
4969
|
-
_context2.next =
|
|
4970
|
+
_context2.next = 4;
|
|
4970
4971
|
return s.goodsListState.importGoods.verifyFn(record);
|
|
4971
4972
|
|
|
4972
|
-
case
|
|
4973
|
+
case 4:
|
|
4973
4974
|
_context2.t0 = _context2.sent;
|
|
4974
4975
|
|
|
4975
4976
|
if (!(_context2.t0 === false)) {
|
|
4976
|
-
_context2.next =
|
|
4977
|
+
_context2.next = 7;
|
|
4977
4978
|
break;
|
|
4978
4979
|
}
|
|
4979
4980
|
|
|
4980
4981
|
return _context2.abrupt("return");
|
|
4981
4982
|
|
|
4982
|
-
case
|
|
4983
|
+
case 7:
|
|
4983
4984
|
if (!(!s.goodsListState.editGood || !s.goodsListState.form)) {
|
|
4984
|
-
_context2.next =
|
|
4985
|
+
_context2.next = 9;
|
|
4985
4986
|
break;
|
|
4986
4987
|
}
|
|
4987
4988
|
|
|
4988
4989
|
return _context2.abrupt("return");
|
|
4989
4990
|
|
|
4990
|
-
case
|
|
4991
|
+
case 9:
|
|
4991
4992
|
s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), record);
|
|
4992
4993
|
|
|
4993
4994
|
if (s.goodsListState.editGood) {
|
|
4994
|
-
_context2.next =
|
|
4995
|
+
_context2.next = 12;
|
|
4995
4996
|
break;
|
|
4996
4997
|
}
|
|
4997
4998
|
|
|
4998
4999
|
return _context2.abrupt("return");
|
|
4999
5000
|
|
|
5000
|
-
case
|
|
5001
|
+
case 12:
|
|
5001
5002
|
if ("".concat(s.goodsListState.editGood.priceIncludeTax) === '0') {
|
|
5002
5003
|
s.goodsListState.editGood.priceIncludeTax = undefined;
|
|
5003
5004
|
s.goodsListState.editGood.priceExcludeTax = undefined;
|
|
@@ -5011,7 +5012,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
5011
5012
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
5012
5013
|
s.goodsListState.isTaxIncluded ? updateUnitPriceExcludingTax(controller, s.goodsListState.form) : updateUnitPriceTax(controller, s.goodsListState.form);
|
|
5013
5014
|
|
|
5014
|
-
case
|
|
5015
|
+
case 18:
|
|
5015
5016
|
case "end":
|
|
5016
5017
|
return _context2.stop();
|
|
5017
5018
|
}
|
package/dist/index.js
CHANGED
|
@@ -4970,43 +4970,44 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
4970
4970
|
while (1) {
|
|
4971
4971
|
switch (_context2.prev = _context2.next) {
|
|
4972
4972
|
case 0:
|
|
4973
|
+
debugger;
|
|
4973
4974
|
Object.keys(record).filter(function (e) {
|
|
4974
4975
|
return !record[e] && record[e] !== 0;
|
|
4975
4976
|
}).forEach(function (e) {
|
|
4976
4977
|
delete record[e];
|
|
4977
4978
|
});
|
|
4978
|
-
_context2.next =
|
|
4979
|
+
_context2.next = 4;
|
|
4979
4980
|
return s.goodsListState.importGoods.verifyFn(record);
|
|
4980
4981
|
|
|
4981
|
-
case
|
|
4982
|
+
case 4:
|
|
4982
4983
|
_context2.t0 = _context2.sent;
|
|
4983
4984
|
|
|
4984
4985
|
if (!(_context2.t0 === false)) {
|
|
4985
|
-
_context2.next =
|
|
4986
|
+
_context2.next = 7;
|
|
4986
4987
|
break;
|
|
4987
4988
|
}
|
|
4988
4989
|
|
|
4989
4990
|
return _context2.abrupt("return");
|
|
4990
4991
|
|
|
4991
|
-
case
|
|
4992
|
+
case 7:
|
|
4992
4993
|
if (!(!s.goodsListState.editGood || !s.goodsListState.form)) {
|
|
4993
|
-
_context2.next =
|
|
4994
|
+
_context2.next = 9;
|
|
4994
4995
|
break;
|
|
4995
4996
|
}
|
|
4996
4997
|
|
|
4997
4998
|
return _context2.abrupt("return");
|
|
4998
4999
|
|
|
4999
|
-
case
|
|
5000
|
+
case 9:
|
|
5000
5001
|
s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), record);
|
|
5001
5002
|
|
|
5002
5003
|
if (s.goodsListState.editGood) {
|
|
5003
|
-
_context2.next =
|
|
5004
|
+
_context2.next = 12;
|
|
5004
5005
|
break;
|
|
5005
5006
|
}
|
|
5006
5007
|
|
|
5007
5008
|
return _context2.abrupt("return");
|
|
5008
5009
|
|
|
5009
|
-
case
|
|
5010
|
+
case 12:
|
|
5010
5011
|
if ("".concat(s.goodsListState.editGood.priceIncludeTax) === '0') {
|
|
5011
5012
|
s.goodsListState.editGood.priceIncludeTax = undefined;
|
|
5012
5013
|
s.goodsListState.editGood.priceExcludeTax = undefined;
|
|
@@ -5020,7 +5021,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
5020
5021
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
5021
5022
|
s.goodsListState.isTaxIncluded ? updateUnitPriceExcludingTax(controller, s.goodsListState.form) : updateUnitPriceTax(controller, s.goodsListState.form);
|
|
5022
5023
|
|
|
5023
|
-
case
|
|
5024
|
+
case 18:
|
|
5024
5025
|
case "end":
|
|
5025
5026
|
return _context2.stop();
|
|
5026
5027
|
}
|
package/package.json
CHANGED
|
@@ -71,6 +71,7 @@ const DrawerBody = () => {
|
|
|
71
71
|
onClick: () => {
|
|
72
72
|
controller.pipeline(
|
|
73
73
|
async (s) => {
|
|
74
|
+
debugger;
|
|
74
75
|
Object.keys(record).filter(e => !record[e] && record[e] !== 0).forEach(e => { delete record[e] });
|
|
75
76
|
|
|
76
77
|
if (await s.goodsListState.importGoods.verifyFn(record) === false) return;
|