@zauru-sdk/graphql 2.14.1 → 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
|
-
|
|
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} } }`);
|
|
@@ -728,7 +733,7 @@ exports.getItemCategoryByIdStringQuery = getItemCategoryByIdStringQuery;
|
|
|
728
733
|
const getItemsByCategoryStringQuery = (id) => `
|
|
729
734
|
query getItemsByCategory {
|
|
730
735
|
item_categories (where: {id: {_eq: ${id} }}) {
|
|
731
|
-
items (where: {active: {_eq: true }}) {
|
|
736
|
+
items (where: {active: {_eq: true }}, order_by: {reorder_point: asc}) {
|
|
732
737
|
id
|
|
733
738
|
name
|
|
734
739
|
stocks_only_integer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "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": "
|
|
24
|
+
"gitHead": "f046b37495e3236ca23f08e529b10bcd46037cfa"
|
|
25
25
|
}
|