From 41ae8f6f6881138ea4766454a4067ae093a98b9c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 16 Mar 2020 13:27:10 +0100 Subject: [PATCH] TakePOS: Move all information of customer in the header --- htdocs/societe/list.php | 1 + htdocs/takepos/admin/terminal.php | 2 +- htdocs/takepos/css/pos.css.php | 23 ++++-- htdocs/takepos/invoice.php | 118 +++++++++++++++++------------- htdocs/takepos/takepos.php | 8 +- htdocs/theme/eldy/global.inc.php | 2 +- 6 files changed, 93 insertions(+), 61 deletions(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 06d60843a79..bf261a8076e 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -252,6 +252,7 @@ if ($action == "change") // Change customer for TakePOS $resql = $db->query($sql); ?> @@ -903,53 +966,6 @@ else { // No invoice generated yet print ''; -if ($invoice->socid != $conf->global->$constforcompanyid) -{ - print '

'; - - $constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"]; - if (!empty($conf->stock->enabled) && $conf->global->$constantforkey != "1") - { - $constantforkey = 'CASHDESK_ID_WAREHOUSE'.$_SESSION["takeposterminal"]; - $warehouse = new Entrepot($db); - $warehouse->fetch($conf->global->$constantforkey); - print '
'.$langs->trans("Warehouse").': '.$warehouse->ref; - } - - // Module Adherent - if (!empty($conf->adherent->enabled)) - { - require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php'; - $langs->load("members"); - print '
'.$langs->trans("Member").': '; - $adh = new Adherent($db); - $result = $adh->fetch('', '', $invoice->socid); - if ($result > 0) - { - $adh->ref = $adh->getFullName($langs); - print $adh->getFullName($langs); - print '
'.$langs->trans("Type").': '.$adh->type; - if ($adh->datefin) - { - print '
'.$langs->trans("SubscriptionEndDate").': '.dol_print_date($adh->datefin, 'day'); - if ($adh->hasDelay()) { - print " ".img_warning($langs->trans("Late")); - } - } - else - { - print '
'.$langs->trans("SubscriptionNotReceived"); - if ($adh->statut > 0) print " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft and not terminated - } - } - else - { - print ''.$langs->trans("ThirdpartyNotLinkedToMember").''; - } - } - print '

'; -} - if ($action == "search") { print '
diff --git a/htdocs/takepos/takepos.php b/htdocs/takepos/takepos.php index c5f0b69b38a..2df16d7877f 100644 --- a/htdocs/takepos/takepos.php +++ b/htdocs/takepos/takepos.php @@ -690,14 +690,16 @@ if (empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) {