Quantcast
Channel: Dolibarr ERP & CRM - OpenSource software - Forum
Viewing all articles
Browse latest Browse all 1543

Subject: Stocks disabled but Warehouse required - by: alejandror

$
0
0
It's an odd situation but I think it's wrong... Having stock module disabled... when you use a previously defined product inside a new supplier invoice you can't validate the invoice as you are required to asign the warehouse to "decrease?" stock ??...... so I was looking to see if I could find the cause.... I found this, inside ..\fourn\facture\fiche.php [code] // Check parameters if (! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_BILL) && $object->hasProductsOrServices(1)) { $langs->load("stocks"); if (! $idwarehouse || $idwarehouse == -1) { $error++; $errors[]=$langs->trans('ErrorFieldRequired',$langs->transnoentitiesnoconv("Warehouse")); $action=''; } } [/code] meanwhile workarround can be done by enabling stock control module to be able to configure it, and change the switch "Increase real stocks on suppliers invoices/credit notes validation" to NO (switch enabled by deffault).... then you can disable stck module again and everything is ok when creating and validating supplier's invoices Alejandro

Viewing all articles
Browse latest Browse all 1543

Trending Articles