From 8e15f95890ab064b146c7ff91e1c45c4d0916f14 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Aug 2022 00:04:04 +0200 Subject: [PATCH] Fix missing llxHeader() --- htdocs/takepos/invoice.php | 47 +++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index c3948126b3f..213fee9d170 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -69,11 +69,6 @@ if (empty($user->rights->takepos->run) && !defined('INCLUDE_PHONEPAGE_FROM_PUBLI accessforbidden(); } - -/* - * View - */ - if ((getDolGlobalString('TAKEPOS_PHONE_BASIC_LAYOUT') == 1 && $conf->browser->layout == 'phone') || defined('INCLUDE_PHONEPAGE_FROM_PUBLIC_PAGE')) { // DIRECT LINK TO THIS PAGE FROM MOBILE AND NO TERMINAL SELECTED if ($_SESSION["takeposterminal"] == "") { @@ -84,24 +79,9 @@ if ((getDolGlobalString('TAKEPOS_PHONE_BASIC_LAYOUT') == 1 && $conf->browser->la exit; } } - $title = 'TakePOS - Dolibarr '.DOL_VERSION; - if (!empty($conf->global->MAIN_APPLICATION_TITLE)) { - $title = 'TakePOS - '.$conf->global->MAIN_APPLICATION_TITLE; - } - $head = ' - - - '; - $arrayofcss = array( - '/takepos/css/pos.css.php', - '/takepos/js/jquery.colorbox-min.js' - ); - $arrayofjs = array('/takepos/js/jquery.colorbox-min.js'); - $disablejs = 0; - $disablehead = 0; - top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); } + /** * Abort invoice creationg with a given error message * @@ -949,12 +929,32 @@ if (empty($reshook)) { } } + /* * View */ $form = new Form($db); +if (!defined('INCLUDE_INVOICE_PAGE_FROM_OTHER_PAGE')) { + $title = 'TakePOS - Dolibarr '.DOL_VERSION; + if (!empty($conf->global->MAIN_APPLICATION_TITLE)) { + $title = 'TakePOS - '.$conf->global->MAIN_APPLICATION_TITLE; + } + $head = ' + + + '; + $arrayofcss = array( + '/takepos/css/pos.css.php', + '/takepos/js/jquery.colorbox-min.js' + ); + $arrayofjs = array('/takepos/js/jquery.colorbox-min.js'); + $disablejs = 0; + $disablehead = 0; + top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); +} + ?>