From 04b811427ddefcaea5004b261963616a227f237a Mon Sep 17 00:00:00 2001 From: Thomas Couacault Date: Thu, 28 Sep 2023 15:38:16 +0200 Subject: [PATCH] fix: Undefined property: Contrat::$pa_ht --- htdocs/contrat/class/contrat.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index 0e23bbfe7f8..2ae01b2fc3a 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -1562,7 +1562,7 @@ class Contrat extends CommonObject // if buy price not defined, define buyprice as configured in margin admin - if ($this->pa_ht == 0) { + if ($pa_ht == 0) { if (($result = $this->defineBuyPrice($pu_ht, $remise_percent, $fk_product)) < 0) { return $result; } else {