REGGIE MAGER Posted December 15, 2008 Posted December 15, 2008 Hi. I'd like to know if it's possible to carry a balance to a new invoice for the same customer. Currently when I make up a new invoice it doesn't show the balance due from the previous invoice. Any help with this would be greatly appreciated.
comment Posted December 15, 2008 Posted December 15, 2008 You will need a self-join relationship of Invoices for this, defined as: Invoices::CustomerID = Invoices 2::CustomerID AND Invoices::InvoiceID > Invoices 2::InvoiceID Sort the records on the Invoices 2 side of the relationship by InvoiceID, descending. This will make sure the last invoice for this customer is the first related record from Invoices 2. Now you can define a PreviousBalance field in Invoices as a lookup from Invoices 2::Balance.
Recommended Posts
This topic is 6166 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now