MODORDERS-298, Integration with the encumbrance API was temporarily disabled while the finance app underwent several breaking changes (schema changes, API changes, etc.). Now that finances has stabilized, orders needs to re-integrate with the encumbrance API.
- Upon opening an order
- count the number of encumbrances that will be needed - this is essentially the number of fund distributions across all POLs.
- POST /finance/order-transaction-summaries
- generate encumbrances and POST /finance/encumbrances
Make necessary checks to see if there is enough money to be encumbered
See the wiki for additional details
- Encumbrances are created (for each fund distribution) when an order transitions to open
- Unit tests are updated
- API tests are updated