fix ajax
This commit is contained in:
parent
c0c6047538
commit
cb152b22df
@ -172,7 +172,11 @@ class pdf_standard extends ModelePDFProduct
|
|||||||
// Load traductions files required by page
|
// Load traductions files required by page
|
||||||
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "products", "orders", "deliveries"));
|
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "products", "orders", "deliveries"));
|
||||||
|
|
||||||
$nblines = count($object->lines);
|
if (is_array($object->lines)) {
|
||||||
|
$nblines = count($object->lines);
|
||||||
|
} else {
|
||||||
|
$nblines = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if ($conf->product->dir_output)
|
if ($conf->product->dir_output)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -191,7 +191,8 @@ if (!empty($action) && $action == 'fetch' && !empty($id))
|
|||||||
'pricebasetype' => $outpricebasetype,
|
'pricebasetype' => $outpricebasetype,
|
||||||
'tva_tx' => $outtva_tx,
|
'tva_tx' => $outtva_tx,
|
||||||
'qty' => $outqty,
|
'qty' => $outqty,
|
||||||
'discount' => $outdiscount);
|
'discount' => $outdiscount,
|
||||||
|
'array_option'=>$object->array_options);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo json_encode($outjson);
|
echo json_encode($outjson);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user