I have created a custom report and have added it to stock voucher journal.
The issue is this that it doesn't picks up the current Journal Batch Name while running the report,as it should.
As we can see it in Sales order->Test Report the current document Type and No. gets updated automatically.
How this can be done, is there any property
0
Comments
Take a variable, apply filters of Journal Template Name and, Journal Batch Name, and pass this record when running report.
support you using Item Journal Line then
ItemJnlLine.SETRANGE("Journal Template Name","Journal Template Name");
ItemJnlLine.SETRANGE("Journal Batch Name",Journal Batch Name");
REPORT.RUNMODAL(REPORT::"XYZ",TRUE,FALSE,ItemJnlLine);
ItemJnlLine.SETRANGE("Journal Template Name","Journal Template Name");
ItemJnlLine.SETRANGE("Journal Batch Name",Journal Batch Name");
Report.SETTABLEVIEW(ItemJnlLine);
Report.RUNMODAL;
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav