forked from Wavyzz/dolibarr
add new rule
This commit is contained in:
@@ -176,8 +176,7 @@ function rebuild_merge_pdf($db, $langs, $conf, $diroutputpdf, $newlangid, $filte
|
||||
{
|
||||
if ($usestdout) print "Build PDF for invoice ".$obj->ref." - Lang = ".$outputlangs->defaultlang."\n";
|
||||
$result = $fac->generateDocument($regenerate ? $regenerate : $fac->modelpdf, $outputlangs);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($usestdout) print "PDF for invoice ".$obj->ref." already exists\n";
|
||||
}
|
||||
|
||||
@@ -261,14 +260,12 @@ function rebuild_merge_pdf($db, $langs, $conf, $diroutputpdf, $newlangid, $filte
|
||||
}
|
||||
|
||||
$result = 1;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($usestdout) print "No invoices found for criteria.\n";
|
||||
else dol_syslog("No invoices found for criteria");
|
||||
$result = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
dol_print_error($db);
|
||||
dol_syslog("scripts/invoices/rebuild_merge.php: Error");
|
||||
$error++;
|
||||
|
||||
Reference in New Issue
Block a user