Fix dash in incoterm label

This commit is contained in:
Laurent Destailleur
2016-10-02 16:50:28 +02:00
parent f92ca518f7
commit 0d9f28bd61

View File

@@ -3080,6 +3080,7 @@ abstract class CommonObject
/** /**
* Return incoterms informations * Return incoterms informations
* TODO Use a cache for label get
* *
* @return string incoterms info * @return string incoterms info
*/ */
@@ -3098,7 +3099,7 @@ abstract class CommonObject
} }
} }
$out .= ' - '.$this->location_incoterms; $out .= (($res->code && $this->location_incoterms)?' - ':'').$this->location_incoterms;
return $out; return $out;
} }