@zauru-sdk/graphql 2.14.2 → 2.19.1

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.
@@ -386,7 +386,12 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
386
386
  if (config.payeeId || config.payeeCategoryId) {
387
387
  const payeeConditions = [];
388
388
  if (config.payeeId) {
389
- payeeConditions.push(`id: { _eq: ${config.payeeId} }`);
389
+ if (config.payeeId.toString().includes(",")) {
390
+ payeeConditions.push(`id: { _in: [${config.payeeId}] }`);
391
+ }
392
+ else {
393
+ payeeConditions.push(`id: { _eq: ${config.payeeId} }`);
394
+ }
390
395
  }
391
396
  if (config.payeeCategoryId) {
392
397
  payeeConditions.push(`payee_category: { id: { _eq: ${config.payeeCategoryId} } }`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.14.2",
3
+ "version": "2.19.1",
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": "1dea85f0e6cf3552334115097392b6e616f6d061"
24
+ "gitHead": "f046b37495e3236ca23f08e529b10bcd46037cfa"
25
25
  }