From 4d515d660cfad3afe953f9180b4477bc780eff8a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 24 Oct 2014 14:17:36 +0200 Subject: [PATCH] New: Feature to link manually an order to an invoice does not disappear once link has been done. --- ChangeLog | 2 ++ htdocs/compta/facture.php | 24 ++++++++++++------- htdocs/fourn/facture/card.php | 18 +++++++++----- .../facture/tpl/linkedobjectblock.tpl.php | 1 + 4 files changed, 31 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9c9c2b8a039..350f5ba7b6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ English Dolibarr ChangeLog ***** ChangeLog for 3.7 compared to 3.6.* ***** For users: +- New: Feature to link manually an order to an invoice does not disappear once + link has been done. - New: Can set a color on user card (visible into agenda view). - New: extrafields for projects and tasks are exported to ODT documents. - New: Add number of active notification into tab title (like we do for notes and documents) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index eb4ca29f022..27dbcc5c83c 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3579,21 +3579,24 @@ if ($action == 'create') // Linked object block $somethingshown = $object->showLinkedObjectBlock(); - if (empty($somethingshown) && ! empty($conf->commande->enabled)) + $linktoelem=''; + + if (! empty($conf->commande->enabled)) { - print '
' . $langs->trans('LinkedOrder') . ''; + $linktoelem.=($linktoelem?'   ':'').'' . $langs->trans('LinkedOrder') . ''; print ' '; - print '