@zauru-sdk/hooks 1.0.104 → 1.0.105
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/cjs/receptions.js +12 -12
- package/dist/esm/receptions.js +12 -12
- package/dist/receptions.d.ts +3 -3
- package/package.json +3 -3
package/dist/cjs/receptions.js
CHANGED
|
@@ -110,19 +110,19 @@ const useGetPesadas = (purchaseOrder, stocks_only_integer = false) => {
|
|
|
110
110
|
baskets,
|
|
111
111
|
totalWeight,
|
|
112
112
|
discount,
|
|
113
|
-
netWeight: (0, common_1.toFixedIfNeeded)(netWeight),
|
|
114
|
-
weightByBasket: (0, common_1.toFixedIfNeeded)(weightByBasket),
|
|
115
|
-
probableUtilization: (0, common_1.toFixedIfNeeded)(probableUtilization),
|
|
116
|
-
lbDiscounted: (0, common_1.toFixedIfNeeded)(lbDiscounted),
|
|
113
|
+
netWeight: (0, common_1.toFixedIfNeeded)(netWeight).toString(),
|
|
114
|
+
weightByBasket: (0, common_1.toFixedIfNeeded)(weightByBasket).toString(),
|
|
115
|
+
probableUtilization: (0, common_1.toFixedIfNeeded)(probableUtilization).toString(),
|
|
116
|
+
lbDiscounted: (0, common_1.toFixedIfNeeded)(lbDiscounted).toString(),
|
|
117
117
|
};
|
|
118
118
|
}),
|
|
119
119
|
];
|
|
120
120
|
const totales = {
|
|
121
121
|
id: "",
|
|
122
|
-
baskets: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => x.baskets).reduce(common_1.reduceAdd, 0)),
|
|
123
|
-
totalWeight: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => x.totalWeight).reduce(common_1.reduceAdd, 0)),
|
|
122
|
+
baskets: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => x.baskets).reduce(common_1.reduceAdd, 0)).toString(),
|
|
123
|
+
totalWeight: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => x.totalWeight).reduce(common_1.reduceAdd, 0)).toString(),
|
|
124
124
|
discount: "-",
|
|
125
|
-
netWeight: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => Number(x.netWeight)).reduce(common_1.reduceAdd, 0)),
|
|
125
|
+
netWeight: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => Number(x.netWeight)).reduce(common_1.reduceAdd, 0)).toString(),
|
|
126
126
|
weightByBasket: "-",
|
|
127
127
|
lbDiscounted: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => Number(x.lbDiscounted)).reduce(common_1.reduceAdd, 0)),
|
|
128
128
|
probableUtilization: (0, common_1.toFixedIfNeeded)(tempPesadas
|
|
@@ -193,10 +193,10 @@ const getPesadasByForm = (formInput) => {
|
|
|
193
193
|
baskets,
|
|
194
194
|
totalWeight,
|
|
195
195
|
discount,
|
|
196
|
-
netWeight:
|
|
197
|
-
weightByBasket:
|
|
198
|
-
probableUtilization:
|
|
199
|
-
lbDiscounted:
|
|
196
|
+
netWeight: netWeight.toString(),
|
|
197
|
+
weightByBasket: weightByBasket.toString(),
|
|
198
|
+
probableUtilization: probableUtilization.toString(),
|
|
199
|
+
lbDiscounted: lbDiscounted.toString(),
|
|
200
200
|
});
|
|
201
201
|
index++;
|
|
202
202
|
}
|
|
@@ -266,7 +266,7 @@ const useGetBasketDetails = (purchaseOrder) => {
|
|
|
266
266
|
}
|
|
267
267
|
const totales = {
|
|
268
268
|
id: "",
|
|
269
|
-
total: (0, common_1.toFixedIfNeeded)(joinedBaskets?.map((x) => x.total).reduce(common_1.reduceAdd, 0)),
|
|
269
|
+
total: (0, common_1.toFixedIfNeeded)(joinedBaskets?.map((x) => x.total).reduce(common_1.reduceAdd, 0)).toString(),
|
|
270
270
|
cc: joinedBaskets?.map((x) => x.cc).reduce(common_1.reduceAdd, 0),
|
|
271
271
|
//granTotal: joinedBaskets?.map((x) => x.granTotal).reduce(reduceAdd, 0),
|
|
272
272
|
};
|
package/dist/esm/receptions.js
CHANGED
|
@@ -110,19 +110,19 @@ const useGetPesadas = (purchaseOrder, stocks_only_integer = false) => {
|
|
|
110
110
|
baskets,
|
|
111
111
|
totalWeight,
|
|
112
112
|
discount,
|
|
113
|
-
netWeight: (0, common_1.toFixedIfNeeded)(netWeight),
|
|
114
|
-
weightByBasket: (0, common_1.toFixedIfNeeded)(weightByBasket),
|
|
115
|
-
probableUtilization: (0, common_1.toFixedIfNeeded)(probableUtilization),
|
|
116
|
-
lbDiscounted: (0, common_1.toFixedIfNeeded)(lbDiscounted),
|
|
113
|
+
netWeight: (0, common_1.toFixedIfNeeded)(netWeight).toString(),
|
|
114
|
+
weightByBasket: (0, common_1.toFixedIfNeeded)(weightByBasket).toString(),
|
|
115
|
+
probableUtilization: (0, common_1.toFixedIfNeeded)(probableUtilization).toString(),
|
|
116
|
+
lbDiscounted: (0, common_1.toFixedIfNeeded)(lbDiscounted).toString(),
|
|
117
117
|
};
|
|
118
118
|
}),
|
|
119
119
|
];
|
|
120
120
|
const totales = {
|
|
121
121
|
id: "",
|
|
122
|
-
baskets: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => x.baskets).reduce(common_1.reduceAdd, 0)),
|
|
123
|
-
totalWeight: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => x.totalWeight).reduce(common_1.reduceAdd, 0)),
|
|
122
|
+
baskets: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => x.baskets).reduce(common_1.reduceAdd, 0)).toString(),
|
|
123
|
+
totalWeight: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => x.totalWeight).reduce(common_1.reduceAdd, 0)).toString(),
|
|
124
124
|
discount: "-",
|
|
125
|
-
netWeight: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => Number(x.netWeight)).reduce(common_1.reduceAdd, 0)),
|
|
125
|
+
netWeight: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => Number(x.netWeight)).reduce(common_1.reduceAdd, 0)).toString(),
|
|
126
126
|
weightByBasket: "-",
|
|
127
127
|
lbDiscounted: (0, common_1.toFixedIfNeeded)(tempPesadas?.map((x) => Number(x.lbDiscounted)).reduce(common_1.reduceAdd, 0)),
|
|
128
128
|
probableUtilization: (0, common_1.toFixedIfNeeded)(tempPesadas
|
|
@@ -193,10 +193,10 @@ const getPesadasByForm = (formInput) => {
|
|
|
193
193
|
baskets,
|
|
194
194
|
totalWeight,
|
|
195
195
|
discount,
|
|
196
|
-
netWeight:
|
|
197
|
-
weightByBasket:
|
|
198
|
-
probableUtilization:
|
|
199
|
-
lbDiscounted:
|
|
196
|
+
netWeight: netWeight.toString(),
|
|
197
|
+
weightByBasket: weightByBasket.toString(),
|
|
198
|
+
probableUtilization: probableUtilization.toString(),
|
|
199
|
+
lbDiscounted: lbDiscounted.toString(),
|
|
200
200
|
});
|
|
201
201
|
index++;
|
|
202
202
|
}
|
|
@@ -266,7 +266,7 @@ const useGetBasketDetails = (purchaseOrder) => {
|
|
|
266
266
|
}
|
|
267
267
|
const totales = {
|
|
268
268
|
id: "",
|
|
269
|
-
total: (0, common_1.toFixedIfNeeded)(joinedBaskets?.map((x) => x.total).reduce(common_1.reduceAdd, 0)),
|
|
269
|
+
total: (0, common_1.toFixedIfNeeded)(joinedBaskets?.map((x) => x.total).reduce(common_1.reduceAdd, 0)).toString(),
|
|
270
270
|
cc: joinedBaskets?.map((x) => x.cc).reduce(common_1.reduceAdd, 0),
|
|
271
271
|
//granTotal: joinedBaskets?.map((x) => x.granTotal).reduce(reduceAdd, 0),
|
|
272
272
|
};
|
package/dist/receptions.d.ts
CHANGED
|
@@ -65,9 +65,9 @@ export declare const getPesadasByForm: (formInput: FormInput) => {
|
|
|
65
65
|
tempPesadas: PesadaBody[];
|
|
66
66
|
totales: {
|
|
67
67
|
id: string;
|
|
68
|
-
baskets: string;
|
|
69
|
-
totalWeight: string;
|
|
70
|
-
netWeight: string;
|
|
68
|
+
baskets: string | number;
|
|
69
|
+
totalWeight: string | number;
|
|
70
|
+
netWeight: string | number;
|
|
71
71
|
weightByBasket: string;
|
|
72
72
|
};
|
|
73
73
|
headers: GenericDynamicTableColumn[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/hooks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.105",
|
|
4
4
|
"description": "Hooks reutilizables dentro de las webapps de Zauru.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@remix-run/react": "^2.8.1",
|
|
30
|
-
"@zauru-sdk/common": "^1.0.
|
|
30
|
+
"@zauru-sdk/common": "^1.0.105",
|
|
31
31
|
"@zauru-sdk/icons": "^1.0.60",
|
|
32
32
|
"@zauru-sdk/redux": "^1.0.103",
|
|
33
33
|
"@zauru-sdk/types": "^1.0.98",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "57fb17e6d485c1d661432a1517fe8c4e8d354e78"
|
|
38
38
|
}
|