Overview: Cannot approve invoice with an adjustment that has relation to total "included in" and is not pro-rate. System is expecting a fund distribution but because this is "Included in" the amount is already distributed. System should allow approval in this case with no Fund distribution.
Steps to Reproduce:
- Log into bugfest-iris
- Create invoice and invoice line
- At invoice level add adjustment that is relation to total "included in" and is not pro-rate
- Save and close
- Approve invoice
Expected Results: Invoice is approved and transactions are created based on fund distributions
Actual Results: Invoice will not approve, "invoice could not be saved" error shows. Message from backend is "At least one fund distribution should present for every non-prorated adjustment"
Temporary fix remove "Included in" option when "Not prorated" is selected; created 2 stories for FE and BE to implement this in R2