[SOLVED] Saving orders slow without associated companies

More
01 Mar 2013 17:11 #2757 by 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

Please Log in to join the conversation.

More
04 Mar 2013 12:39 #2760 by mapokid
Thanks for your report! We'll put your solution in the next version.

Please Log in to join the conversation.

Time to create page: 0.148 seconds