diff --git a/htdocs/core/lib/tax.lib.php b/htdocs/core/lib/tax.lib.php index 0050910fced..ab156d61a7b 100644 --- a/htdocs/core/lib/tax.lib.php +++ b/htdocs/core/lib/tax.lib.php @@ -109,7 +109,50 @@ function tax_prepare_head(ChargeSociales $object) * @param 'sell'|'buy' $direction 'sell' or 'buy' * @param int<0,12> $m Month * @param int<0,4> $q Quarter - * @return int<-3,-1>|array Array with details of VATs (per third party), -1 if no accountancy module, -2 if not yet developed, -3 if error + * @return int<-3,-1>|array< + * int|string, + * array{ + * totalht:float, + * vat:float, + * localtax1:float, + * localtax2:float, + * dtotal_ttc:float[], + * dtype:int[], + * datef:int[], + * datep:int[], + * company_name:string[], + * company_id:int[], + * company_alias:string[], + * company_email:string[], + * company_tva_intra:string[], + * company_client:int[], + * company_fournisseur:int[], + * company_customer_code:string[], + * company_supplier_code:string[], + * company_customer_accounting_code:string[], + * company_supplier_accounting_code:string[], + * company_status:int[], + * user_id:int[], + * drate:string[], + * ddate_start: int[], + * ddate_end: int[], + * facid: int[], + * facnum: string[], + * type: int[], + * ftotal_ttc: float[], + * descr: string[], + * totalht_list: string[], + * vat_list: float[], + * localtax1_list: float[], + * localtax2_list: float[], + * pid: int[], + * pref: string[], + * ptype: int[], + * payment_id: int[], + * payment_ref: string[], + * payment_amount: float[] + * } + * > Array with details of VATs (per third party), -1 if no accountancy module, -2 if not yet developed, -3 if error */ function tax_by_thirdparty($type, $db, $y, $date_start, $date_end, $modetax, $direction, $m = 0, $q = 0) { diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index 92c95699183..4919c894cf4 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -291,6 +291,33 @@ class Ticket extends CommonObject */ // BEGIN MODULEBUILDER PROPERTIES + /** + * @var array< + * string, + * array{ + * type: string, + * label: string, + * enabled: int<0, 2>|string, + * position: int, + * notnull?: int, + * visible: int<-2, 5>|string, + * noteditable?: int<0, 1>, + * default?: string, + * index?: int, + * foreignkey?: string, + * searchall?: int<0, 1>, + * isameasure?: int<0, 1>, + * css?: string, + * csslist?: string, + * help?: string, + * showoncombobox?: int<0, 2>, + * disabled?: int<0, 1>, + * arrayofkeyval?: array, + * comment?: string, + * validate?: int<0, 1> + * } + * > + */ public $fields = array( 'rowid' => array('type' => 'integer', 'label' => 'TechnicalID', 'visible' => -2, 'enabled' => 1, 'position' => 1, 'notnull' => 1, 'index' => 1, 'comment' => "Id"), 'entity' => array('type' => 'integer', 'label' => 'Entity', 'visible' => 0, 'enabled' => 1, 'position' => 5, 'notnull' => 1, 'index' => 1),