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