Ajout archivage factures
This commit is contained in:
parent
79b3a72cca
commit
745de00331
4 changed files with 29 additions and 14 deletions
|
|
@ -13,11 +13,19 @@ $form->runIf(f('archiver') && !$form->hasErrors(),
|
|||
function () use($facture)
|
||||
{
|
||||
foreach(f('selected') as $f) {
|
||||
$facture->archiver($f);
|
||||
$facture->archiver($f, 1);
|
||||
}
|
||||
|
||||
}, 'archiver_factures');
|
||||
|
||||
$form->runIf(f('desarchiver') && !$form->hasErrors(),
|
||||
function () use($facture)
|
||||
{
|
||||
foreach(f('selected') as $f) {
|
||||
$facture->archiver($f, 0);
|
||||
}
|
||||
|
||||
}, 'desarchiver_factures');
|
||||
|
||||
$archive = isset($_GET['archive']) && $_GET['archive'] == 1;
|
||||
$list = $facture->list(! $archive);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue