Fix: wrong supplier product price id
This commit is contained in:
parent
5e2cc05047
commit
77fea1983c
@ -409,7 +409,7 @@ if (empty($reshook))
|
|||||||
$localtax1_tx,
|
$localtax1_tx,
|
||||||
$localtax2_tx,
|
$localtax2_tx,
|
||||||
$idprod,
|
$idprod,
|
||||||
$productsupplier->id,
|
$productsupplier->product_fourn_price_id,
|
||||||
$productsupplier->fourn_ref,
|
$productsupplier->fourn_ref,
|
||||||
$remise_percent,
|
$remise_percent,
|
||||||
'HT',
|
'HT',
|
||||||
|
|||||||
@ -1532,6 +1532,7 @@ class Product extends CommonObject
|
|||||||
$obj->price = $price_result;
|
$obj->price = $price_result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->product_fourn_price_id = $obj->rowid;
|
||||||
$this->buyprice = $obj->price; // deprecated
|
$this->buyprice = $obj->price; // deprecated
|
||||||
$this->fourn_pu = $obj->price / $obj->quantity; // Unit price of product of supplier
|
$this->fourn_pu = $obj->price / $obj->quantity; // Unit price of product of supplier
|
||||||
$this->fourn_price_base_type = 'HT'; // Price base type
|
$this->fourn_price_base_type = 'HT'; // Price base type
|
||||||
@ -1577,6 +1578,7 @@ class Product extends CommonObject
|
|||||||
$obj->price = $price_result;
|
$obj->price = $price_result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->product_fourn_price_id = $obj->rowid;
|
||||||
$this->buyprice = $obj->price; // deprecated
|
$this->buyprice = $obj->price; // deprecated
|
||||||
$this->fourn_qty = $obj->quantity; // min quantity for price for a virtual supplier
|
$this->fourn_qty = $obj->quantity; // min quantity for price for a virtual supplier
|
||||||
$this->fourn_pu = $obj->price / $obj->quantity; // Unit price of product for a virtual supplier
|
$this->fourn_pu = $obj->price / $obj->quantity; // Unit price of product for a virtual supplier
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user