@zauru-sdk/utils 1.0.64 → 1.0.66
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.
|
@@ -188,9 +188,11 @@ const updateOchAndDis = async (headers, data, purchase_id) => {
|
|
|
188
188
|
const body = {
|
|
189
189
|
purchase_order: {
|
|
190
190
|
discount: data?.discount,
|
|
191
|
-
other_charges: data.other_charges,
|
|
192
191
|
},
|
|
193
192
|
};
|
|
193
|
+
if (data.other_charges) {
|
|
194
|
+
body.purchase_order.other_charges = Number(data.other_charges);
|
|
195
|
+
}
|
|
194
196
|
await (0, services_1.updateReceivedPurchaseOrder)(headers, body, purchase_id);
|
|
195
197
|
return true;
|
|
196
198
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CURRENCY_PREFIX, getNewDateByFormat, getStringFullDate, getZauruDateByText, handlePossibleAxiosErrors } from "@zauru-sdk/common";
|
|
2
|
-
import { commitSession, createNewPurchaseOrder, deleteDelivery, deletePurchaseOrder, deleteReception, generateDistinctCode, getLotesWithPurchaseFormated, getPurchaseOrder, getPurchasesListDataTables, getVariablesByName, inactivarLote, updateReceivedPurchaseOrder } from "@zauru-sdk/services";
|
|
1
|
+
import { CURRENCY_PREFIX, getNewDateByFormat, getStringFullDate, getZauruDateByText, handlePossibleAxiosErrors, } from "@zauru-sdk/common";
|
|
2
|
+
import { commitSession, createNewPurchaseOrder, deleteDelivery, deletePurchaseOrder, deleteReception, generateDistinctCode, getLotesWithPurchaseFormated, getPurchaseOrder, getPurchasesListDataTables, getVariablesByName, inactivarLote, updateReceivedPurchaseOrder, } from "@zauru-sdk/services";
|
|
3
3
|
/**
|
|
4
4
|
* Obtiene el listado de ordenes de compra, formateado especialmente para armar la tabla de edición de porcentajes y tolerancia
|
|
5
5
|
* @param headers
|
|
@@ -182,9 +182,11 @@ export const updateOchAndDis = async (headers, data, purchase_id) => {
|
|
|
182
182
|
const body = {
|
|
183
183
|
purchase_order: {
|
|
184
184
|
discount: data?.discount,
|
|
185
|
-
other_charges: data.other_charges,
|
|
186
185
|
},
|
|
187
186
|
};
|
|
187
|
+
if (data.other_charges) {
|
|
188
|
+
body.purchase_order.other_charges = Number(data.other_charges);
|
|
189
|
+
}
|
|
188
190
|
await updateReceivedPurchaseOrder(headers, body, purchase_id);
|
|
189
191
|
return true;
|
|
190
192
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.66",
|
|
4
4
|
"description": "Utilidades, parseo de request y demás para desarrollo de webapps de Zauru",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@remix-run/node": "^2.8.1",
|
|
28
28
|
"@zauru-sdk/common": "^1.0.60",
|
|
29
29
|
"@zauru-sdk/config": "^1.0.60",
|
|
30
|
-
"@zauru-sdk/graphql": "^1.0.
|
|
31
|
-
"@zauru-sdk/services": "^1.0.
|
|
30
|
+
"@zauru-sdk/graphql": "^1.0.66",
|
|
31
|
+
"@zauru-sdk/services": "^1.0.66",
|
|
32
32
|
"@zauru-sdk/types": "^1.0.60"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "7640aacff44c60067dc41d92fa08d2fb582f7acb"
|
|
35
35
|
}
|