|
@@ -64,6 +64,17 @@ include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include,
|
|
|
* View
|
|
|
*/
|
|
|
|
|
|
+if (empty($object->id)) {
|
|
|
+ llxHeader();
|
|
|
+ $head = facture_prepare_head($object);
|
|
|
+ $langs->load('errors');
|
|
|
+ echo dol_get_fiche_head($head, 'note', $langs->trans("InvoiceCustomer"), -1, 'bill'),
|
|
|
+ '<div class="error">' . $langs->trans("ErrorRecordNotFound") . '</div>';
|
|
|
+ llxFooter();
|
|
|
+ dol_shutdown();
|
|
|
+ exit;
|
|
|
+}
|
|
|
+
|
|
|
$title = $langs->trans('InvoiceCustomer')." - ".$langs->trans('Notes');
|
|
|
$helpurl = "EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes";
|
|
|
llxHeader('', $title, $helpurl);
|