You can enable the ability to apply an invoice to a budget. Go to Business > Settings > Budgets and see these settings:
Firstly enable the feature.
You can have an option to either just adjust a budget with the invoice that’s created or create a retrospective purchase as well. If you enable the workflow step, you will be able to create a new workflow step of “Apply to Budget”.