InventoryType from XML

Transaction updates
This commit is contained in:
2016-08-25 13:00:09 -04:00
parent 53ed1b3af9
commit a5fcb46e04
28 changed files with 471 additions and 70 deletions
@@ -9,9 +9,10 @@
var svc = {
add: add,
distribute: distribute,
update: update,
inventories: inventories,
getInventory: getInventory,
getInventory: getInventory
};
return svc;
@@ -19,7 +20,7 @@
function loadInventories() {
$http.post('/Inventory/All')
.success(function(data) {
inventories.addRange(data);
angular.copy(data, inventories);
});
}
@@ -30,6 +31,13 @@
});
}
function distribute(distribution) {
return $http.post('/Inventory/Distribute', distribution)
.success(function (data) {
angular.copy(data, inventories);
});
}
function update(existingInventory, updatedInventory) {
return $http.post('/Inventory/Update', updatedInventory)
.success(function(inventory) {