Solved divide one payment with many invoices (1 Viewer)

Safari

Member
Local time
Today, 01:45
Joined
Jun 14, 2021
Messages
95
Dear All

i want to know how to divide one payment with 3 invoices for example :

my customer have 4 invoices :

1st invoice on 1-1-2022 with total 1000 $
2nd invoice on 15-1-2022 with total 2000 $
3rd invoice on 1-2-2022 with total 100 $
so all total invoices amount is 3100 S

then the customer paid only 1500 as a part of his due
i want to decrease the payment from the 1st invoice with 1000$ then decrease the payment rest of payment from the 2nd invoice with 500$
and when i make report i need to appear only :
2nd invoice with 1500 $
3rd invoice with 100 $

how can i do all of them

i attached the database to edit on it
 

Attachments

  • Database3.accdb
    724 KB · Views: 299

CJ_London

Super Moderator
Staff member
Local time
Today, 00:45
Joined
Feb 19, 2013
Messages
16,610
your tables are not designed correctly - customer name should be in a separate table. and you don't appear to have a primary key for invoices unless that is supposed to be it. And your data fields are text when they should be numeric. So I won't be editing it since there is so much wrong with it.

But I can tell you you have a many to many relationship between invoices and payments so you need a third table to reflect this relationship

tblPaymentAllocation
PaymentAllocationPK
PaymentFK
InvoiceFK
Amount
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:45
Joined
May 7, 2009
Messages
19,237
here is a demo.
 

Attachments

  • invoiceAndPayment.accdb
    4 MB · Views: 346

Users who are viewing this thread

Top Bottom