@@ -297,7 +297,7 @@ |
||
297 | 297 | /** |
298 | 298 | * Update object into database |
299 | 299 | * |
300 | - * @param User $user User that modifies |
|
300 | + * @param integer $user User that modifies |
|
301 | 301 | * @param int $notrigger 0=launch triggers after, 1=disable triggers |
302 | 302 | * @return int <0 if KO, >0 if OK |
303 | 303 | */ |
@@ -297,7 +297,7 @@ |
||
297 | 297 | /** |
298 | 298 | * Update object into database |
299 | 299 | * |
300 | - * @param User $user User that modifies |
|
300 | + * @param integer $user User that modifies |
|
301 | 301 | * @param int $notrigger 0=launch triggers after, 1=disable triggers |
302 | 302 | * @return int <0 if KO, >0 if OK |
303 | 303 | */ |
@@ -673,7 +673,7 @@ |
||
673 | 673 | * Return array of children warehouses ids from $id warehouse (recursive function) |
674 | 674 | * |
675 | 675 | * @param int $id id parent warehouse |
676 | - * @param array() $TChildWarehouses array which will contain all children (param by reference) |
|
676 | + * @param integer[] $TChildWarehouses array which will contain all children (param by reference) |
|
677 | 677 | * @return array() $TChildWarehouses array which will contain all children |
678 | 678 | */ |
679 | 679 | function get_children_warehouses($id, &$TChildWarehouses) { |
@@ -650,16 +650,16 @@ |
||
650 | 650 | * Return list of tasks for all projects or for one particular project |
651 | 651 | * Sort order is on project, then on position of task, and last on start date of first level task |
652 | 652 | * |
653 | - * @param User $usert Object user to limit tasks affected to a particular user |
|
654 | - * @param User $userp Object user to limit projects of a particular user and public projects |
|
653 | + * @param integer $usert Object user to limit tasks affected to a particular user |
|
654 | + * @param integer $userp Object user to limit projects of a particular user and public projects |
|
655 | 655 | * @param int $projectid Project id |
656 | 656 | * @param int $socid Third party id |
657 | 657 | * @param int $mode 0=Return list of tasks and their projects, 1=Return projects and tasks if exists |
658 | 658 | * @param string $filteronprojref Filter on project ref |
659 | - * @param string $filteronprojstatus Filter on project status |
|
659 | + * @param integer $filteronprojstatus Filter on project status |
|
660 | 660 | * @param string $morewherefilter Add more filter into where SQL request (must start with ' AND ...') |
661 | - * @param string $filteronprojuser Filter on user that is a contact of project |
|
662 | - * @param string $filterontaskuser Filter on user assigned to task |
|
661 | + * @param integer $filteronprojuser Filter on user that is a contact of project |
|
662 | + * @param integer $filterontaskuser Filter on user assigned to task |
|
663 | 663 | * @return array Array of tasks |
664 | 664 | */ |
665 | 665 | function getTasksArray($usert=0, $userp=0, $projectid=0, $socid=0, $mode=0, $filteronprojref='', $filteronprojstatus=-1, $morewherefilter='',$filteronprojuser=0,$filterontaskuser=0) |
@@ -232,7 +232,7 @@ |
||
232 | 232 | * Delete account <b>Warning: Deprecated</b> |
233 | 233 | * |
234 | 234 | * @param int $id Account ID |
235 | - * @return array |
|
235 | + * @return integer |
|
236 | 236 | * |
237 | 237 | * @url DELETE user/{id} |
238 | 238 | */ |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | * Returns the following order reference not used depending on the numbering model activated |
644 | 644 | * defined within COMMANDE_SUPPLIER_ADDON_NUMBER |
645 | 645 | * |
646 | - * @param Company $soc company object |
|
646 | + * @param Societe $soc company object |
|
647 | 647 | * @return string free reference for the invoice |
648 | 648 | */ |
649 | 649 | public function getNextNumRef($soc) |
@@ -1337,9 +1337,9 @@ discard block |
||
1337 | 1337 | * @param bool $notrigger Disable triggers |
1338 | 1338 | * @param int $date_start Date start of service |
1339 | 1339 | * @param int $date_end Date end of service |
1340 | - * @param array $array_options extrafields array |
|
1340 | + * @param integer $array_options extrafields array |
|
1341 | 1341 | * @param string $fk_unit Code of the unit to use. Null to use the default one |
1342 | - * @param string $pu_ht_devise Amount in currency |
|
1342 | + * @param integer $pu_ht_devise Amount in currency |
|
1343 | 1343 | * @param string $origin 'order', ... |
1344 | 1344 | * @param int $origin_id Id of origin object |
1345 | 1345 | * @return int <=0 if KO, >0 if OK |
@@ -1580,7 +1580,7 @@ discard block |
||
1580 | 1580 | * @param int $product Id of product to dispatch |
1581 | 1581 | * @param double $qty Qty to dispatch |
1582 | 1582 | * @param int $entrepot Id of warehouse to add product |
1583 | - * @param double $price Unit Price for PMP value calculation (Unit price without Tax and taking into account discount) |
|
1583 | + * @param integer $price Unit Price for PMP value calculation (Unit price without Tax and taking into account discount) |
|
1584 | 1584 | * @param string $comment Comment for stock movement |
1585 | 1585 | * @param date $eatby eat-by date |
1586 | 1586 | * @param date $sellby sell-by date |
@@ -2267,17 +2267,17 @@ discard block |
||
2267 | 2267 | * @param double $qty Quantity |
2268 | 2268 | * @param double $remise_percent Pourcentage de remise de la ligne |
2269 | 2269 | * @param double $txtva Taux TVA |
2270 | - * @param double $txlocaltax1 Localtax1 tax |
|
2271 | - * @param double $txlocaltax2 Localtax2 tax |
|
2270 | + * @param integer $txlocaltax1 Localtax1 tax |
|
2271 | + * @param integer $txlocaltax2 Localtax2 tax |
|
2272 | 2272 | * @param double $price_base_type Type of price base |
2273 | 2273 | * @param int $info_bits Miscellaneous informations |
2274 | 2274 | * @param int $type Type of line (0=product, 1=service) |
2275 | 2275 | * @param int $notrigger Disable triggers |
2276 | 2276 | * @param timestamp $date_start Date start of service |
2277 | 2277 | * @param timestamp $date_end Date end of service |
2278 | - * @param array $array_options Extrafields array |
|
2278 | + * @param integer $array_options Extrafields array |
|
2279 | 2279 | * @param string $fk_unit Code of the unit to use. Null to use the default one |
2280 | - * @param double $pu_ht_devise Unit price in currency |
|
2280 | + * @param integer $pu_ht_devise Unit price in currency |
|
2281 | 2281 | * @return int < 0 if error, > 0 if ok |
2282 | 2282 | */ |
2283 | 2283 | public function updateline($rowid, $desc, $pu, $qty, $remise_percent, $txtva, $txlocaltax1=0, $txlocaltax2=0, $price_base_type='HT', $info_bits=0, $type=0, $notrigger=false, $date_start='', $date_end='', $array_options=0, $fk_unit=null, $pu_ht_devise = 0) |
@@ -2720,7 +2720,7 @@ discard block |
||
2720 | 2720 | * Return the max number delivery delay in day |
2721 | 2721 | * |
2722 | 2722 | * @param Translate $langs Language object |
2723 | - * @return Translated string |
|
2723 | + * @return string string |
|
2724 | 2724 | */ |
2725 | 2725 | public function getMaxDeliveryTimeDay($langs) |
2726 | 2726 | { |
@@ -1302,19 +1302,19 @@ discard block |
||
1302 | 1302 | * @param double $txlocaltax2 LocalTax2 Rate |
1303 | 1303 | * @param double $qty Quantite |
1304 | 1304 | * @param int $fk_product Id du produit/service predefini |
1305 | - * @param double $remise_percent Pourcentage de remise de la ligne |
|
1305 | + * @param integer $remise_percent Pourcentage de remise de la ligne |
|
1306 | 1306 | * @param date $date_start Date de debut de validite du service |
1307 | 1307 | * @param date $date_end Date de fin de validite du service |
1308 | - * @param string $ventil Code de ventilation comptable |
|
1308 | + * @param integer $ventil Code de ventilation comptable |
|
1309 | 1309 | * @param int $info_bits Bits de type de lines |
1310 | 1310 | * @param string $price_base_type HT ou TTC |
1311 | 1311 | * @param int $type Type of line (0=product, 1=service) |
1312 | 1312 | * @param int $rang Position of line |
1313 | 1313 | * @param int $notrigger Disable triggers |
1314 | - * @param array $array_options extrafields array |
|
1314 | + * @param integer $array_options extrafields array |
|
1315 | 1315 | * @param string $fk_unit Code of the unit to use. Null to use the default one |
1316 | 1316 | * @param int $origin_id id origin document |
1317 | - * @param double $pu_ht_devise Amount in currency |
|
1317 | + * @param integer $pu_ht_devise Amount in currency |
|
1318 | 1318 | * @return int >0 if OK, <0 if KO |
1319 | 1319 | * |
1320 | 1320 | * FIXME Add field ref (that should be named ref_supplier) and label into update. For example can be filled when product line created from order. |
@@ -1452,20 +1452,20 @@ discard block |
||
1452 | 1452 | * @param string $desc Description of line |
1453 | 1453 | * @param double $pu Prix unitaire (HT ou TTC selon price_base_type) |
1454 | 1454 | * @param double $vatrate VAT Rate |
1455 | - * @param double $txlocaltax1 LocalTax1 Rate |
|
1456 | - * @param double $txlocaltax2 LocalTax2 Rate |
|
1457 | - * @param double $qty Quantity |
|
1455 | + * @param integer $txlocaltax1 LocalTax1 Rate |
|
1456 | + * @param integer $txlocaltax2 LocalTax2 Rate |
|
1457 | + * @param integer $qty Quantity |
|
1458 | 1458 | * @param int $idproduct Id produit |
1459 | 1459 | * @param double $price_base_type HT or TTC |
1460 | 1460 | * @param int $info_bits Miscellaneous informations of line |
1461 | 1461 | * @param int $type Type of line (0=product, 1=service) |
1462 | - * @param double $remise_percent Pourcentage de remise de la ligne |
|
1462 | + * @param integer $remise_percent Pourcentage de remise de la ligne |
|
1463 | 1463 | * @param int $notrigger Disable triggers |
1464 | 1464 | * @param timestamp $date_start Date start of service |
1465 | 1465 | * @param timestamp $date_end Date end of service |
1466 | - * @param array $array_options extrafields array |
|
1466 | + * @param integer $array_options extrafields array |
|
1467 | 1467 | * @param string $fk_unit Code of the unit to use. Null to use the default one |
1468 | - * @param double $pu_ht_devise Amount in currency |
|
1468 | + * @param integer $pu_ht_devise Amount in currency |
|
1469 | 1469 | * @return int <0 if KO, >0 if OK |
1470 | 1470 | */ |
1471 | 1471 | public function updateline($id, $desc, $pu, $vatrate, $txlocaltax1=0, $txlocaltax2=0, $qty=1, $idproduct=0, $price_base_type='HT', $info_bits=0, $type=0, $remise_percent=0, $notrigger=false, $date_start='', $date_end='', $array_options=0, $fk_unit = null, $pu_ht_devise=0) |
@@ -2456,7 +2456,7 @@ discard block |
||
2456 | 2456 | /** |
2457 | 2457 | * Deletes a line |
2458 | 2458 | * |
2459 | - * @param bool|int $notrigger 1=Does not execute triggers, 0= execute triggers |
|
2459 | + * @param integer $notrigger 1=Does not execute triggers, 0= execute triggers |
|
2460 | 2460 | * @return int 0 if KO, 1 if OK |
2461 | 2461 | */ |
2462 | 2462 | public function delete($notrigger = 0) |
@@ -570,8 +570,8 @@ |
||
570 | 570 | * Show table for lines |
571 | 571 | * |
572 | 572 | * @param TCPDF $pdf Object PDF |
573 | - * @param string $tab_top Top position of table |
|
574 | - * @param string $tab_height Height of table (rectangle) |
|
573 | + * @param integer $tab_top Top position of table |
|
574 | + * @param integer $tab_height Height of table (rectangle) |
|
575 | 575 | * @param int $nexY Y (not used) |
576 | 576 | * @param Translate $outputlangs Langs object |
577 | 577 | * @param int $hidetop 1=Hide top bar of array and title, 0=Hide nothing, -1=Hide only title |
@@ -1676,7 +1676,7 @@ |
||
1676 | 1676 | * @param array $file File |
1677 | 1677 | * @param string $modulepart propal, facture, facture_fourn, ... |
1678 | 1678 | * @param string $relativepath Relative path of docs |
1679 | - * @param string $ruleforpicto Rule for picto: 0=Preview picto, 1=Use picto of mime type of file) |
|
1679 | + * @param integer $ruleforpicto Rule for picto: 0=Preview picto, 1=Use picto of mime type of file) |
|
1680 | 1680 | * @param string $param More param on http links |
1681 | 1681 | * @return string $out Output string with HTML |
1682 | 1682 | */ |