Merge pull request #12458 from frederic34/doxygen_accountancy

doxygen accountancy class
This commit is contained in:
Laurent Destailleur 2019-11-16 23:31:56 +01:00 committed by GitHub
commit 7a4647b3fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 75 additions and 12 deletions

View File

@ -36,7 +36,7 @@ class AccountancySystem
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
public $error=''; public $error = '';
/** /**
* @var int ID * @var int ID
@ -48,7 +48,14 @@ class AccountancySystem
*/ */
public $fk_pcg_version; public $fk_pcg_version;
/**
* @var string pcg type
*/
public $pcg_type; public $pcg_type;
/**
* @var string pcg subtype
*/
public $pcg_subtype; public $pcg_subtype;
/** /**
@ -61,7 +68,14 @@ class AccountancySystem
*/ */
public $label; public $label;
/**
* @var string account number
*/
public $account_number; public $account_number;
/**
* @var string account parent
*/
public $account_parent; public $account_parent;
/** /**

View File

@ -42,8 +42,7 @@ class AccountingJournal extends CommonObject
public $fk_element = ''; public $fk_element = '';
/** /**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe * @var int 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
* @var int
*/ */
public $ismultientitymanaged = 0; public $ismultientitymanaged = 0;
@ -57,6 +56,9 @@ class AccountingJournal extends CommonObject
*/ */
public $rowid; public $rowid;
/**
* @var string Accounting journal code
*/
public $code; public $code;
/** /**
@ -64,9 +66,19 @@ class AccountingJournal extends CommonObject
*/ */
public $label; public $label;
public $nature; // 1:various operations, 2:sale, 3:purchase, 4:bank, 5:expense-report, 8:inventory, 9: has-new /**
* @var int 1:various operations, 2:sale, 3:purchase, 4:bank, 5:expense-report, 8:inventory, 9: has-new
*/
public $nature;
/**
* @var int is active or not
*/
public $active; public $active;
/**
* @var array array of lines
*/
public $lines; public $lines;
/** /**

View File

@ -38,7 +38,7 @@ class BookKeeping extends CommonObject
public $error; public $error;
/** /**
* @var string[] Error codes (or messages) * @var string[] Array of Error codes (or messages)
*/ */
public $errors = array(); public $errors = array();
@ -67,7 +67,14 @@ class BookKeeping extends CommonObject
*/ */
public $id; public $id;
/**
* @var string Date of source document, in db date NOT NULL
*/
public $doc_date; public $doc_date;
/**
* @var int Deadline for payment
*/
public $date_lim_reglement; public $date_lim_reglement;
/** /**
@ -119,9 +126,25 @@ class BookKeeping extends CommonObject
* @var string label operation * @var string label operation
*/ */
public $label_operation; public $label_operation;
/**
* @var float FEC:Debit
*/
public $debit; public $debit;
/**
* @var float FEC:Credit
*/
public $credit; public $credit;
/**
* @var float FEC:Amount (Not necessary)
*/
public $montant; public $montant;
/**
* @var string FEC:Sens (Not necessary)
*/
public $sens; public $sens;
/** /**
@ -129,9 +152,24 @@ class BookKeeping extends CommonObject
*/ */
public $fk_user_author; public $fk_user_author;
/**
* @var string key for import
*/
public $import_key; public $import_key;
/**
* @var string code journal
*/
public $code_journal; public $code_journal;
/**
* @var string label journal
*/
public $journal_label; public $journal_label;
/**
* @var int accounting transaction id
*/
public $piece_num; public $piece_num;
/** /**
@ -140,7 +178,6 @@ class BookKeeping extends CommonObject
public $picto = 'generic'; public $picto = 'generic';
/** /**
* Constructor * Constructor
* *

0
htdocs/install/mysql/migration/3.5.0-3.6.0.sql Executable file → Normal file
View File

0
htdocs/install/mysql/migration/3.6.0-3.7.0.sql Executable file → Normal file
View File

0
htdocs/install/mysql/migration/3.7.0-3.8.0.sql Executable file → Normal file
View File

0
htdocs/install/mysql/migration/repair.sql Executable file → Normal file
View File

View File

@ -50,7 +50,7 @@ CREATE TABLE llx_accounting_bookkeeping
code_journal varchar(32) NOT NULL, -- FEC:JournalCode code_journal varchar(32) NOT NULL, -- FEC:JournalCode
journal_label varchar(255), -- FEC:JournalLib journal_label varchar(255), -- FEC:JournalLib
date_validated datetime, -- FEC:ValidDate | if empty: movement not validated / if not empty: movement validated (No deleting / No modification) date_validated datetime, -- FEC:ValidDate | if empty: movement not validated / if not empty: movement validated (No deleting / No modification)
date_export datetime DEFAULT NULL, -- date_export datetime DEFAULT NULL, --
import_key varchar(14), import_key varchar(14),
extraparams varchar(255) -- for other parameters with json format extraparams varchar(255) -- for other parameters with json format
) ENGINE=innodb; ) ENGINE=innodb;