0

How do i track payments and update the new balance due?

We sell each customer one item and most of them make payments on it till it is paid off.

We take in a CSV for each job that gives the DB the full total. the down payment they paid and the current balance due.

Here is how it shows in Ninox - the permit fee is allready included in the total.

Here is a screen shot of the invoice area i am calling Payments

Then here is a screen grab of the invoice payment print out look i made.

?

How do i set this up so it tracks all the new payments for each customer. It seems it will do this for each new invoice created but i need to update the new blance due each time some how.

So someplace in the customers info area i see a new field maybe called ( New Balance Due )  that shows the new updated total due after each payment.

And then i can pull this fields info in the invoice print out so each new payment they make i can send a new invoice/Receipt with the new updated amount due?

Right now i just have a blank area on the invoice for the new balance as i am not sure how to make that work?

I added in the new Number field so it is in place.

 

Thanks

5 replies

null
    • Edward.1
    • 1 yr ago
    • Reported - view

    Another screen shot.

    I need to take the sum total of the two paid invoice $250 and auto minus out the amount in the Total Still Due field $599 and have that new total show up in the - New Balance Due field. = $349. Then i can pull that into the invoice print out for the customer.

    • Fred
    • 1 yr ago
    • Reported - view

    Since Payments and Customer are linked you can use the power of relationships to gather the data. No need for select statements since you only want to see Payments of the customer you are looking at. On your Customer table you can create a new field called AllPayments. Then you can put this in the formula:

    sum(Payments.Total)
    

    Ninox knows to only find records in Payments that are linked to a Customer.

    It is a new way of thinking but, I think, an important lesson to learn. You should try to use relationships as much as you can.

    • Edward.1
    • 1 yr ago
    • Reported - view

    I get this when i try this.

    I put in a formula item and named it All Payments then put this in as the formula?

    Also tested puting in a new field called All Payments and then put in a formula field with the code and that would not take?

    sum(Payments.Total)
    • Edward.1
    • 1 yr ago
    • Reported - view

    It got the All Payments to show the total of all the payments. I had to change the name of one of the other fields all ready called All Payments.

    This gives me the total but not the new amount due?

     

    I tried sum(Payments - Total Still Due.Total) in another field it did not like that.

    • Edward.1
    • 1 yr ago
    • Reported - view

    Wow i got it working after watching a video.

     

    Now on to my Dashboard next...

Content aside

  • Status Answered
  • 1 yr agoLast active
  • 5Replies
  • 154Views
  • 2 Following