From 46b0545c4a8ce13099ba1ba76daa334f2bd81eb1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 9 May 2019 17:26:06 +0200 Subject: [PATCH] Debug module reception --- htdocs/admin/reception_setup.php | 13 +++++-------- htdocs/langs/en_US/receptions.lang | 9 ++++++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/htdocs/admin/reception_setup.php b/htdocs/admin/reception_setup.php index a32d95e9c5e..f97c1d7823b 100644 --- a/htdocs/admin/reception_setup.php +++ b/htdocs/admin/reception_setup.php @@ -16,8 +16,8 @@ */ /** - * \file htdocs/admin/confexped.php - * \ingroup produit + * \file htdocs/admin/reception_setup.php + * \ingroup reception * \brief Page to setup reception module */ @@ -27,13 +27,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/reception.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php'; require_once DOL_DOCUMENT_ROOT.'/reception/class/reception.class.php'; -$langs->load("admin"); -$langs->load("receptions"); -$langs->load('other'); +$langs->loadLangs(array("admin", "receptions", 'other')); -if (!$user->admin) - accessforbidden(); +if (!$user->admin) accessforbidden(); $action=GETPOST('action', 'alpha'); $value=GETPOST('value', 'alpha'); @@ -225,7 +222,7 @@ clearstatcache(); foreach ($dirmodels as $reldir) { $dir = dol_buildpath($reldir."core/modules/reception/"); - + if (is_dir($dir)) { $handle = opendir($dir); diff --git a/htdocs/langs/en_US/receptions.lang b/htdocs/langs/en_US/receptions.lang index 7fd8ba25202..0847d7550fc 100644 --- a/htdocs/langs/en_US/receptions.lang +++ b/htdocs/langs/en_US/receptions.lang @@ -1,10 +1,11 @@ # Dolibarr language file - Source file is en_US - receptions +ReceptionsSetup=Product Reception setup RefReception=Ref. reception Reception=Reception Receptions=Receptions AllReceptions=All Receptions -Reception=Reception -Receptions=Receptions +Reception=Product reception +Receptions=Reception ShowReception=Show Receptions ReceptionsArea=Receptions area ListOfReceptions=List of receptions @@ -39,4 +40,6 @@ ReceptionCreationIsDoneFromOrder=For the moment, creation of a new reception is ReceptionLine=Reception line ProductQtyInReceptionAlreadySent=Product quantity from open sales order already sent ProductQtyInSuppliersReceptionAlreadyRecevied=Product quantity from open supplier order already received -ValidateOrderFirstBeforeReception=You must first validate the order before being able to make receptions. \ No newline at end of file +ValidateOrderFirstBeforeReception=You must first validate the order before being able to make receptions. +ReceptionsNumberingModules=Numbering module for receptions +ReceptionsReceiptModel=Document templates for receptions \ No newline at end of file