Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
4c87a60d6c
@ -240,6 +240,8 @@ if ($action == 'valid' && $user->rights->facture->creer)
|
|||||||
dol_syslog("Invoice is paid, so we set it to status Paid");
|
dol_syslog("Invoice is paid, so we set it to status Paid");
|
||||||
$result = $invoice->set_paid($user);
|
$result = $invoice->set_paid($user);
|
||||||
if ($result > 0) $invoice->paye = 1;
|
if ($result > 0) $invoice->paye = 1;
|
||||||
|
// set payment method
|
||||||
|
$invoice->setPaymentMethods($paiementid);
|
||||||
} else {
|
} else {
|
||||||
dol_syslog("Invoice is not paid, remain to pay = ".$remaintopay);
|
dol_syslog("Invoice is not paid, remain to pay = ".$remaintopay);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user