InventoryType from XML
Transaction updates
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user