Browse Source

Hide articles with empty stock

keplyx 2 years ago
parent
commit
4cefcccdce
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      screens/Proximo/ProximoMainScreen.js

+ 1
- 1
screens/Proximo/ProximoMainScreen.js View File

@@ -63,7 +63,7 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
63 63
                     data: []
64 64
                 });
65 65
                 for (let k = 0; k < articles.length; k++) {
66
-                    if (articles[k]['type'].includes(types[i].id)) {
66
+                    if (articles[k]['type'].includes(types[i].id) && parseInt(articles[k]['quantity']) > 0) {
67 67
                         finalData[i].data.push(articles[k]);
68 68
                     }
69 69
                 }

Loading…
Cancel
Save