I have a sales order database.
tblSalesInvoiceHeaders
tblSalesInvoiceItems
tblPayments
When user enters a sales order, they have to click "Issue Invoice." When the invoice is issued, the invoice number is assigned and a record is added to the tblPayments table for collection purposes. This works fine. However, if the invoice is later modified, the user has to go to the Payments tab on the sales order entry screen and manually update or change the invoice amount to reflect the new total. It's not updating automatically. I had it updating but it was buggy. I'm wondering if a professional could shed light on the correct way to go about doing this?
When invoice modified, automatically change the invoice total in the tblPayments table to reflect the new total.
Thanks!