Update supplier_proposal.class.php
This commit is contained in:
parent
bc4ce6725a
commit
5e2dcf322c
@ -2998,7 +2998,8 @@ class SupplierProposalLine extends CommonObjectLine
|
|||||||
|
|
||||||
// if buy price not defined, define buyprice as configured in margin admin
|
// if buy price not defined, define buyprice as configured in margin admin
|
||||||
if ($this->pa_ht == 0) {
|
if ($this->pa_ht == 0) {
|
||||||
if (($result = $this->defineBuyPrice($this->subprice, $this->remise_percent, $this->fk_product)) < 0) {
|
$result = $this->defineBuyPrice($this->subprice, $this->remise_percent, $this->fk_product);
|
||||||
|
if ($result < 0) {
|
||||||
return $result;
|
return $result;
|
||||||
} else {
|
} else {
|
||||||
$this->pa_ht = $result;
|
$this->pa_ht = $result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user