Merge pull request #26061 from elkoiko/undefined-property-pa_ht-class-contrat

fix: Undefined property: Contrat::$pa_ht
This commit is contained in:
Laurent Destailleur 2023-09-28 22:53:54 +02:00 committed by GitHub
commit 54f5317eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {