PHP8.3 comptability, dynamic members

This commit is contained in:
sparkyx 2025-05-22 16:27:55 +02:00
parent cde20e383f
commit 34489f6875
5 changed files with 37 additions and 28 deletions

View file

@ -35,35 +35,35 @@ require_once NOALYSS_INCLUDE.'/database/operation_currency_sql.class.php';
class Acc_Ledger extends jrn_def_sql
{
var $id; /**!< jrn_def.jrn_def_id */
var $db; /**!< database connextion */
var $row; /**!< row of the ledger */
var $ledger_type; /**!< type of the ledger ACH ODS FIN VEN or GL */
var $nb; /**!< default number of rows by default 10 */
var $currency_id;/**!< $currency_id (int) SQL:CURRENCY.ID default 0 */
/**!< is_loaded true the ledger definition is loaded or false, it is not */
var $id; /*!< jrn_def.jrn_def_id */
var $db; /*!< database connextion */
var $row; /*!< row of the ledger */
var $ledger_type; /*!< type of the ledger ACH ODS FIN VEN or GL */
var $nb; /*!< default number of rows by default 10 */
var $currency_id;/*!< $currency_id (int) SQL:CURRENCY.ID default 0 */
/*!< is_loaded true the ledger definition is loaded or false, it is not */
protected $is_loaded ;
var $ledger_name;
var $jr_internal ; /**!< $jr_internal (string) internal number for an operation */
var $jr_id; /**!< $jr_id (int) SQL : PK JRN.JR_ID */
var $jrn_def_max_line_deb ; /**!< $jr_id (int) PK.JRN */
var $jrn_def_id; /**!< $jrn_def_id(INT) jrn_def.jrn_def_id */
var $jrn_def_name; /**!< $jrn_def_name(string) ledger name */
var $jrn_def_ech_lib; /**!< $jrn_def_ech_lib (string) text for limit date */
var $jrn_def_type; /**!< $jrn_def_type(string) type of the ledger ACH,VEN,ODS,FIN */
var $jrn_def_pj_pref; /**!< $jrn_def_pj_pref(string) prefix for receipt */
var $jrn_deb_max_line;/**!< $jrn_deb_max_line(int) max rows to display*/
var $jrn_def_description; /**!< $jrn_def_description(string) ledger description */
var $jrn_enable; /**!< $jrn_enable (0 or 1)0:ledger not available, 1:ledger available */
var $jrn_def_negative_amount; /**!< $jrn_def_negative_amount (0-1) 0: ledger use positive or negative amount, 1: ledger should use negative amount */
var $jrn_def_negative_warning; /**!<$jrn_def_negative_warning (string) string to display if the amount is not positive (see $jrn_def_negative_amount) */
var $jrn_def_quantity; /**!< $jrn_def_quantity (0-1) 0 no quantity for operations
var $jr_internal ; /*!< $jr_internal (string) internal number for an operation */
var $jr_id; /*!< $jr_id (int) SQL : PK JRN.JR_ID */
var $jrn_def_max_line_deb ; /*!< $jr_id (int) PK.JRN */
var $jrn_def_id; /*!< $jrn_def_id(INT) jrn_def.jrn_def_id */
var $jrn_def_name; /*!< $jrn_def_name(string) ledger name */
var $jrn_def_ech_lib; /*!< $jrn_def_ech_lib (string) text for limit date */
var $jrn_def_type; /*!< $jrn_def_type(string) type of the ledger ACH,VEN,ODS,FIN */
var $jrn_def_pj_pref; /*!< $jrn_def_pj_pref(string) prefix for receipt */
var $jrn_deb_max_line;/*!< $jrn_deb_max_line(int) max rows to display*/
var $jrn_def_description; /*!< $jrn_def_description(string) ledger description */
var $jrn_enable; /*!< $jrn_enable (0 or 1)0:ledger not available, 1:ledger available */
var $jrn_def_negative_amount; /*!< $jrn_def_negative_amount (0-1) 0: ledger use positive or negative amount, 1: ledger should use negative amount */
var $jrn_def_negative_warning; /*!<$jrn_def_negative_warning (string) string to display if the amount is not positive (see $jrn_def_negative_amount) */
var $jrn_def_quantity; /*!< $jrn_def_quantity (0-1) 0 no quantity for operations
* 1 has quantity */
var $with_concerned; /**!< $with_concerned(bool) : true is operation comes with
var $with_concerned; /*!< $with_concerned(bool) : true is operation comes with
another one, */
var $jr_grpt_id ; /**! $jr_grpt_id (int) SQL JRN.JR_GRP_ID group rows
of an operations */
var $pj; /**!< $pj (string) nb receipt of the operation */
var $pj; /*!< $pj (string) nb receipt of the operation */
/**
* @brief construct
* @param $p_cn database connexion

View file

@ -30,10 +30,11 @@ require_once NOALYSS_INCLUDE.'/constant.php';
*/
class Anc_Group extends Anc_Print
{
var $db;
var $ga_id;
var $ga_description;
var $pa_id;
var $db; /*!< $db (Database) Database connexion */
var $ga_id; /*!< $ga_id (int) PK GROUPE_ANALYTIQUE.GA_ID */
var $ga_description; /*!< $ga_description (string) name of the group */
var $pa_id; /*!< $pa_id (int) id PLAN_ANALYTIC.PA_ID */
var $pa_name; /*!< $pa_name (string) name of the Analytic Axis */
function __construct ( $p_cn )
{

View file

@ -38,7 +38,7 @@ class Anc_Group_Operation
var $a_operation; /*!< array of operations */
var $date; /*!< date of the operations */
var $pa_id; /*!< the concerned pa_id */
var $nMaxRow; /*!< $nMaxRow (int) max row to display */
/*!\brief constructor */
function __construct($p_cn,$p_id=0)
{

View file

@ -39,6 +39,9 @@ class Anc_Key
{
private $key; /*! the distribution key */
protected $a_ledger;
protected $a_activity;
protected $a_row;
/**
*@brief Return the number of keys available.
* Return the number of keys available for the ledger given in parameter

View file

@ -29,6 +29,11 @@
class PDFBalance_simple extends PDF
{
var $dossier; /*!< $dossier (string) Title */
var $from_poste ; /*! $from_poste (text) lowest limit (alpha. order)*/
var $to_poste ; /*! $from_poste (text) highest limit (alpha. order)*/
var $from ; /*! $from(date dd.mm.yyyy) lowest date */
var $to; /*! $to (date dd.mm.yyyy) highest date */
/**
*@brief set_info(dossier,from poste,to poste, from periode, to periode)
*@param $p_from_poste start = poste