weex / phpBMS

web-based, free, business management software
http://phpbms.org
BSD 3-Clause "New" or "Revised" License
24 stars 12 forks source link

Sales Order screen doesn't show updated credit left in AR-type payment area #10

Closed weex closed 13 years ago

weex commented 13 years ago

If you create a sales order for a client with credit but who has open AR items, the "credit left (before order)" field doesn't reflect less available credit due to the open AR items.

weex commented 13 years ago

session_cache_limiter was set to private in invoices_client_info_ajax.php which meant the browser would only grab new data from the ajax call when the cache expired. It probably looked correct if you didn't create a sales order, receive and post a payment, and create another sales order.

Good accounting practices that separate entry and posting of invoices and receipts may make this situation pretty rare but if someone does have a higher volume of transactions and posting this is nice to have fixed.

It's fixed with: https://github.com/weex/phpBMS/commit/b41a2f47e95db29da83a6f3e102d46d74a1f861d