Update list.php
This commit is contained in:
parent
bbf1ade0a5
commit
0ad0035f19
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user