Update actions_massactions.inc.php

This commit is contained in:
Laurent Destailleur 2019-01-08 16:47:30 +01:00 committed by GitHub
parent 2c2f86736a
commit 47448b77f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -686,7 +686,7 @@ if ($massaction == 'confirm_createbills')
if (! $error && $validate_invoices)
{
$massaction = $action = 'builddoc';
$savobject = $object;
foreach($TAllFact as &$objecttmp)
{
$result = $objecttmp->validate($user);
@ -703,12 +703,15 @@ if ($massaction == 'confirm_createbills')
$donotredirect = 1;
$upload_dir = $conf->facture->dir_output;
$permissioncreate=$user->rights->facture->creer;
$object = $objecttmp;
// Call action to build doc
$savobject = $object;
$object = $objecttmp;
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
$object = $savobject;
}
$massaction = $action = 'confirm_createbills';
$object = $savobject;
}
if (! $error)