Update list.php

Add massaction for payment invoice
This commit is contained in:
oscim 2020-05-05 08:54:52 +02:00 committed by GitHub
parent 5e4ef9266e
commit d6de46cc05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,16 @@ if (empty($reshook))
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
}
if ($massaction == 'withdrawrequest')
if($massaction == 'reglement'){
$arrayofselected=is_array($toselect)?$toselect:array();
$loc = dol_buildpath('/compta/paiement.php', 2).'?facids='.implode(',', $arrayofselected);
header('Location: '.$loc);
exit;
}
elseif ($massaction == 'withdrawrequest')
{
$langs->load("withdrawals");
@ -657,6 +666,7 @@ if ($resql)
'generate_doc'=>$langs->trans("ReGeneratePDF"),
'builddoc'=>$langs->trans("PDFMerge"),
'presend'=>$langs->trans("SendByMail"),
'reglement'=>$langs->trans("InvoicePaymentsLimits"),
);
if ($conf->prelevement->enabled) {
$langs->load("withdrawals");