Calculate order "rolloverStatus" flag
- Only for get by id API
1. Rename "rolloverStatus" field to "needReEncumber" and make it boolean. Update mod-gobi acq-models.
2. Get current fiscal year for order(find first ledger by fund from poLines and find current fiscal year)
3. Get fiscal year rollover by current fiscal year and ledgerId. If no exist then don't go to next steps and set flag needReEncumber to true.(3,4)
4. Get errors from "ledger_fiscal_year_rollover_error" by orderId and fiscalYearId
5. If errors exist then "needReEncumber" = "true" else "rolloverStatus" = "false"
- Logic created
- API tests
- Unit tests