From 118ff2d8d08f2a2a24ff798ba4045118fadec41a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 28 Sep 2018 10:42:42 +0200 Subject: [PATCH] phpcs --- htdocs/compta/compta-files.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/htdocs/compta/compta-files.php b/htdocs/compta/compta-files.php index 2a4af918234..9e00bf10ae0 100644 --- a/htdocs/compta/compta-files.php +++ b/htdocs/compta/compta-files.php @@ -1,7 +1,6 @@ - - * Copyright (C) 2004-2017 Laurent Destailleur + * Copyright (C) 2004-2018 Laurent Destailleur * Copyright (C) 2017 Pierre-Henry Favre * * This program is free software; you can redistribute it and/or modify @@ -18,9 +17,9 @@ * along with this program. If not, see . */ /** - * \file htdocs/compta/recap-compta.php - * \ingroup compta - * \brief Page de fiche recap customer + * \file htdocs/compta/compta-files.php + * \ingroup compta + * \brief Page to show portoflio and files of a thirdparty and download it */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; @@ -30,7 +29,9 @@ require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php'; require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php'; require_once DOL_DOCUMENT_ROOT.'/compta/sociales/class/chargesociales.class.php'; + restrictedArea($user,'banque'); + $langs->load("companies"); if (! empty($conf->facture->enabled)) $langs->load("bills"); $date_start =GETPOST('date_start','alpha'); @@ -67,15 +68,22 @@ $arrayfields=array( 'date'=>array('label'=>"Date", 'checked'=>1), //... ); + + /* * Actions */ + //$parameters = array('socid' => $id); //$reshook = $hookmanager->executeHooks('doActions', $parameters, $object); // Note that $object may have been modified by some hooks //if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); + + + /* - * Fetch the lines/files from db / + * View */ + $filesarray=array(); $result=false; if(($action=="searchfiles"||$action=="dl" ) && $date_start && $date_stop){