diff --git a/include/param_sec.inc.php b/include/param_sec.inc.php index 83c60201f..9daaca5c8 100644 --- a/include/param_sec.inc.php +++ b/include/param_sec.inc.php @@ -71,8 +71,8 @@ if ( ! isset($_REQUEST['action'])) $MaxUser = Database::num_row($user_sql); - - echo '
| '.$header->get_header(0).' | '; echo ''.$header->get_header(1).' | '; diff --git a/include/widget/invoice/invoice.php b/include/widget/invoice/invoice.php index f710f9693..1f7467dc8 100644 --- a/include/widget/invoice/invoice.php +++ b/include/widget/invoice/invoice.php @@ -28,13 +28,26 @@ namespace Noalyss\Widget; */ class Invoice extends Widget { + /** + * @brief return the constant array Tiers + * @return array + */ static function getConstantTiers() : array { return ['S' => _("Fournisseurs"), "C" => _("Clients")];; } + /** + * @brief return the constant array Limit + * @return array + */ static function getConstantLimit() :array { return ['P' => _("Prochaines factures"), "R" => "facture en retard",'T'=>_("Aujourd'hui")]; } + + /** + * @brief let choice what to display + * @return void + */ function input_parameter() { $tiers = new \ISelect('tiers'); @@ -55,6 +68,10 @@ class Invoice extends Widget } + /** + * @brief display the parameter + * @return void + */ function display_parameter() { $aParam = $this->get_parameter(); @@ -63,6 +80,11 @@ class Invoice extends Widget echo ''; } + /** + * @brief display the widget + * @return void + * @throws \Exception + */ function display() { $this->open_div();
|---|