Merge pull request #5562 from atm-florian/3.9
FIX: incoterms do not output into crabe invoice PDF
This commit is contained in:
commit
a40ea9387b
@ -337,6 +337,11 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$height_incoterms = 0;
|
$height_incoterms = 0;
|
||||||
if ($conf->incoterm->enabled)
|
if ($conf->incoterm->enabled)
|
||||||
{
|
{
|
||||||
|
if (is_object($object->thirdparty))
|
||||||
|
{
|
||||||
|
$object->fk_incoterms=$object->thirdparty->fk_incoterms;
|
||||||
|
$object->location_incoterms=$object->thirdparty->location_incoterms;
|
||||||
|
}
|
||||||
$desc_incoterms = $object->getIncotermsForPDF();
|
$desc_incoterms = $object->getIncotermsForPDF();
|
||||||
if ($desc_incoterms)
|
if ($desc_incoterms)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user