mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-04 15:13:40 -04:00
Formattings
- Format of ternary changed for readability - Corrected CSS to use : instead of = - Removed Label for item name to allow more text
This commit is contained in:
@@ -152,11 +152,11 @@ class Barcode_lib
|
||||
if((isset($item['item_number']) || isset($item['name'])) && isset($item['item_id']))
|
||||
{
|
||||
$display_table = '<table>';
|
||||
$display_table .= "<tr><td style=\"text-align:center;\">" . $this->manage_display_layout($barcode_config['barcode_first_row'], $item, $barcode_config) . '</td></tr>';
|
||||
$display_table .= '<tr><td style="text-align:center;">' . $this->manage_display_layout($barcode_config['barcode_first_row'], $item, $barcode_config) . '</td></tr>';
|
||||
$barcode = $this->generate_barcode($item, $barcode_config);
|
||||
$display_table .= '<tr><td style="text-align:center;"><div style=\'height:' . $barcode_config['barcode_height'] . 'px; width:'. $barcode_config['barcode_width'] . "px;'>$barcode</div></td></tr>";
|
||||
$display_table .= "<tr><td style=\"text-align:center;\">" . $this->manage_display_layout($barcode_config['barcode_second_row'], $item, $barcode_config) . '</td></tr>';
|
||||
$display_table .= "<tr><td style=\"text-align:center;\">" . $this->manage_display_layout($barcode_config['barcode_third_row'], $item, $barcode_config) . '</td></tr>';
|
||||
$display_table .= '<tr><td style="text-align:center;">' . $this->manage_display_layout($barcode_config['barcode_second_row'], $item, $barcode_config) . '</td></tr>';
|
||||
$display_table .= '<tr><td style="text-align:center;">' . $this->manage_display_layout($barcode_config['barcode_third_row'], $item, $barcode_config) . '</td></tr>';
|
||||
$display_table .= '</table>';
|
||||
|
||||
return $display_table;
|
||||
@@ -178,7 +178,7 @@ class Barcode_lib
|
||||
|
||||
if($layout_type == 'name')
|
||||
{
|
||||
$result = lang('Items.name') . ": " . $item['name'];
|
||||
$result = $item['name'];
|
||||
}
|
||||
elseif($layout_type == 'category' && isset($item['category']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user