From ec1acf710ce63b082e6217bbe51bde697e0c9af0 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur
'; + print $langs->trans("Member").': '; + $adh=new Adherent($db); + $result=$adh->fetch('', '', $invoice->socid); + if ($result > 0) { - require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php'; - $langs->load("members"); - print '
';
- 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)
{
- $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"));
+ 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("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 '