mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #21164 from fappels/15_fix_customerprice_warning
FIX: Customer price non numeric warning when 0 vat.
This commit is contained in:
commit
a70bb9e9b1
|
|
@ -135,7 +135,7 @@ class Productcustomerprice extends CommonObject
|
|||
$this->price_base_type = trim($this->price_base_type);
|
||||
}
|
||||
if (isset($this->tva_tx)) {
|
||||
$this->tva_tx = trim($this->tva_tx);
|
||||
$this->tva_tx = (float) $this->tva_tx;
|
||||
}
|
||||
if (isset($this->recuperableonly)) {
|
||||
$this->recuperableonly = trim($this->recuperableonly);
|
||||
|
|
@ -621,7 +621,7 @@ class Productcustomerprice extends CommonObject
|
|||
$this->price_base_type = trim($this->price_base_type);
|
||||
}
|
||||
if (isset($this->tva_tx)) {
|
||||
$this->tva_tx = trim($this->tva_tx);
|
||||
$this->tva_tx = (float) $this->tva_tx;
|
||||
}
|
||||
if (isset($this->recuperableonly)) {
|
||||
$this->recuperableonly = trim($this->recuperableonly);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user