Fix bad var $db

This commit is contained in:
Laurent Destailleur 2016-09-26 14:55:36 +02:00
parent 9b26db4151
commit e92184a738

View File

@ -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)