Update supplier_proposal.class.php
This commit is contained in:
parent
73f6c9210f
commit
c6f57c46a8
@ -1849,8 +1849,8 @@ class SupplierProposal extends CommonObject
|
|||||||
public function createPriceFournisseur($product, $user)
|
public function createPriceFournisseur($product, $user)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
if(!empty($conf->multicurrency->enabled)) include_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
|
|
||||||
$price=price2num($product->subprice*$product->qty, 'MU');
|
$price=price2num($product->subprice*$product->qty, 'MU');
|
||||||
$qty=price2num($product->qty);
|
$qty=price2num($product->qty);
|
||||||
$unitPrice = price2num($product->subprice, 'MU');
|
$unitPrice = price2num($product->subprice, 'MU');
|
||||||
$now=dol_now();
|
$now=dol_now();
|
||||||
@ -1865,9 +1865,10 @@ class SupplierProposal extends CommonObject
|
|||||||
$product->tva_tx,
|
$product->tva_tx,
|
||||||
$user->id
|
$user->id
|
||||||
);
|
);
|
||||||
if(!empty($conf->multicurrency->enabled)) {
|
if (!empty($conf->multicurrency->enabled)) {
|
||||||
$multicurrency = new MultiCurrency($this->db); //need to fetch because empty fk_multicurrency and rate
|
if (!empty($product->multicurrency_code)) {
|
||||||
if(!empty($product->multicurrency_code)) {
|
include_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
|
||||||
|
$multicurrency = new MultiCurrency($this->db); //need to fetch because empty fk_multicurrency and rate
|
||||||
$multicurrency->fetch(0, $product->multicurrency_code);
|
$multicurrency->fetch(0, $product->multicurrency_code);
|
||||||
if(! empty($multicurrency->id)) {
|
if(! empty($multicurrency->id)) {
|
||||||
$values[] = $multicurrency->id;
|
$values[] = $multicurrency->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user