Fix: Si adhrent n'a pas de mail, on ne propose pas envoi A.R. adhsion
This commit is contained in:
parent
f013b5897b
commit
8591d53b34
@ -41,6 +41,7 @@ $langs->load("companies");
|
||||
$langs->load("bills");
|
||||
$langs->load("members");
|
||||
$langs->load("users");
|
||||
$langs->load("mails");
|
||||
|
||||
$user->getrights('adherent');
|
||||
|
||||
@ -406,7 +407,11 @@ if ($action == 'addsubscription' && $user->rights->adherent->cotisation->creer)
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<input name="sendmail" type="checkbox"'.($conf->global->ADHERENT_MAIL_COTIS?' checked="true"':'').'>';
|
||||
$s1='<input name="sendmail" type="checkbox"'.($conf->global->ADHERENT_MAIL_COTIS?' checked="true"':'').'>';
|
||||
$s2=$langs->trans("MailFrom").': <b>'.$conf->global->ADHERENT_MAIL_FROM.'</b><br>';
|
||||
$s2.=$langs->trans("MailTo").': <b>'.$adh->email.'</b>';
|
||||
//$s2.='<br>'.$langs->trans("Content").': '.nl2br($conf->global->ADHERENT_MAIL_COTIS);
|
||||
print $html->textwithhelp($s1,$s2,1);
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
@ -247,10 +247,14 @@ class Account
|
||||
$datev = $date;
|
||||
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."bank (datec, dateo, datev, label, amount, fk_user_author, num_chq, fk_account, fk_type,emetteur,banque)";
|
||||
$sql.= " VALUES (now(),'".$this->db->idate($date)."','".$this->db->idate($datev)."',";
|
||||
$sql.= "'".addslashes($label)."','" . price2num($amount)."','".$user->id."','$num_chq','".$this->rowid."', '$oper'";
|
||||
$sql.= ",'".addslashes($emetteur)."'";
|
||||
$sql.= ",'".addslashes($banque)."');";
|
||||
$sql.= " VALUES (now(), '".$this->db->idate($date)."', '".$this->db->idate($datev)."', ";
|
||||
$sql.= " '".addslashes($label)."', '" . price2num($amount)."', '".$user->id."', ";
|
||||
$sql.= " ".($num_chq?"'".$num_chq."'":"null").", ";
|
||||
$sql.= " '".$this->rowid."', ";
|
||||
$sql.= " '".$oper."', ";
|
||||
$sql.= " ".($emetteur?"'".addslashes($emetteur)."'":"null").", ";
|
||||
$sql.= " ".($banque?"'".addslashes($banque)."'":"null");
|
||||
$sql.= ")";
|
||||
|
||||
if ($this->db->query($sql))
|
||||
{
|
||||
|
||||
@ -352,6 +352,7 @@ Question=Question
|
||||
Response=Response
|
||||
Priority=Priority
|
||||
SendAcknowledgementByMail=Send Ack. by mail
|
||||
NoEMail=No EMail
|
||||
# Countries
|
||||
CountryFR=France
|
||||
CountryBE=Belgium
|
||||
|
||||
@ -352,6 +352,7 @@ Question=Question
|
||||
Response=Réponse
|
||||
Priority=Priorité
|
||||
SendAcknowledgementByMail=Envoi A.R. par mail
|
||||
NoEMail=Pas d'email
|
||||
# Countries
|
||||
CountryFR=France
|
||||
CountryBE=Belgique
|
||||
|
||||
@ -36,20 +36,20 @@ MembersAttributes=Attributs adh
|
||||
SearchAMember=Rechercher un membre
|
||||
MemberStatusDraft=Brouillon (à valider)
|
||||
MemberStatusDraftShort=A valider
|
||||
MemberStatusActive=Validé (non cotisé)
|
||||
MemberStatusActive=Validé (attente adhésion)
|
||||
MemberStatusActiveShort=Validé
|
||||
MemberStatusActiveLate=Cotisation non à jour
|
||||
MemberStatusActiveLate=Adhésion non à jour
|
||||
MemberStatusActiveLateShort=Non à jour
|
||||
MemberStatusPayed=Cotisation à jour
|
||||
MemberStatusPayed=Adhésion à jour
|
||||
MemberStatusPayedShort=A jour
|
||||
MemberStatusResiliated=Adhérent résilié
|
||||
MemberStatusResiliatedShort=Résilié
|
||||
MembersStatusToValid=Adhérents brouillons
|
||||
MembersStatusToValidShort=Adhérents brouillons
|
||||
MembersStatusValidated=Adhérents validés
|
||||
MembersStatusPayed=Cotisations à jour
|
||||
MembersStatusPayed=Adhésions à jour
|
||||
MembersStatusPayedShort=A jour
|
||||
MembersStatusNotPayed=Cotisations non à jour
|
||||
MembersStatusNotPayed=Adhésions non à jour
|
||||
MembersStatusNotPayedShort=Non à jour
|
||||
MembersStatusResiliated=Adhérents résiliés
|
||||
MembersStatusResiliatedShort=Adhérents résiliés
|
||||
|
||||
Loading…
Reference in New Issue
Block a user