Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: RE: Group total fields not working in sale report

$
0
0
Thanx to ishwar & Amol... I added "Posting Date" field in sales line table and updated from sales header table and then created report & getting desire output... But while exporting in excel it wrongly exporting sum of qty & amount as below :- Code of Sales Invoice Line, GroupFooter (2):- Sales Invoice Line, GroupFooter (2) - OnPreSection() CurrReport.SHOWOUTPUT := CurrReport.TOTALSCAUSEDBY="Sales Invoice Line".FIELDNO("No."); CurrReport.SHOWOUTPUT := CurrReport.TOTALSCAUSEDBY="Sales Invoice Line".FIELDNO("Unit Price"); IF Customer.GET("Sales Invoice Line"."Sell-to Customer No.") THEN Cust := FORMAT(Customer.Name) ; IF "Export To Excel" THEN BEGIN RowNo += 1; EnterCell(RowNo,1,FORMAT("Sell-to Customer No."),FALSE,FALSE); EnterCell(RowNo,2,FORMAT(Cust),FALSE,FALSE); EnterCell(RowNo,3,FORMAT("No."),FALSE,FALSE); EnterCell(RowNo,4,FORMAT("Unit Price"),FALSE,FALSE); EnterCell(RowNo,5,FORMAT(Quantity),FALSE,FALSE); EnterCell(RowNo,6,FORMAT(Amount),FALSE,FALSE); END

Viewing all articles
Browse latest Browse all 11285

Trending Articles