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
73f6c9210f
commit
c6f57c46a8
|
|
@ -1849,8 +1849,8 @@ class SupplierProposal extends CommonObject
|
|||
public function createPriceFournisseur($product, $user)
|
||||
{
|
||||
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);
|
||||
$unitPrice = price2num($product->subprice, 'MU');
|
||||
$now=dol_now();
|
||||
|
|
@ -1865,9 +1865,10 @@ class SupplierProposal extends CommonObject
|
|||
$product->tva_tx,
|
||||
$user->id
|
||||
);
|
||||
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($conf->multicurrency->enabled)) {
|
||||
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);
|
||||
if(! empty($multicurrency->id)) {
|
||||
$values[] = $multicurrency->id;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user