Fix recur - rcur

This commit is contained in:
Laurent Destailleur 2017-10-12 01:35:04 +02:00
parent 7c29bb5818
commit dd15884f83
2 changed files with 2 additions and 2 deletions

View File

@ -857,7 +857,7 @@ class BonPrelevement extends CommonObject
$bac->fetch(0, $soc->id);
if ($format == 'FRST' && $bac->frstrecur != 'FRST') continue;
if ($format == 'RCUR' && $bac->frstrecur != 'RCUR') continue;
if ($format == 'RCUR' && ($bac->frstrecur != 'RCUR' && $bac->frstrecur != 'RECUR')) continue;
if ($bac->verif() >= 1)
{

View File

@ -46,7 +46,7 @@ $result = restrictedArea($user, 'prelevement', '', '', 'bons');
// Get supervariables
$action = GETPOST('action','alpha');
$mode = GETPOST('mode','alpha')?GETPOST('mode','alpha'):'real';
$format = GETPOST('format','alpha');
$format = GETPOST('format','aZ09');
/*