mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-22 00:04:37 -04:00
Add stock location filtering on items
This commit is contained in:
1 parent
290533612e
commit
2929dfe9dd
13 files changed
+103
-43
No files matched your search
@@ -361,17 +361,8 @@ class Sales extends Secure_area
|
||||
$data['modes']=array('sale'=>$this->lang->line('sales_sale'),'return'=>$this->lang->line('sales_return'));
|
||||
$data['mode']=$this->sale_lib->get_mode();
|
||||
|
||||
$data['stock_locations'] = array();
|
||||
$stock_locations = $this->Stock_locations->get_undeleted_all()->result_array();
|
||||
$show_stock_locations = count($stock_locations) > 1;
|
||||
if ($show_stock_locations) {
|
||||
foreach($stock_locations as $location_data)
|
||||
{
|
||||
$data['stock_locations'][$location_data['location_id']] = $location_data['location_name'];
|
||||
}
|
||||
$data['stock_location']=$this->sale_lib->get_sale_location();
|
||||
}
|
||||
$data['show_stock_locations'] = $show_stock_locations;
|
||||
$data['stock_locations']=$this->Stock_locations->get_allowed_locations();
|
||||
$data['stock_location']=$this->sale_lib->get_sale_location();
|
||||
|
||||
$data['subtotal']=$this->sale_lib->get_subtotal();
|
||||
$data['taxes']=$this->sale_lib->get_taxes();
|
||||
|
||||
Reference in new issue
Block a user