Hi Experts,
I and tracking arrears in a report. There is a minimum monthly payment amount one has to pay each months for a mortgage. If the person pays less than the minimum amount, the difference becomes an arrears with negative and if pay more the difference becomes an over payment with positive.
i want to accumulate this arrears and over payment column. I want the accumulate results be correspond to the end of the months. There can be more than one payment a month and the arrears should be added and the result be placed against the end/ or last payment date in the month and the other arrears payment for the other payment date in the month be zero.
This is the code that tracks the arrears:
ArreasVar:= -Customer."Monthly Install" - "Cust. Ledger Entry".Amount;
ArreasVarTotal:=ArreasVarTotal+ArreasVar;
Can someone help me on this please?
Thanks
Comments
Can someone help me with this problem.
If you need more explanation of this issue you can let me know, i will explain it in detail in such a way you can help me solve this.
Thanks
The accumulated amount will correspond to the last day of the months as shown on the third column. Maybe this will help to bring out the picture.
Can someone help me with this please.
Thanks
Can someone help me please?
Thanks
So in the OnAfterGetRecord, you just need to put some code to blank the total of the month:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
1) Put an Integer DataItem (Property maxIteration = 1) juat above the dataItem (say DataItem - A) for which you r printing the body section.
2) In Integer DataItem put all the controls that were in body of DataItem - A. and remove the controls from DataItem - A
3) In the Integer Body OnpreSection() 4) In DataItem - A OnAfterGetRecord()
I hope it helps .. O:)
Technical Consultant, MS Dynamics NAV
Right now how can i make the accumated values for months that are not the last month/ end of month be zero? See below:
hoe can i have it in the form below: can anyone help me with this please?
Thanks
No offense but I just get the feeling you're not putting a lot of effort towards the issues you are posting. Flex your brain muscle more! I see far too often you're coming back with easy questions I know you can answer.
As per this situation (to make the math process transparent) create another variable. So you have One variable used for doing the math, and Another acting as the end-of-month display.
You may have to just implement another IF statement; when the last line for that month will be displayed.
(We love to help, but not all of us particularly enjoy knowing we're doing your work for you [-(, or maybe it's just me.)
Technical Consultant, MS Dynamics NAV
It there any problem with it? Thanks
ArreasVarTot := 0; is the problem.
your ArreasVarTot is cumulative sum. whether month ends or not dont make it zero. In the section you need to print this cumuative sum if month ends otherwise not. Use another varible for that, as in the above sample report.
Technical Consultant, MS Dynamics NAV
Technical Consultant, MS Dynamics NAV
thanks
As far as your code is concerned... have you tried the following?
2) In the onAfterGetRecord()
Technical Consultant, MS Dynamics NAV
I found out the problem.