mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-13 02:03:53 -04:00
Add company name to barcode layout options
This commit is contained in:
@@ -54,18 +54,26 @@ class Barcode_lib
|
||||
"&type=".$this->CI->Appconfig->get('barcode_type').
|
||||
"' onerror=\"(function(pThis){pThis.onerror = null; pThis.src = pThis.src;})(this)\" />";
|
||||
}
|
||||
else if($layout_type == 'name'){
|
||||
else if($layout_type == 'name')
|
||||
{
|
||||
$result = $this->CI->lang->line('items_name') . " " . $item['name'];
|
||||
}
|
||||
else if($layout_type == 'category'){
|
||||
else if($layout_type == 'category')
|
||||
{
|
||||
$result = $this->CI->lang->line('items_category') . " " . $item['category'];
|
||||
}
|
||||
else if($layout_type == 'cost_price'){
|
||||
else if($layout_type == 'cost_price')
|
||||
{
|
||||
$result = $this->CI->lang->line('items_cost_price') . " " . to_currency($item['cost_price']);
|
||||
}
|
||||
else if($layout_type == 'unit_price'){
|
||||
else if($layout_type == 'unit_price')
|
||||
{
|
||||
$result = $this->CI->lang->line('items_unit_price') . " " . to_currency($item['unit_price']);
|
||||
}
|
||||
else if($layout_type == 'company_name')
|
||||
{
|
||||
$result = $this->CI->Appconfig->get('company');
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@@ -99,7 +99,8 @@ echo form_open('config/save_barcode/',array('id'=>'barcode_config_form'));
|
||||
'category' => 'Category',
|
||||
'item_code' => 'Item code',
|
||||
'cost_price' => 'Cost price',
|
||||
'unit_price' => 'Unit price'
|
||||
'unit_price' => 'Unit price',
|
||||
'company_name' => 'Company Name'
|
||||
),
|
||||
$this->config->item('barcode_first_row'));
|
||||
?>
|
||||
@@ -110,7 +111,8 @@ echo form_open('config/save_barcode/',array('id'=>'barcode_config_form'));
|
||||
'category' => 'Category',
|
||||
'item_code' => 'Item code',
|
||||
'cost_price' => 'Cost price',
|
||||
'unit_price' => 'Unit price'
|
||||
'unit_price' => 'Unit price',
|
||||
'company_name' => 'Company Name'
|
||||
),
|
||||
$this->config->item('barcode_second_row'));
|
||||
?>
|
||||
@@ -121,7 +123,8 @@ echo form_open('config/save_barcode/',array('id'=>'barcode_config_form'));
|
||||
'category' => 'Category',
|
||||
'item_code' => 'Item code',
|
||||
'cost_price' => 'Cost price',
|
||||
'unit_price' => 'Unit price'
|
||||
'unit_price' => 'Unit price',
|
||||
'company_name' => 'Company Name'
|
||||
),
|
||||
$this->config->item('barcode_third_row'));
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user