bugfix
This commit is contained in:
parent
c3429ed6f4
commit
aaba414d8f
@ -424,7 +424,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
$result=commande_pdf_create($db, $commande->id,$commande->modelpdf;,$outputlangs);
|
$result=commande_pdf_create($db, $commande->id,$commande->modelpdf,$outputlangs);
|
||||||
if ($result <= 0)
|
if ($result <= 0)
|
||||||
{
|
{
|
||||||
dolibarr_print_error($db,$result);
|
dolibarr_print_error($db,$result);
|
||||||
|
|||||||
@ -690,12 +690,18 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
{
|
{
|
||||||
$facture = new Facture($db, 0, $_GET['facid']);
|
$facture = new Facture($db, 0, $_GET['facid']);
|
||||||
$facture->fetch($_GET['facid']);
|
$facture->fetch($_GET['facid']);
|
||||||
if ($_REQUEST['modelpdf']) $facture->set_pdf_model($user, $_REQUEST['modelpdf']);
|
|
||||||
|
if ($_REQUEST['modelpdf'])
|
||||||
|
{
|
||||||
|
$facture->set_pdf_model($user, $_REQUEST['modelpdf']);
|
||||||
|
}
|
||||||
|
|
||||||
if ($_REQUEST['lang_id'])
|
if ($_REQUEST['lang_id'])
|
||||||
{
|
{
|
||||||
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
$outputlangs = new Translate(DOL_DOCUMENT_ROOT ."/langs");
|
||||||
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
$outputlangs->setDefaultLang($_REQUEST['lang_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result=facture_pdf_create($db, $facture->id, '', $facture->modelpdf, $outputlangs);
|
$result=facture_pdf_create($db, $facture->id, '', $facture->modelpdf, $outputlangs);
|
||||||
if ($result <= 0)
|
if ($result <= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user