From 910daa24aa0c19d085ccd87888c17c033c71f720 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 9 Sep 2024 04:26:22 +0200 Subject: [PATCH] FIX wrong subprice if price base type is TTC (#30887) --- htdocs/commande/class/commande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index e6894450453..b0e04ba6af2 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -3241,7 +3241,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 = $pu_ht; $this->line->info_bits = $info_bits; $this->line->special_code = $special_code; $this->line->total_ht = $total_ht;