mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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 ($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;
|
||||
} else {
|
||||
$this->pa_ht = $result;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user