@salesgenterp/ui-components 0.4.477 → 0.4.478
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.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12323,7 +12323,6 @@ var ConsentForm = function ConsentForm(_ref) {
|
|
|
12323
12323
|
var _useState4 = React.useState([]),
|
|
12324
12324
|
storeData = _useState4[0],
|
|
12325
12325
|
setStoreData = _useState4[1];
|
|
12326
|
-
var storeId = erCookieStorage.getItem('storeId') || 2;
|
|
12327
12326
|
React.useEffect(function () {
|
|
12328
12327
|
if (apiEndPoint) {
|
|
12329
12328
|
(function () {
|
|
@@ -12344,14 +12343,10 @@ var ConsentForm = function ConsentForm(_ref) {
|
|
|
12344
12343
|
})).then(function (staticPageDataResponse) {
|
|
12345
12344
|
var _staticPageDataRespon;
|
|
12346
12345
|
setStaticPageData(staticPageDataResponse === null || staticPageDataResponse === void 0 ? void 0 : (_staticPageDataRespon = staticPageDataResponse.content) === null || _staticPageDataRespon === void 0 ? void 0 : _staticPageDataRespon[0]);
|
|
12347
|
-
return Promise.resolve(
|
|
12346
|
+
return Promise.resolve(getTaxData({
|
|
12348
12347
|
apiEndPoint: apiEndPoint,
|
|
12349
12348
|
token: token,
|
|
12350
|
-
|
|
12351
|
-
queryParams: {
|
|
12352
|
-
storeId: storeId,
|
|
12353
|
-
customerShippingAddressId: shippingInformation === null || shippingInformation === void 0 ? void 0 : shippingInformation.id
|
|
12354
|
-
}
|
|
12349
|
+
shippingAddressId: shippingInformation === null || shippingInformation === void 0 ? void 0 : shippingInformation.id
|
|
12355
12350
|
})).then(function (taxDataResponse) {
|
|
12356
12351
|
setTaxData(taxDataResponse);
|
|
12357
12352
|
return Promise.resolve(API({
|
|
@@ -12428,7 +12423,9 @@ var InfoComponent = function InfoComponent(_ref2) {
|
|
|
12428
12423
|
customer = _ref2.customer,
|
|
12429
12424
|
taxData = _ref2.taxData,
|
|
12430
12425
|
storeData = _ref2.storeData;
|
|
12431
|
-
var taxWaiverAmount = lodash.sumBy(taxData,
|
|
12426
|
+
var taxWaiverAmount = lodash.sumBy(taxData, function (o) {
|
|
12427
|
+
return (o === null || o === void 0 ? void 0 : o.taxAmount) - (o === null || o === void 0 ? void 0 : o.taxAmountIncludedInSellingPrice);
|
|
12428
|
+
}) || 0;
|
|
12432
12429
|
var store = storeData === null || storeData === void 0 ? void 0 : storeData.find(function (store) {
|
|
12433
12430
|
return (store === null || store === void 0 ? void 0 : store.id) === 2;
|
|
12434
12431
|
});
|