Topic: Returning Ajax Failure on Add Item

https://github.com/FrontAccountingERP/FA/commit/6c40a3be4a79826087d7abbdd11b483f19decc2a

This latest commit is returning Ajax Failure on Add Item.

I tested this on one of my installations where some clients have more that 1000 sales orders.

This updated query is taking too long to return stk_code and hence the Ajax is failing and Add Items not working.

www.boxygen.pk

Re: Returning Ajax Failure on Add Item

It depends on the speed of your server and also your timeout in js.  Increase both..  May be your old version has more execution time

Subscription service based on FA
HRM CRM POS batch Themes

Re: Returning Ajax Failure on Add Item

How do you increase that time?

Re: Returning Ajax Failure on Add Item

In your php.ini:

max_execution_time = 60
post_max_size = 64M
upload_max_filesize = 64M

Do not forget to restart the web-server process.

Also check for the lines with the word "timeout" in the files js/JsHttpRequest.js and js/utils.js.