Fix : on update of an order line, the TTC price would be used as HT price (#33940)

* Fix : on update of an order line, the TTC price would be used as HT price

* Update commande.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
ThomasNgr-OpenDSI
2025-04-22 11:48:22 +02:00
committed by GitHub
parent 61df34acd6
commit 5e887e8850

View File

@@ -3281,7 +3281,7 @@ class Commande extends CommonOrder
$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 = $subprice;
$this->line->subprice = (float) $pu_ht;
$this->line->info_bits = $info_bits;
$this->line->special_code = $special_code;
$this->line->total_ht = $total_ht;