Can I read SQL Triggers for Invoice Total Updates on EtoBox?
SQL Triggers for Invoice Total Updates by Erica Gonzalez is a document available to read on EtoBox.
What is SQL Triggers for Invoice Total Updates about?
The document contains the code for 3 triggers that update the total amount on an invoice (Factura) table when records are inserted, deleted, or updated in a related sales (venta) table. The insert trigger calculates the total for the new record and adds it to the invoice total. The delete trigger calculates the total for the removed record and subtracts it from the invoice. The update trigger calculates the total for both the deleted and inserted records, subtracting the first and adding the second to adj
- Author
- Erica Gonzalez
- Language
- EN