@zauru-sdk/services 2.0.80 → 2.0.81

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.
@@ -43,14 +43,15 @@ export const createNewPurchaseOrder = (headers, body) => {
43
43
  delete sendBody.__rvfInternalFormId;
44
44
  delete sendBody.taggings;
45
45
  delete sendBody.purchase_order_details;
46
+ sendBody = {
47
+ purchase_order: sendBody,
48
+ };
46
49
  if (sendBody.pdf) {
47
50
  if (!(sendBody?.pdf instanceof File) || sendBody.pdf?.size <= 0) {
48
51
  delete sendBody.pdf;
52
+ sendBody = convertToFormData(sendBody);
49
53
  }
50
54
  }
51
- sendBody = convertToFormData({
52
- purchase_order: sendBody,
53
- });
54
55
  const response = await httpZauru.post(`/purchases/purchase_orders.json`, sendBody, { headers });
55
56
  return response.data;
56
57
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.80",
3
+ "version": "2.0.81",
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": "0dfb29a7a60069462a9e258f4f879da79571050e"
34
+ "gitHead": "e1f6427c5292ba079a8a3e506922777c8b21e65d"
35
35
  }