Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

Assistance with Paid To Date Calculation

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
Matthew2624
Asked:
Matthew2624
  • 4
  • 4
1 Solution
 
mlmccCommented:
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
 
Matthew2624Author Commented:
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
 
mlmccCommented:
How does it fit into the main report?

How is it linked to the main report?

mlmcc
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Matthew2624Author Commented:
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
 
mlmccCommented:
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
 
Matthew2624Author Commented:
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
 
mlmccCommented:
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
 
Matthew2624Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now