mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-19 19:32:52 -04:00
Invert quantity correction when deleting sales
This commit is contained in:
@@ -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