Allow user to enter a Total amount for the invoice. Upon approval of the invoice check all invoice and invoice line amounts against the Total. If they do not equal each other do not allow user to Approve invoice.
On invoice approval if lockTotal value exist than compare it with calculated total
- if equal approve invoice
- if not equal return error with lockCalculatedTotalsMismatch error code
- logic implemented
- unit test updated
- integration test updated