Update actions_massactions.inc.php
This commit is contained in:
parent
2c2f86736a
commit
47448b77f0
@ -686,7 +686,7 @@ if ($massaction == 'confirm_createbills')
|
|||||||
if (! $error && $validate_invoices)
|
if (! $error && $validate_invoices)
|
||||||
{
|
{
|
||||||
$massaction = $action = 'builddoc';
|
$massaction = $action = 'builddoc';
|
||||||
$savobject = $object;
|
|
||||||
foreach($TAllFact as &$objecttmp)
|
foreach($TAllFact as &$objecttmp)
|
||||||
{
|
{
|
||||||
$result = $objecttmp->validate($user);
|
$result = $objecttmp->validate($user);
|
||||||
@ -703,12 +703,15 @@ if ($massaction == 'confirm_createbills')
|
|||||||
$donotredirect = 1;
|
$donotredirect = 1;
|
||||||
$upload_dir = $conf->facture->dir_output;
|
$upload_dir = $conf->facture->dir_output;
|
||||||
$permissioncreate=$user->rights->facture->creer;
|
$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';
|
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
|
||||||
|
$object = $savobject;
|
||||||
}
|
}
|
||||||
|
|
||||||
$massaction = $action = 'confirm_createbills';
|
$massaction = $action = 'confirm_createbills';
|
||||||
$object = $savobject;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user