Expenses Management¶
For KSeF integration, a new entity called Expenses has been created. All incoming invoices are fetched and automatically added to the Expenses entity. You can also use it manually to manage incoming documents that are not handled by KSeF.
How Expenses are created?¶
From KSeF¶
If your cron jobs are configured correctly, expenses should be fetched automatically.
You can also configure daily re-fetching.
Manually¶
You can also enter expenses manually in EspoCRM.
- Go to Expenses.
- Click on Create.
- Fill the form.
- Save.
KSeF fields in expenses¶
ksefNumber- KSeF number assigned to an invoice. Required on issued invoices.ksefStatus- status of invoice delivery to KSeF.ksefPublicUrl- public URL of the invoice status page in KSeF.ksefProfile- profile used to issue an invoice and send it to KSeF.xmlFile- XML file containing invoice details.
How to fetch expenses manually from KSeF?¶
- Go to Expenses entity.
- In the list view, click the
Fetch expenses from KSeFbutton. - Choose period from which you want to fetch expenses.
Be careful!
Do not use this too often, as you may hit KSeF limits and get temporarily blocked.
How to make sure that you have all expenses?¶
Sometimes there may be an issue with EspoCRM or your internet connection. Because of this, fetching expenses from KSeF may fail, and the standard cron job only fetches invoices from the last 10 minutes. For this purpose, we created another job called Daily Fetch Of Expenses From KSeF. You can configure it in Scheduled Jobs.