fix minor bug in invoice creation from another object

This commit is contained in:
Christophe Battarel 2012-10-25 15:50:43 +02:00
parent 135342b085
commit 2272d13f5a

View File

@ -965,7 +965,7 @@ if ($action == 'create')
$objectsrc->fetch(GETPOST('originid')); $objectsrc->fetch(GETPOST('originid'));
$objectsrc->fetch_thirdparty(); $objectsrc->fetch_thirdparty();
$projectid = (!empty($objectsrc->fk_project)?$object->fk_project:''); $projectid = (!empty($objectsrc->fk_project)?$objectsrc->fk_project:'');
//$ref_client = (!empty($objectsrc->ref_client)?$object->ref_client:''); //$ref_client = (!empty($objectsrc->ref_client)?$object->ref_client:'');
$soc = $objectsrc->client; $soc = $objectsrc->client;