fix tva can be sometimes string instead float (#35835)

This commit is contained in:
Frédéric FRANCE
2025-10-18 19:12:01 +02:00
committed by GitHub
parent 3a8bab63cd
commit 18c29d0e40
10 changed files with 16 additions and 15 deletions

View File

@@ -1538,7 +1538,7 @@ class Commande extends CommonOrder
* @param string $desc Description of line
* @param float $pu_ht Unit price (without tax)
* @param float $qty Quantite
* @param float $txtva Force Vat rate, -1 for auto (Can contain the vat_src_code too with syntax '9.9 (CODE)')
* @param float|string $txtva Force Vat rate, -1 for auto (Can contain the vat_src_code too with syntax '9.9 (CODE)')
* @param float $txlocaltax1 Local tax 1 rate (deprecated, use instead txtva with code inside)
* @param float $txlocaltax2 Local tax 2 rate (deprecated, use instead txtva with code inside)
* @param int $fk_product Id of product
@@ -3101,7 +3101,7 @@ class Commande extends CommonOrder
* @param float $pu Unit price
* @param float $qty Quantity
* @param float $remise_percent Percent of discount
* @param float $txtva Taux TVA
* @param float|string $txtva VAT Rate (Can be '8.5', '8.5 (ABC)')
* @param float $txlocaltax1 Local tax 1 rate
* @param float $txlocaltax2 Local tax 2 rate
* @param string $price_base_type HT or TTC