Purpose: 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.
User story statement(s):
As a librarian that has created an EDI connect for receiving invoices
I want the invoices to be created with the overall Total amount from the EDI file as the source of truth for the invoice
so that as I add detail like taxes and fees for reporting purposes I know the system is going to make sure I end up with the correct total amount that needs to be paid to the vendor.
Given invoice is created in FOLIO via EDIFACT file When Loading the invoice and Total amount of invoice differs from the Calculated total of all invoice line and adjustments Then warning is show to user in UIwill be addressed by UINV-197
- Given invoice is created in FOLIO or via EDIFACT file
- When clicking approve and Total amount of invoice differs from the Calculated total of all invoice lines and adjustments
- Then user is intercepted by error toast message "Invoice cannot be approved. The Lock total amount of the invoice does not match the Calculated total amount of its invoice lines and adjustments."