Fix #9302 MAIN_ENABLE_IMPORT_LINKED_OBJECT_LINES broken

This commit is contained in:
Laurent Destailleur 2018-09-04 11:23:28 +02:00
parent dc5d1432b1
commit 3ef808cb9b
2 changed files with 53 additions and 51 deletions

View File

@ -1178,6 +1178,8 @@ class Facture extends CommonInvoice
if ($add_save_lastsearch_values) $url.='&save_lastsearch_values=1'; if ($add_save_lastsearch_values) $url.='&save_lastsearch_values=1';
} }
if ($short) return $url;
$picto='bill'; $picto='bill';
if ($this->type == self::TYPE_REPLACEMENT) $picto.='r'; // Replacement invoice if ($this->type == self::TYPE_REPLACEMENT) $picto.='r'; // Replacement invoice
if ($this->type == self::TYPE_CREDIT_NOTE) $picto.='a'; // Credit note if ($this->type == self::TYPE_CREDIT_NOTE) $picto.='a'; // Credit note