Solved

Assistance with Paid To Date Calculation

Posted on 2012-03-18
8
258 Views
Last Modified: 2012-08-13
Please see attached documents on my issue of calculating the Paid to date. The problem only occurs when a Rent Invoice is partly allocated by a Receipt.
I-need-to-make-the-Paid-to-Date-.doc
Receipt-Statement.rpt
0
Comment
Question by:Matthew2624
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 37735487
The problem is you don't know how many days have been paid.

To do this will require
1.  A redesign so the payments for each rental are gouped together - group by invoice rather than by date of payment
2.  Use some fancy arrays and variales to track the current paid through date.

The first is obviously easier to do and maintain.  It also doesn't have a problem with memory or array sizes.

Also by grouping by invoice it will be easier to see at a glance how far along the payment has gone and when the rental period is over.

mlmcc
0
 

Author Comment

by:Matthew2624
ID: 37735508
Unfortunately for Statutory reasons the report has to be by Payment. I probably should have mentioned that this report is actually a sub-report of a rental Statement. This is the payments section.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 37735600
How does it fit into the main report?

How is it linked to the main report?

mlmcc
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:Matthew2624
ID: 37735797
There is specific section in the report which will only include Payment Type transactions, it links to the main report via an account number and a payment reference number.

I have attached the main report
CRM-Tenant-Statement-2-Milestone.rpt
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 37736129
I revised the report

I changes the PaidThruDate formula to use an array

I added 2 formulas
1.  DeclareArrays - In main and sub report report headers
2.  DispCurrentIndex - used for debugging

mlmcc
CRM-Tenant-Statement-2-Milestone.rpt
Receipt-Statementwitharrays.rpt
0
 

Author Comment

by:Matthew2624
ID: 37736179
That is so close it's not funny, only issue now is if there are receipts that don't have an allocation against an invoice they aren't showing up.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 37736196
Not sure how you are selecting them.  

Are those ones that don't have a DOC_1 reference so don't get linked?
If so you could add a subreport at the end that displays all of those

mlmcc
0
 

Author Comment

by:Matthew2624
ID: 37736206
Hmmmm a little hard to explain.

The sub-report should show all Payments of rent and then only the invoice allocations if there is an allocation. I have attached a pdf of the report to show where there is a blank and a 0 as the last field in the row.
CRM-Tenant-Statement-2-Milestone.pdf
CRM-Tenant-Statement-2-Milestone.rpt
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question