Fix bad var $db
This commit is contained in:
parent
9b26db4151
commit
e92184a738
@ -420,7 +420,7 @@ class Facture extends CommonInvoice
|
||||
if ($originforcontact == 'shipping') // shipment and order share the same contacts. If creating from shipment we take data of order
|
||||
{
|
||||
require_once DOL_DOCUMENT_ROOT . '/expedition/class/expedition.class.php';
|
||||
$exp = new Expedition($db);
|
||||
$exp = new Expedition($this->db);
|
||||
$exp->fetch($origin_id);
|
||||
$exp->fetchObjectLinked();
|
||||
if (count($exp->linkedObjectsIds['commande']) > 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user