From 871df2a9de34573740e106f695517adc988afd2b Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 19 Jun 2025 12:39:31 +0200 Subject: [PATCH] Code documentation --- include/class/acc_account_ledger.class.php | 2 +- include/class/document_type.class.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/class/acc_account_ledger.class.php b/include/class/acc_account_ledger.class.php index 2e3aa4079..93f7048cf 100644 --- a/include/class/acc_account_ledger.class.php +++ b/include/class/acc_account_ledger.class.php @@ -345,7 +345,7 @@ class Acc_Account_Ledger /*! * \brief give the balance of an account - * + * \param $p_cond (text) a SQL Condition, * \return * balance of the account * diff --git a/include/class/document_type.class.php b/include/class/document_type.class.php index 170e81e24..df29d75b8 100644 --- a/include/class/document_type.class.php +++ b/include/class/document_type.class.php @@ -33,12 +33,16 @@ */ class Document_Type { + var $db; //!< Database conx + var $dt_id; //!< $dt_id (int) primary key of DOCUMENT_TYPE + var $dt_value; //!< $dt_value (text) description of document type + var $dt_prefix; //!< $dt_prefix (text) prefix to use for this /** document_type * \brief constructor * \param $p_cn database connx */ - function __construct($p_cn, $p_id = -1) + function __construct(Database $p_cn, $p_id = -1) { $this->db = $p_cn; $this->dt_id = $p_id;