mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-20 07:14:33 -04:00
Invert quantity correction when deleting sales
This commit is contained in:
1 parent
344cb5c749
commit
b9ee7b6b01
1 file changed
+2
-2
@@ -185,7 +185,7 @@ class Sale extends CI_Model
|
||||
'trans_user'=>$employee_id,
|
||||
'trans_comment'=>'Deleting sale ' . $sale_id,
|
||||
'trans_location'=>$item['item_location'],
|
||||
'trans_inventory'=>$item['quantity_purchased']*-1
|
||||
'trans_inventory'=>$item['quantity_purchased']
|
||||
|
||||
);
|
||||
// update inventory
|
||||
@@ -194,7 +194,7 @@ class Sale extends CI_Model
|
||||
// update quantities
|
||||
$this->Item_quantities->change_quantity($item['item_id'],
|
||||
$item['item_location'],
|
||||
$item['quantity_purchased']*-1);
|
||||
$item['quantity_purchased']);
|
||||
}
|
||||
}
|
||||
// delete all items
|
||||
|
||||
Reference in new issue
Block a user