diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index b61d22a948a..ba1e48bb894 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3700,6 +3700,74 @@ else if ($id > 0 || ! empty($ref)) // Linked object block $somethingshown=$object->showLinkedObjectBlock(); + + if (empty($somethingshown) && $object->statut > 0) + { + + print ''.$langs->trans('LinkedOrder').''; + + print ''; + } // Link for paypal payment if (! empty($conf->paypal->enabled) && $object->statut != 0) { @@ -3708,7 +3776,7 @@ else if ($id > 0 || ! empty($ref)) } print '
'; - + // List of actions on element include_once DOL_DOCUMENT_ROOT.'/core/class/html.formactions.class.php'; $formactions=new FormActions($db); @@ -3839,7 +3907,7 @@ else if ($id > 0 || ! empty($ref)) $formmail->show_form(); print '
'; - } + } } else { @@ -3852,3 +3920,19 @@ dol_htmloutput_mesg('',$mesgs); llxFooter(); $db->close(); ?> + + diff --git a/htdocs/langs/en_US/compta.lang b/htdocs/langs/en_US/compta.lang index b33fde21141..fe41e11d08b 100644 --- a/htdocs/langs/en_US/compta.lang +++ b/htdocs/langs/en_US/compta.lang @@ -155,4 +155,6 @@ InvoiceDispatched=Dispatched invoices AccountancyDashboard=Accountancy summary ByProductsAndServices=By products and services RefExt=External ref -ToCreateAPredefinedInvoice=To create a predefined invoice, create a standard invoice then, without validating it, click onto button "Convert to predefined invoice". \ No newline at end of file +ToCreateAPredefinedInvoice=To create a predefined invoice, create a standard invoice then, without validating it, click onto button "Convert to predefined invoice". +LinkedOrder=linked to command + diff --git a/htdocs/langs/fr_FR/compta.lang b/htdocs/langs/fr_FR/compta.lang index 691ee95d388..362d38ffc8b 100644 --- a/htdocs/langs/fr_FR/compta.lang +++ b/htdocs/langs/fr_FR/compta.lang @@ -155,4 +155,6 @@ InvoiceDispatched=Factures ventilées AccountancyDashboard=Synthèse compta/tréso ByProductsAndServices=Par produits et services RefExt=Référence externe -ToCreateAPredefinedInvoice=Pour créer une facture prédéfinie, créer une facture standard puis sans la valider, cliquer sur le bouton "Convertir en facture prédéfine". \ No newline at end of file +ToCreateAPredefinedInvoice=Pour créer une facture prédéfinie, créer une facture standard puis sans la valider, cliquer sur le bouton "Convertir en facture prédéfine". +LinkedOrder=Lier à une commande +