Normal Topic Reverse Natural Linking Lookup (Read 334 times)
MP
Full Member
***
Offline



Posts: 104
Joined: Sep 3rd, 2007
Reverse Natural Linking Lookup
Nov 13th, 2007 at 6:08pm
Print Post Print Post  
I have a design where an Invoice can have multiple Payments.  A Payment form is setup to be a naturally linked subrecord of an Invoice.  However, Payments can occur outside of an Invoice, such as when a cash drawer transaction occurs without a sale taking place (such as an expense payment).

I'd like to be able to run a report showing all Payments for a particular date.  For Payments linked to an Invoice, I'd like to be able to pull some of the Invoice data into the report as well.  Is there anything that allows me to get the Parent record with only the Child record in hand?  If there is, I'm hopeful that it will allow me to solve the reverse problem, i.e. determining if a Payment record is an orphan.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Reverse Natural Linking Lookup
Reply #1 - Nov 13th, 2007 at 6:15pm
Print Post Print Post  
I often use the children standalone, so I generally stamp them with the parent record id.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged