mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
fix: avoid php notice
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user