Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036024
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail Widgetsminorhave not tried2017-05-17 13:242017-05-17 13:30
ReporteraferrazView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionProfessional ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerNo
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036024: Error in Best Selling Store widget

DescriptionError in Best Selling Store widget
Steps To ReproduceRun Best Selling Store widget.

Following exception is raised:

Exception while fetching the summary columns of the widget Best Selling Store. It is not supported using as summaries columns that are defined using a subquery, or that are defined using a summary function.
 Query = select sum(quantity), sum(totalsales), sum(totaldiscount), sum(totaldiscpercentage)/count(*), sum(totalcost), sum(markup)/count(*), sum(grossmargin), sum(grossmarginpercentage)/count(*) from OrderLineTax olt where olt.salesOrderLine = sol)),2) as totalsales,
round(sum(tc.cost),2) as totalcost,
case when round(sum(tc.cost),2)>0 then round(sum(sol.lineNetAmount + (select sum(taxAmount) from OrderLineTax olt where olt.salesOrderLine = sol))/(sum(tc.cost)),2) else NULL end as markup,
round(sum(sol.lineNetAmount + (select sum(taxAmount) from OrderLineTax olt where olt.salesOrderLine = sol)-tc.cost),2) as grossmargin,
round((sum(sol.lineNetAmount + (select sum(taxAmount) from OrderLineTax olt where olt.salesOrderLine = sol)-tc.cost)/sum(sol.lineNetAmount + (select sum(taxAmount) from OrderLineTax olt where olt.salesOrderLine = sol)))*100,2) as grossmarginpercentage
from TransactionCost as tc
join tc.inventoryTransaction as t
right join t.goodsShipmentLine as iol
left join iol.salesOrderLine as sol
left join sol.salesOrder as o
left join o.obposApplications as posapp
left join o.organization as org
where o.salesTransaction = 'Y'
and o.documentStatus = 'CO'
and posapp.client.id=:client
and posapp.organization.id IN (:organizationList)
and to_date(to_char(o.creationDate, 'YYYY-MM-DD'), 'YYYY-MM-DD')>=to_date(:datefrom,'YYYY-MM-DD')
and to_date(to_char(o.creationDate, 'YYYY-MM-DD'), 'YYYY-MM-DD')<=to_date(:dateto,'YYYY-MM-DD')
and 1=1
group by org.name, org.id
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0032604 closedalostale Openbravo ERP Stock by Warehouse widget logs error message 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-05-17 13:24 aferraz New Issue
2017-05-17 13:24 aferraz Assigned To => Retail
2017-05-17 13:24 aferraz OBNetwork customer => No
2017-05-17 13:24 aferraz Triggers an Emergency Pack => No
2017-05-17 13:30 aferraz Note Added: 0096641
2017-05-17 13:30 aferraz Relationship added related to 0032604
2024-12-01 20:09 AugustoMauch Note Deleted: 0096641


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker