@zauru-sdk/services 2.0.79 → 2.0.80
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.
|
@@ -24,7 +24,7 @@ export const markAsReceivePurchaseOrder = (headers, body) => {
|
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* createNewPurchaseOrder
|
|
28
28
|
* @param headers
|
|
29
29
|
* @param body
|
|
30
30
|
* @returns
|
|
@@ -43,8 +43,10 @@ export const createNewPurchaseOrder = (headers, body) => {
|
|
|
43
43
|
delete sendBody.__rvfInternalFormId;
|
|
44
44
|
delete sendBody.taggings;
|
|
45
45
|
delete sendBody.purchase_order_details;
|
|
46
|
-
if (
|
|
47
|
-
|
|
46
|
+
if (sendBody.pdf) {
|
|
47
|
+
if (!(sendBody?.pdf instanceof File) || sendBody.pdf?.size <= 0) {
|
|
48
|
+
delete sendBody.pdf;
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
51
|
sendBody = convertToFormData({
|
|
50
52
|
purchase_order: sendBody,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.80",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"axios": "^1.6.7",
|
|
32
32
|
"chalk": "5.3.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "0dfb29a7a60069462a9e258f4f879da79571050e"
|
|
35
35
|
}
|