@zauru-sdk/graphql 2.0.68 → 2.0.69

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.
@@ -298,7 +298,12 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
298
298
  conditions.push(`payee: { ${payeeConditions.join(", ")} }`);
299
299
  }
300
300
  if (config.itemId) {
301
- conditions.push(`purchase_order_details: { item_id: { _eq: ${config.itemId} } }`);
301
+ if (config.itemId.toString().includes(",")) {
302
+ conditions.push(`purchase_order_details: { item_id: { _in: [${config.itemId}] } }`);
303
+ }
304
+ else {
305
+ conditions.push(`purchase_order_details: { item_id: { _eq: ${config.itemId} } }`);
306
+ }
302
307
  }
303
308
  if (config.lotItemIdExclusion) {
304
309
  conditions.push(`lots: { item_id: { _neq: ${config.lotItemIdExclusion} } }`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.68",
3
+ "version": "2.0.69",
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": "140314c5f569a1037af24f822591f81406c2d02f"
24
+ "gitHead": "31cfa9c9573dbc294d5aae1d2a52da883c596cf8"
25
25
  }