Product Purchases SubPanel not populated #5720
Labels
Area: Module
Issues & PRs related to modules that do not have specific label
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
The product is listed as a line item in the quote and quote's stage is set to Closed Accepted.
When trying to collapse Purchases SubPanel on the product details view nothing to see there.
Following error is logged:
[FATAL] Error running count query for AOS_Products List: Query Failed:(
SELECT count() c FROM (
SELECT
aos_quotes.,
accounts.id AS account_id,
accounts.name AS billing_account,
Possible Fix
I have commented out grouping clause:
--GROUP BY accounts.id
I don't vote for a fix like this but it surely made my subpanel populated.
It would be better to have grouping but solution like this one #2869 are simply not good practice and do not work for MSSQL.
Context
This bug is actually a very nasty one. Imagine sales guys willing to easily identify when a product has been sold last time and for what amount. Yes they may run some report but Purchases subpanel is made for this and it is not working.
Your Environment
The text was updated successfully, but these errors were encountered: