diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php
index 3d6cec96319..07006eb5cd1 100644
--- a/htdocs/takepos/invoice.php
+++ b/htdocs/takepos/invoice.php
@@ -70,10 +70,12 @@ if (($conf->global->TAKEPOS_PHONE_BASIC_LAYOUT == 1 && $conf->browser->layout ==
';
+ $arrayofcss = array(
+ '/takepos/css/pos.css.php',
+ '/takepos/js/jquery.colorbox-min.js'
+ );
+ $arrayofjs = array('/takepos/js/jquery.colorbox-min.js');
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
- print '
-
- ';
}
/**
@@ -863,6 +865,9 @@ if ($conf->global->TAKEPOS_BAR_RESTAURANT)
print $langs->trans('Place')." ".$label." - ";
print $langs->trans('Floor')." ".$floor." - ";
}
+ elseif (defined('INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) print $mysoc->name;
+ elseif ($mobilepage == "cats") print $langs->trans('Category');
+ elseif ($mobilepage == "products") print $langs->trans('Label');
}
// In phone version only show when is invoice page
if ($mobilepage == "invoice" || $mobilepage == "") {
@@ -877,6 +882,7 @@ if ($_SESSION["basiclayout"] != 1)
print '
'.$langs->trans('Qty').' | ';
print ''.$langs->trans('TotalTTCShort').' | ';
}
+elseif ($mobilepage == "invoice") print ''.$langs->trans('Qty').' | ';
print "\n";
@@ -889,12 +895,14 @@ if ($_SESSION["basiclayout"] == 1)
$categories = $categorie->get_full_arbo('product');
$htmlforlines = '';
foreach ($categories as $row) {
- $htmlforlines .= '';
- $htmlforlines .= '';
+ if (defined('INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) $htmlforlines .= ' ';
+ else $htmlforlines .= ' | ';
$htmlforlines .= $row['label'];
- $htmlforlines .= ' | ';
- $htmlforlines .= '
'."\n";
+ if (defined('INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) $htmlforlines .= ''."\n";
+ else $htmlforlines .= ''."\n";
}
$htmlforlines .= '';
$htmlforlines .= '';
@@ -910,12 +918,20 @@ if ($_SESSION["basiclayout"] == 1)
$prods = $object->getObjectsInCateg("product");
$htmlforlines = '';
foreach ($prods as $row) {
- $htmlforlines .= 'id.')">';
- $htmlforlines .= '| ';
- $htmlforlines .= $row->label;
- $htmlforlines .= ' '.price($row->price_ttc, 1, $langs, 1, -1, -1, $conf->currency).' ';
- $htmlforlines .= ' |
'."\n";
+ if (defined('INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) {
+ $htmlforlines .= '
';
+ $htmlforlines .= $row->label.''.price($row->price_ttc, 1, $langs, 1, -1, -1, $conf->currency);
+ $htmlforlines .= ''."\n";
+ }
+ else {
+ $htmlforlines .= '';
+ $htmlforlines .= $row->label;
+ $htmlforlines .= ' '.price($row->price_ttc, 1, $langs, 1, -1, -1, $conf->currency).' ';
+ $htmlforlines .= ''."\n";
+ }
}
$htmlforlines .= '';
print $htmlforlines;
@@ -991,7 +1007,7 @@ if ($placeid > 0)
}
$htmlforlines .= '" id="'.$line->id.'">';
$htmlforlines .= ' | ';
- if ($_SESSION["basiclayout"] == 1) $htmlforlines .= $line->qty." x ";
+ if ($_SESSION["basiclayout"] == 1) $htmlforlines .= ''.$line->qty." x ";
//if ($line->product_label) $htmlforlines.= ''.$line->product_label.'';
if (isset($line->product_type))
{
@@ -1026,7 +1042,8 @@ if ($placeid > 0)
}
}
if (!empty($line->array_options['options_order_notes'])) $htmlforlines .= " (".$line->array_options['options_order_notes'].")";
- if ($_SESSION["basiclayout"] != 1)
+ if ($_SESSION["basiclayout"] == 1) $htmlforlines .= ' | ';
+ if ($_SESSION["basiclayout"] != 1)
{
$moreinfo = '';
$moreinfo .= $langs->transcountry("TotalHT", $mysoc->country_code).': '.price($line->total_ht);
|