[SOLVED] Saving orders slow without associated companies

Di più
01/03/2013 17:11 #2757 da stefano5
If you create sales order without companies, for example in the case of sales to private individuals, the save process is very slow if there are many records in the database, because it is recalculated the association products-companies.
The problem is present in the function "recalculateAccToServices" and "recalculateAccToProducts".
To resolve this issue can be replaced, the line 160 and 192 of the file /modules/SalesOrder/SalesOrder.php the string

if ($ accountid =='') return;

with

if ($ accountid =='' || $ accountid == 0) return;

Goodbye
Stefano

Si prega Accedi a partecipare alla conversazione.

Di più
04/03/2013 12:39 #2760 da mapokid
Thanks for your report! We'll put your solution in the next version.

Si prega Accedi a partecipare alla conversazione.

Tempo creazione pagina: 0.148 secondi