@zauru-sdk/services 2.21.0 → 2.22.0
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.
|
@@ -145,7 +145,7 @@ export async function createInvoicePOS(headers, body) {
|
|
|
145
145
|
delete sendBody.invoice_details;
|
|
146
146
|
if (sendBody.tagging_invoices)
|
|
147
147
|
delete sendBody.tagging_invoices;
|
|
148
|
-
const response = await httpZauru.post(`/pos/
|
|
148
|
+
const response = await httpZauru.post(`/pos/sale_orders.json`, { invoice: sendBody }, { headers });
|
|
149
149
|
return response.data;
|
|
150
150
|
});
|
|
151
151
|
}
|
|
@@ -167,7 +167,7 @@ export async function updateInvoicePOS(headers, body) {
|
|
|
167
167
|
delete sendBody.__rvfInternalFormId;
|
|
168
168
|
if (sendBody.invoice_details)
|
|
169
169
|
delete sendBody.invoice_details;
|
|
170
|
-
const response = await httpZauru.patch(`/pos/
|
|
170
|
+
const response = await httpZauru.patch(`/pos/sale_orders/${body.id}.json`, { invoice: sendBody }, { headers });
|
|
171
171
|
return response.data;
|
|
172
172
|
});
|
|
173
173
|
}
|
|
@@ -178,7 +178,7 @@ export async function updateInvoicePOS(headers, body) {
|
|
|
178
178
|
*/
|
|
179
179
|
export async function deleteInvoicePOS(headers, id) {
|
|
180
180
|
return handlePossibleAxiosErrors(async () => {
|
|
181
|
-
await httpZauru.get(`/pos/
|
|
181
|
+
await httpZauru.get(`/pos/sale_orders/${id}/void`, {
|
|
182
182
|
headers,
|
|
183
183
|
});
|
|
184
184
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"axios": "^1.6.7",
|
|
33
33
|
"chalk": "5.3.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "1e2063d8965b458580aaaa1b17c5a88ff20243b1"
|
|
36
36
|
}
|