Fix: error management
This commit is contained in:
parent
9690a0bc69
commit
0e12931d0f
@ -400,12 +400,16 @@ if ($user->rights->adherent->cotisation->creer && $action == 'cotisation' && ! $
|
|||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
$bank_line_id=$paiement->addPaymentToBank($user,'payment','(SubscriptionPayment)',$accountid,$emetteur_nom,$emetteur_banque);
|
$bank_line_id=$paiement->addPaymentToBank($user,'payment','(SubscriptionPayment)',$accountid,$emetteur_nom,$emetteur_banque);
|
||||||
if (! $bank_line_id > 0)
|
if (! ($bank_line_id > 0))
|
||||||
{
|
{
|
||||||
$errmsg=$paiement->error;
|
$errmsg=$paiement->error;
|
||||||
|
$errmsgs=$paiement->errors;
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! $error)
|
||||||
|
{
|
||||||
// Update fk_bank for subscriptions
|
// Update fk_bank for subscriptions
|
||||||
$sql = 'UPDATE '.MAIN_DB_PREFIX.'cotisation SET fk_bank='.$bank_line_id;
|
$sql = 'UPDATE '.MAIN_DB_PREFIX.'cotisation SET fk_bank='.$bank_line_id;
|
||||||
$sql.= ' WHERE rowid='.$crowid;
|
$sql.= ' WHERE rowid='.$crowid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user