add inventory changes

This commit is contained in:
2016-03-23 08:15:37 +01:00
parent 7db129de92
commit e7b16f20ce
15 changed files with 413 additions and 62 deletions

View File

@@ -89,7 +89,6 @@ class InventoryItemForm extends Model{
}
public function save(){
if ( $this->validate()) {
$this->loadLastInventory();
@@ -128,10 +127,9 @@ class InventoryItemForm extends Model{
$this->inventory_item = $item;
return true;
}
return false;
}
protected function loadProductIn(){
$query = new Query();
$query->select(['sum(procurement.count) as total_in']);