Fix scrutinizer

This commit is contained in:
Laurent Destailleur 2022-12-28 02:54:35 +01:00
parent 120dd6319f
commit 547dee7b41
2 changed files with 5 additions and 7 deletions

View File

@ -8,10 +8,9 @@ build:
override: override:
- command: php-scrutinizer-run - command: php-scrutinizer-run
idle_timeout: 8000 idle_timeout: 8000
- php-scrutinizer-run --sub-project-dir=htdocs/admin #- php-scrutinizer-run --sub-project-dir=htdocs/admin
imports: imports:
- javascript
- php - php
filter: filter:

View File

@ -2572,14 +2572,13 @@ class ExpenseReport extends CommonObject
* \brief Compute the cost of the kilometers expense based on the number of kilometers and the vehicule category * \brief Compute the cost of the kilometers expense based on the number of kilometers and the vehicule category
* *
* @param int $fk_cat Category of the vehicule used * @param int $fk_cat Category of the vehicule used
* @param real $qty Number of kilometers * @param float $qty Number of kilometers
* @param real $tva VAT rate * @param float $tva VAT rate
* @return int <0 if KO, total ttc if OK * @return int <0 if KO, total ttc if OK
*/ */
public function computeTotalKm($fk_cat, $qty, $tva) public function computeTotalKm($fk_cat, $qty, $tva)
{ {
global $langs,$user,$db,$conf; global $langs, $db, $conf;
$cumulYearQty = 0; $cumulYearQty = 0;
$ranges = array(); $ranges = array();
@ -2828,7 +2827,7 @@ class ExpenseReportLine extends CommonObjectLine
*/ */
public function insert($notrigger = 0, $fromaddline = false) public function insert($notrigger = 0, $fromaddline = false)
{ {
global $langs, $user, $conf; global $user, $conf;
$error = 0; $error = 0;