Author: bleny Date: 2013-04-17 11:37:50 +0200 (Wed, 17 Apr 2013) New Revision: 101 Url: http://forge.codelutin.com/projects/franciaflex-magalie/repository/revisions... Log: save quantity when reporting error in location Modified: trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js Modified: trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js =================================================================== --- trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js 2013-04-17 08:28:26 UTC (rev 100) +++ trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js 2013-04-17 09:37:50 UTC (rev 101) @@ -101,7 +101,6 @@ var storageMovement = this.getStorageMovement(barcode); storageMovement.used = true; storageMovement.defect = true; - storageMovement.withdrawn = 0; }; model.nextLocation = function() { @@ -246,7 +245,10 @@ } else { var barcode = $('#withdraw-item_locationBarcode').val(); + var quantity = parseFloat($('#withdraw-item_quantity').val()); + model.withdraw(barcode, quantity); + model.reportError(barcode); // if used location focused as current, highlight next location to go