Merge pull request #24062 from BB2A/FIX---php8-warnning-localtaxes_type

FIX - php8 warnning localtaxes_type
This commit is contained in:
Laurent Destailleur 2023-03-02 14:10:33 +01:00 committed by GitHub
commit 41d9463992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -917,8 +917,8 @@ class Propal extends CommonObject
$this->line->tva_tx = $txtva;
$this->line->localtax1_tx = $txlocaltax1;
$this->line->localtax2_tx = $txlocaltax2;
$this->line->localtax1_type = $localtaxes_type[0];
$this->line->localtax2_type = $localtaxes_type[2];
$this->line->localtax1_type = empty($localtaxes_type[0]) ? '' : $localtaxes_type[0];
$this->line->localtax2_type = empty($localtaxes_type[2]) ? '' : $localtaxes_type[2];
$this->line->remise_percent = $remise_percent;
$this->line->subprice = $pu_ht;
$this->line->info_bits = $info_bits;