Fix scrutinizer
This commit is contained in:
parent
120dd6319f
commit
547dee7b41
@ -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:
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user