From 5dc11026015f671ce947a21259034af573574602 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 Apr 2015 13:34:13 +0200 Subject: [PATCH] Fix object not defined --- htdocs/core/tpl/objectline_edit.tpl.php | 1 + htdocs/fourn/commande/card.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/tpl/objectline_edit.tpl.php b/htdocs/core/tpl/objectline_edit.tpl.php index 5b895a69da3..385274c6e35 100644 --- a/htdocs/core/tpl/objectline_edit.tpl.php +++ b/htdocs/core/tpl/objectline_edit.tpl.php @@ -23,6 +23,7 @@ * $object (invoice, order, ...) * $conf * $langs + * $seller, $nuyer * $dateSelector * $forceall (0 by default, 1 for supplier invoices/orders) * $senderissupplier (0 by default, 1 for supplier invoices/orders) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 3522e3a91b2..dd2544c2342 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2039,7 +2039,7 @@ elseif (! empty($object->id)) // Show object lines $inputalsopricewithtax=0; if (! empty($object->lines)) - $ret = $object->printObjectLines($action, $soc, $mysoc, $lineid, 1); + $ret = $object->printObjectLines($action, $societe, $mysoc, $lineid, 1); $num = count($object->lines);