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 '