From 21b429836a24d60fafa91cde226818c82c72ee1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 22 Nov 2018 21:08:03 +0100 Subject: [PATCH 1/3] doc comment accountancycategory class --- htdocs/accountancy/class/accountancycategory.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/accountancy/class/accountancycategory.class.php b/htdocs/accountancy/class/accountancycategory.class.php index 043021df367..99b922419c9 100644 --- a/htdocs/accountancy/class/accountancycategory.class.php +++ b/htdocs/accountancy/class/accountancycategory.class.php @@ -78,7 +78,7 @@ class AccountancyCategory // extends CommonObject public $range_account; /** - * @var mixed Sample property 1 + * @var int $sens Sens of the account: 0: credit - debit, 1: debit - credit */ public $sens; @@ -722,8 +722,8 @@ class AccountancyCategory // extends CommonObject * @param string $date_end Date end * @param int $sens Sens of the account: 0: credit - debit, 1: debit - credit * @param string $thirdparty_code Thirdparty code - * @param string $month Specifig month - Can be empty - * @param string $year Specifig year - Can be empty + * @param int $month Specifig month - Can be empty + * @param int $year Specifig year - Can be empty * @return integer <0 if KO, >= 0 if OK */ public function getSumDebitCredit($cpt, $date_start, $date_end, $sens, $thirdparty_code='nofilter', $month=0, $year=0) From 295d082da12b67701df29da43a6010aa6964b680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 22 Nov 2018 22:56:38 +0100 Subject: [PATCH 2/3] Update accountancycategory.class.php --- htdocs/accountancy/class/accountancycategory.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/class/accountancycategory.class.php b/htdocs/accountancy/class/accountancycategory.class.php index 99b922419c9..9250d2190a9 100644 --- a/htdocs/accountancy/class/accountancycategory.class.php +++ b/htdocs/accountancy/class/accountancycategory.class.php @@ -717,7 +717,7 @@ class AccountancyCategory // extends CommonObject /** * Function to show result of an accounting account from the ledger with a direction and a period * - * @param int[array $cpt Accounting account or array of accounting account + * @param int|array $cpt Accounting account or array of accounting account * @param string $date_start Date start * @param string $date_end Date end * @param int $sens Sens of the account: 0: credit - debit, 1: debit - credit From d21abc2dc36783a6a2856453e4dc8dd3a25d3353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 22 Nov 2018 23:26:04 +0100 Subject: [PATCH 3/3] Update accountancycategory.class.php --- htdocs/accountancy/class/accountancycategory.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/class/accountancycategory.class.php b/htdocs/accountancy/class/accountancycategory.class.php index 9250d2190a9..5b3282a3b29 100644 --- a/htdocs/accountancy/class/accountancycategory.class.php +++ b/htdocs/accountancy/class/accountancycategory.class.php @@ -78,7 +78,7 @@ class AccountancyCategory // extends CommonObject public $range_account; /** - * @var int $sens Sens of the account: 0: credit - debit, 1: debit - credit + * @var int Sens of the account: 0: credit - debit, 1: debit - credit */ public $sens;