Overview: handle error code accountingCodeNotPresent from backend while approve (pay) invoice.
Steps to Reproduce:
- Create invoice
- Use vendor with no accounting code information
- DO NOT toggle "Export to accounting"
- create invoice line
- Approve invoice
Expected Results: When user tries to approve or pay invoice (make any PUT request) UI handles error code (accountingCodeNotPresent ) and shows corresponding toast message to user.
Actual Results: Invoice is NOT approved and message does NOT alert the user that it is the accounting code that is missing