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)) {