Fix object not defined

This commit is contained in:
Laurent Destailleur 2015-04-13 13:34:13 +02:00
parent dbaaa44c76
commit 5dc1102601
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
* $object (invoice, order, ...) * $object (invoice, order, ...)
* $conf * $conf
* $langs * $langs
* $seller, $nuyer
* $dateSelector * $dateSelector
* $forceall (0 by default, 1 for supplier invoices/orders) * $forceall (0 by default, 1 for supplier invoices/orders)
* $senderissupplier (0 by default, 1 for supplier invoices/orders) * $senderissupplier (0 by default, 1 for supplier invoices/orders)

View File

@ -2039,7 +2039,7 @@ elseif (! empty($object->id))
// Show object lines // Show object lines
$inputalsopricewithtax=0; $inputalsopricewithtax=0;
if (! empty($object->lines)) if (! empty($object->lines))
$ret = $object->printObjectLines($action, $soc, $mysoc, $lineid, 1); $ret = $object->printObjectLines($action, $societe, $mysoc, $lineid, 1);
$num = count($object->lines); $num = count($object->lines);