Author: bleny Date: 2013-07-23 17:23:15 +0200 (Tue, 23 Jul 2013) New Revision: 324 Url: http://forge.codelutin.com/projects/franciaflex-magalie/repository/revisions... Log: remove dead code 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-07-23 14:55:08 UTC (rev 323) +++ trunk/magalie-web/src/main/webapp/js/withdraw-item-input.js 2013-07-23 15:23:15 UTC (rev 324) @@ -21,45 +21,6 @@ * #L% */ -//model.allowSubmit = false; -// -//model.isFulfilled = function() { -// var isFull = this.withdrawn() === this.quantity; -// return isFull; -//}; -// -//model.allIsUsed = function() { -// return this.storageMovementsIndex == null; -//}; -// -//model.canTerminate = function() { -// var canTerminate = this.isFulfilled() || this.allIsUsed(); -// return canTerminate; -//}; -// -// -// -// -//model.nextLocation = function() { -// this.storageMovementsIndex += 1; -// if (this.storageMovementsIndex >= this.storageMovements.length) { -// this.storageMovementsIndex = null; -// } else { -// var storageMovement = this.storageMovements[this.storageMovementsIndex]; -// if (storageMovement.expectedQuantity == 0.) { -// console.debug("will use extra location " + storageMovement.storedArticle.location.code); -// var remainingQuantity = this.quantity - this.withdrawn(); -// storageMovement.expectedQuantity = remainingQuantity; -//// var availableQuantityInLocation = storageMovement.availableQuantity; -//// storageMovement.expectedQuantity = Math.min(remainingQuantity, availableQuantityInLocation); -// console.debug("pushing new value to withdraw: " + storageMovement.expectedQuantity); -// } -// } -//}; -// - - - model.storageMovements = []; model.storageMovementsIndex = -1;
participants (1)
-
bleny@users.forge.codelutin.com