@@ -241,12 +241,12 @@ |
||
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | /** |
| 244 | - * Delete a language for this member type |
|
| 245 | - * |
|
| 246 | - * @param string $langtodelete Language code to delete |
|
| 247 | - * @param User $user Object user making delete |
|
| 248 | - * @return int <0 if KO, >0 if OK |
|
| 249 | - */ |
|
| 244 | + * Delete a language for this member type |
|
| 245 | + * |
|
| 246 | + * @param string $langtodelete Language code to delete |
|
| 247 | + * @param User $user Object user making delete |
|
| 248 | + * @return int <0 if KO, >0 if OK |
|
| 249 | + */ |
|
| 250 | 250 | public function delMultiLangs($langtodelete, $user) |
| 251 | 251 | { |
| 252 | 252 | $sql = "DELETE FROM ".MAIN_DB_PREFIX."adherent_type_lang"; |
@@ -126,8 +126,8 @@ |
||
| 126 | 126 | public $usage_bill_time; // Is the time spent on project must be invoiced or not |
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | - * @var integer Event organization: Use Event Organization |
|
| 130 | - */ |
|
| 129 | + * @var integer Event organization: Use Event Organization |
|
| 130 | + */ |
|
| 131 | 131 | public $usage_organize_event; |
| 132 | 132 | |
| 133 | 133 | /** |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | return $solde; |
| 417 | 417 | } |
| 418 | 418 | |
| 419 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 419 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 420 | 420 | /** |
| 421 | 421 | * Total of the VAT from invoices emitted by the thirdparty. |
| 422 | 422 | * |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | */ |
| 426 | 426 | public function tva_sum_collectee($year = 0) |
| 427 | 427 | { |
| 428 | - // phpcs:enable |
|
| 428 | + // phpcs:enable |
|
| 429 | 429 | |
| 430 | 430 | $sql = "SELECT sum(f.total_tva) as amount"; |
| 431 | 431 | $sql .= " FROM ".MAIN_DB_PREFIX."facture as f WHERE f.paye = 1"; |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | } |
| 451 | 451 | } |
| 452 | 452 | |
| 453 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 453 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 454 | 454 | /** |
| 455 | 455 | * VAT payed |
| 456 | 456 | * |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | */ |
| 460 | 460 | public function tva_sum_payee($year = 0) |
| 461 | 461 | { |
| 462 | - // phpcs:enable |
|
| 462 | + // phpcs:enable |
|
| 463 | 463 | |
| 464 | 464 | $sql = "SELECT sum(f.total_tva) as total_tva"; |
| 465 | 465 | $sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn as f"; |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | } |
| 486 | 486 | |
| 487 | 487 | |
| 488 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 488 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 489 | 489 | /** |
| 490 | 490 | * Total of the VAT payed |
| 491 | 491 | * |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | */ |
| 495 | 495 | public function tva_sum_reglee($year = 0) |
| 496 | 496 | { |
| 497 | - // phpcs:enable |
|
| 497 | + // phpcs:enable |
|
| 498 | 498 | |
| 499 | 499 | $sql = "SELECT sum(f.amount) as amount"; |
| 500 | 500 | $sql .= " FROM ".MAIN_DB_PREFIX."tva as f"; |
@@ -665,7 +665,7 @@ discard block |
||
| 665 | 665 | } |
| 666 | 666 | } |
| 667 | 667 | |
| 668 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 668 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 669 | 669 | /** |
| 670 | 670 | * Update link between payment tva and line generate into llx_bank |
| 671 | 671 | * |
@@ -674,7 +674,7 @@ discard block |
||
| 674 | 674 | */ |
| 675 | 675 | public function update_fk_bank($id_bank) |
| 676 | 676 | { |
| 677 | - // phpcs:enable |
|
| 677 | + // phpcs:enable |
|
| 678 | 678 | $sql = 'UPDATE '.MAIN_DB_PREFIX.'tva SET fk_bank = '.(int) $id_bank; |
| 679 | 679 | $sql .= ' WHERE rowid = '.(int) $this->id; |
| 680 | 680 | $result = $this->db->query($sql); |
@@ -1764,14 +1764,14 @@ |
||
| 1764 | 1764 | } |
| 1765 | 1765 | |
| 1766 | 1766 | /** |
| 1767 | - * Export format : iSuite Expert |
|
| 1768 | - * |
|
| 1769 | - * by OpenSolus [https://opensolus.fr] |
|
| 1770 | - * |
|
| 1771 | - * @param array $objectLines data |
|
| 1772 | - * |
|
| 1773 | - * @return void |
|
| 1774 | - */ |
|
| 1767 | + * Export format : iSuite Expert |
|
| 1768 | + * |
|
| 1769 | + * by OpenSolus [https://opensolus.fr] |
|
| 1770 | + * |
|
| 1771 | + * @param array $objectLines data |
|
| 1772 | + * |
|
| 1773 | + * @return void |
|
| 1774 | + */ |
|
| 1775 | 1775 | public function exportiSuiteExpert($objectLines) |
| 1776 | 1776 | { |
| 1777 | 1777 | $this->separator = ';'; |
@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | } |
| 458 | 458 | } |
| 459 | 459 | |
| 460 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 460 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 461 | 461 | /** |
| 462 | 462 | * Update link between payment salary and line generate into llx_bank |
| 463 | 463 | * |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | */ |
| 467 | 467 | public function update_fk_bank($id_bank) |
| 468 | 468 | { |
| 469 | - // phpcs:enable |
|
| 469 | + // phpcs:enable |
|
| 470 | 470 | $sql = 'UPDATE '.MAIN_DB_PREFIX.'salary SET fk_bank = '.((int) $id_bank); |
| 471 | 471 | $sql .= " WHERE rowid = ".((int) $this->id); |
| 472 | 472 | $result = $this->db->query($sql); |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | return $this->LibStatut($this->paye, $mode, $alreadypaid); |
| 677 | 677 | } |
| 678 | 678 | |
| 679 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 679 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 680 | 680 | /** |
| 681 | 681 | * Renvoi le libelle d'un statut donne |
| 682 | 682 | * |
@@ -610,7 +610,7 @@ discard block |
||
| 610 | 610 | } |
| 611 | 611 | |
| 612 | 612 | |
| 613 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 613 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 614 | 614 | /** |
| 615 | 615 | * Mise a jour du lien entre le paiement de tva et la ligne dans llx_bank generee |
| 616 | 616 | * |
@@ -619,7 +619,7 @@ discard block |
||
| 619 | 619 | */ |
| 620 | 620 | public function update_fk_bank($id_bank) |
| 621 | 621 | { |
| 622 | - // phpcs:enable |
|
| 622 | + // phpcs:enable |
|
| 623 | 623 | $sql = "UPDATE ".MAIN_DB_PREFIX."payment_vat SET fk_bank = ".((int) $id_bank)." WHERE rowid = ".((int) $this->id); |
| 624 | 624 | |
| 625 | 625 | dol_syslog(get_class($this)."::update_fk_bank", LOG_DEBUG); |
@@ -644,7 +644,7 @@ discard block |
||
| 644 | 644 | return $this->LibStatut($this->statut, $mode); |
| 645 | 645 | } |
| 646 | 646 | |
| 647 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 647 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 648 | 648 | /** |
| 649 | 649 | * Renvoi le libelle d'un statut donne |
| 650 | 650 | * |
@@ -654,7 +654,7 @@ discard block |
||
| 654 | 654 | */ |
| 655 | 655 | public function LibStatut($status, $mode = 0) |
| 656 | 656 | { |
| 657 | - // phpcs:enable |
|
| 657 | + // phpcs:enable |
|
| 658 | 658 | global $langs; // TODO Renvoyer le libelle anglais et faire traduction a affichage |
| 659 | 659 | |
| 660 | 660 | $langs->load('compta'); |
@@ -916,7 +916,7 @@ |
||
| 916 | 916 | /** |
| 917 | 917 | * @var array $suffix2numAsked map HTTP query parameter suffixes (like '1_0') to line indices so that |
| 918 | 918 | * extrafields from HTTP query can be assigned to the correct dispatch line |
| 919 | - */ |
|
| 919 | + */ |
|
| 920 | 920 | $suffix2numAsked = array(); |
| 921 | 921 | $dispatchLines = array(); |
| 922 | 922 | |
@@ -368,15 +368,15 @@ |
||
| 368 | 368 | } |
| 369 | 369 | |
| 370 | 370 | /** |
| 371 | - * Create candidature object |
|
| 372 | - * |
|
| 373 | - * @param array $request_data Request datas |
|
| 374 | - * @return int ID of candidature |
|
| 375 | - * |
|
| 376 | - * @throws RestException |
|
| 377 | - * |
|
| 378 | - * @url POST candidature/ |
|
| 379 | - */ |
|
| 371 | + * Create candidature object |
|
| 372 | + * |
|
| 373 | + * @param array $request_data Request datas |
|
| 374 | + * @return int ID of candidature |
|
| 375 | + * |
|
| 376 | + * @throws RestException |
|
| 377 | + * |
|
| 378 | + * @url POST candidature/ |
|
| 379 | + */ |
|
| 380 | 380 | public function postCandidature($request_data = null) |
| 381 | 381 | { |
| 382 | 382 | if (!DolibarrApiAccess::$user->rights->recruitment->recruitmentjobposition->write) { |
@@ -469,12 +469,12 @@ discard block |
||
| 469 | 469 | } |
| 470 | 470 | |
| 471 | 471 | /** |
| 472 | - * Receives the order, dispatches products. |
|
| 472 | + * Receives the order, dispatches products. |
|
| 473 | 473 | * |
| 474 | - * Example: |
|
| 475 | - * <code> { |
|
| 476 | - * "closeopenorder": 1, |
|
| 477 | - * "comment": "", |
|
| 474 | + * Example: |
|
| 475 | + * <code> { |
|
| 476 | + * "closeopenorder": 1, |
|
| 477 | + * "comment": "", |
|
| 478 | 478 | * "lines": [{ |
| 479 | 479 | * "id": 14, |
| 480 | 480 | * "fk_product": 112, |
@@ -487,20 +487,20 @@ discard block |
||
| 487 | 487 | * "batch": 0, |
| 488 | 488 | * "notrigger": 0 |
| 489 | 489 | * }] |
| 490 | - * }</code> |
|
| 490 | + * }</code> |
|
| 491 | 491 | * |
| 492 | - * @param int $id Order ID |
|
| 493 | - * @param integer $closeopenorder Close order if everything is received {@required false} |
|
| 494 | - * @param string $comment Comment {@required false} |
|
| 495 | - * @param array $lines Array of product dispatches |
|
| 496 | - * |
|
| 497 | - * @url POST {id}/receive |
|
| 498 | - * |
|
| 499 | - * @return array |
|
| 500 | - * FIXME An error 403 is returned if the request has an empty body. |
|
| 501 | - * Error message: "Forbidden: Content type `text/plain` is not supported." |
|
| 502 | - * |
|
| 503 | - */ |
|
| 492 | + * @param int $id Order ID |
|
| 493 | + * @param integer $closeopenorder Close order if everything is received {@required false} |
|
| 494 | + * @param string $comment Comment {@required false} |
|
| 495 | + * @param array $lines Array of product dispatches |
|
| 496 | + * |
|
| 497 | + * @url POST {id}/receive |
|
| 498 | + * |
|
| 499 | + * @return array |
|
| 500 | + * FIXME An error 403 is returned if the request has an empty body. |
|
| 501 | + * Error message: "Forbidden: Content type `text/plain` is not supported." |
|
| 502 | + * |
|
| 503 | + */ |
|
| 504 | 504 | public function receiveOrder($id, $closeopenorder, $comment, $lines) |
| 505 | 505 | { |
| 506 | 506 | if (empty(DolibarrApiAccess::$user->rights->fournisseur->commande->creer) && empty(DolibarrApiAccess::$user->rights->supplier_order->creer)) { |