Update list.php

This commit is contained in:
Laurent Destailleur 2020-11-25 12:47:10 +01:00 committed by GitHub
parent bbf1ade0a5
commit 0ad0035f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,13 +307,10 @@ if ($massaction == 'makepayment') {
header('Location: '.$loc);
exit;
}
elseif ($massaction == 'withdrawrequest')
{
} elseif ($massaction == 'withdrawrequest') {
$langs->load("withdrawals");
if (!$user->rights->prelevement->bons->creer)
{
if (!$user->rights->prelevement->bons->creer) {
$error++;
setEventMessages($langs->trans("NotEnoughPermissions"), null, 'errors');
} else {
@ -326,8 +323,7 @@ elseif ($massaction == 'withdrawrequest')
{
$objecttmp = new Facture($db);
$result = $objecttmp->fetch($toselectid);
if ($result > 0)
{
if ($result > 0) {
$totalpaye = $objecttmp->getSommePaiement();
$totalcreditnotes = $objecttmp->getSumCreditNotesUsed();
$totaldeposits = $objecttmp->getSumDepositsUsed();