@zauru-sdk/graphql 2.0.160 → 2.0.161
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.
|
@@ -26,6 +26,7 @@ export declare const getLotStocksByAgencyIdStringQuery: (agency_id: number) => s
|
|
|
26
26
|
export declare const getPurchaseOrdersBetweenDatesStringQuery: (startDate: string, endDate: string, config: {
|
|
27
27
|
agencyId?: number | string;
|
|
28
28
|
itemId?: number | string;
|
|
29
|
+
reference?: string;
|
|
29
30
|
payeeCategoryId?: number | string;
|
|
30
31
|
payeeId?: number | string;
|
|
31
32
|
consolidateIdFilter?: boolean;
|
|
@@ -327,6 +327,14 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
|
|
|
327
327
|
conditions.push(`purchase_order_details: { item_id: { _eq: ${config.itemId} } }`);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
+
if (config.reference) {
|
|
331
|
+
if (config.reference.toString().includes(",")) {
|
|
332
|
+
conditions.push(`reference: { _in: [${config.reference}] }`);
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
conditions.push(`reference: { _eq: "${config.reference}" }`);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
330
338
|
if (config.lotItemIdExclusion) {
|
|
331
339
|
conditions.push(`lots: { item_id: { _neq: ${config.lotItemIdExclusion} } }`);
|
|
332
340
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.161",
|
|
4
4
|
"description": "Queries de uso común para las aplicación de Zauru.",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"typescript": "^5.1.6"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "c1fb36ef2266c186a766f9a5831a783b0f2fb0b3"
|
|
25
25
|
}
|