Эх сурвалжийг харах

Prevent submiting of transaction data for non-pos merchants if there is an invalid number

Lee Morgan 6 жил өмнө
parent
commit
ce2e8e064d

+ 2 - 3
views/inventoryPage/enterTransactions.js

@@ -49,14 +49,13 @@ window.enterTransactionsObj = {
                     id: row._id,
                     quantity: quantity
                 }
-                console.log(recipe.id);
                 recipes.push(recipe);
             }else if(quantity < 0){
                 banner.createError("Cannot have negative quantities");
-                break;
+                return;
             }
         }
-        console.log(recipes);
+
         axios.post("/transactions/create", recipes)
             .then((response)=>{
                 if(typeof(response.data) === "string"){