2
0
forked from Wavyzz/dolibarr

Work on split module fournisseur

This commit is contained in:
Alexandre SPANGARO
2021-04-11 04:24:21 +02:00
parent ac64938266
commit ce7c5a0c7b
36 changed files with 77 additions and 77 deletions

View File

@@ -168,7 +168,7 @@ class modService extends DolibarrModules
if (is_object($mysoc) && $usenpr) {
$this->export_fields_array[$r]['p.recuperableonly'] = 'NPR';
}
if (!empty($conf->fournisseur->enabled) || !empty($conf->margin->enabled)) {
if (!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) || !empty($conf->supplier_order->enabled) || !empty($conf->supplier_invoice->enabled) || !empty($conf->margin->enabled)) {
$this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('p.cost_price'=>'CostPrice'));
}
if (!empty($conf->stock->enabled)) {