@zauru-sdk/services 2.26.3 → 2.27.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.
|
@@ -127,15 +127,15 @@ export async function deleteInvoiceOrder(headers, id) {
|
|
|
127
127
|
* @param body
|
|
128
128
|
* @returns
|
|
129
129
|
*/
|
|
130
|
-
export async function createInvoicePOS(headers, body) {
|
|
130
|
+
export async function createInvoicePOS(headers, body, sujetaAImpuestos = true) {
|
|
131
131
|
return handlePossibleAxiosErrors(async () => {
|
|
132
132
|
const sendBody = {
|
|
133
133
|
...body,
|
|
134
|
-
|
|
134
|
+
taxable: sujetaAImpuestos, //(true) - Esto lo hace una factura
|
|
135
|
+
issued: true,
|
|
136
|
+
pos: true,
|
|
135
137
|
invoice_details_attributes: arrayToObject(body.invoice_details),
|
|
136
138
|
tag_ids: ["", ...(body.tagging_invoices?.map((x) => x.tag_id) ?? [])],
|
|
137
|
-
taxable: 1,
|
|
138
|
-
pos: true,
|
|
139
139
|
};
|
|
140
140
|
if (sendBody.deleted_invoice_details)
|
|
141
141
|
delete sendBody.deleted_invoice_details;
|
|
@@ -43,7 +43,7 @@ export declare function deleteInvoiceOrder(headers: any, id: string | number): P
|
|
|
43
43
|
* @param body
|
|
44
44
|
* @returns
|
|
45
45
|
*/
|
|
46
|
-
export declare function createInvoicePOS(headers: any, body: Partial<InvoiceGraphQL
|
|
46
|
+
export declare function createInvoicePOS(headers: any, body: Partial<InvoiceGraphQL>, sujetaAImpuestos?: boolean): Promise<AxiosUtilsResponse<InvoiceGraphQL>>;
|
|
47
47
|
/**
|
|
48
48
|
* deleteInvoicePOS
|
|
49
49
|
* @param headers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.27.0",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@remix-run/node": "^2.8.1",
|
|
27
27
|
"@upstash/redis": "^1.34.5",
|
|
28
|
-
"@zauru-sdk/common": "^2.
|
|
28
|
+
"@zauru-sdk/common": "^2.27.0",
|
|
29
29
|
"@zauru-sdk/config": "^2.23.1",
|
|
30
30
|
"@zauru-sdk/graphql": "^2.26.3",
|
|
31
|
-
"@zauru-sdk/types": "^2.
|
|
31
|
+
"@zauru-sdk/types": "^2.27.0",
|
|
32
32
|
"axios": "^1.6.7",
|
|
33
33
|
"chalk": "5.3.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "456be80923a38b590cf75923d88c9ae3c0d2e406"
|
|
36
36
|
}
|