Merge pull request #13691 from atm-florian/11.0

fix: avoid php notice
This commit is contained in:
Laurent Destailleur 2020-04-22 12:24:31 +02:00 committed by GitHub
commit 910c4144e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,7 +579,7 @@ class modService extends DolibarrModules
'sp.remise_percent'=>'DiscountQtyMin'
));
if ($conf->multicurrency->enabled)
if (!empty($conf->multicurrency->enabled))
{
$this->import_fields_array[$r] = array_merge($this->import_fields_array[$r], array(
'sp.fk_multicurrency'=>'CurrencyCodeId', //ideally this should be automatically obtained from the CurrencyCode on the next line
@ -616,7 +616,7 @@ class modService extends DolibarrModules
// TODO Make this field not required and calculate it from price and qty
'sp.remise_percent' => '20'
));
if ($conf->multicurrency->enabled)
if (!empty($conf->multicurrency->enabled))
{
$this->import_examplevalues_array[$r] = array_merge($this->import_examplevalues_array[$r], array(
'sp.fk_multicurrency'=>'eg: 2, rowid for code of multicurrency currency',