A company in Czechia issues Mopka invoices in its own iDoklad. You prepare the invoice in Mopka, while the number from the agenda's series, the Czech PDF (with DUZP, IČO and DIČ) and the bookkeeping stay in iDoklad. The number comes back to Mopka, so the app and the client portal show the same number as iDoklad.
iDoklad is connected by the company owner, or by a manager who sees Finance and to whom the owner opened Invoicing programs in Settings → Manager permissions.
What you need
- The iDoklad Oblíbený or Prémiový plan. The Zdarma and Základní plans have no API.
- A company in Mopka with Czechia as its country and CZK as its currency.
- The same VAT payer setting in the iDoklad agenda and in Company details → VAT payer in Mopka.
- The Client ID and Client Secret of the agenda you invoice from.
Connecting
- In iDoklad, open the agenda you invoice from and go to Nastavení → Aplikace → API. If there are no keys yet, click Vygenerovat and save the settings. Copy the Client ID and Client Secret.
- In Mopka, open Settings → iDoklad, paste both and click Connect to iDoklad.
- Mopka checks them and shows the agenda's name and IČO. When the IČO differs from the one in Company details, you see a warning, and Mopka issues no invoice in that agenda. It usually means another company's agenda details were pasted.
Several companies in Mopka? Each connects its own agenda. One agenda cannot be connected in two companies, as its invoices would then carry the wrong seller.
Issuing an invoice
Prepare the invoice as usual, from To invoice or with Invoices → New invoice, and click Create invoice. That makes a draft: its preview is in Czech, with Mopka's number and a note that it is not an invoice yet. The draft reaches iDoklad only when you click Issue in iDoklad on the invoice page. Mopka then:
- finds the client in the iDoklad address book by IČO or DIČ, and by e-mail only a client without them and with the same name. If the client is not there, it adds them;
- fills in what the client's contact in iDoklad lacks and brings over changes made later in Mopka (such as a new address or DIČ). It does not overwrite details entered in iDoklad;
- checks that iDoklad counts the invoice to the same amount as Mopka;
- issues the invoice with the numbering, currency and payment method the agenda has as defaults, and copies its number to Mopka;
- saves iDoklad's PDF. You see it on the invoice page, and the client downloads it in the portal and gets it attached to the invoice e-mail if the Invoice sent message is on in Settings → Automatic messages.
The VAT rates are 21%, 12% and 0%. A company that is not a VAT payer issues invoices at 0%. The Sale date goes to iDoklad as the DUZP.
What iDoklad would not take (another rate, VAT from a company outside VAT, a wrong client IČO, a due date before the issue date), Mopka tells you when you create the invoice and when you click Issue in iDoklad, while it can still be corrected.
When iDoklad does not take an invoice
The invoice page shows an iDoklad card with the reason. Mopka tries twice more within an hour, and the client gets the e-mail only once the invoice is in iDoklad. When iDoklad does not answer in time, Mopka checks before the next try whether the invoice was created there, so it never issues it twice. Once the cause is fixed, click Send to the program again on the invoice.
The client's DIČ
A Czech company's client details have a DIČ field next to IČO. Enter it with the country code, e.g. CZ12345678. It goes on the invoice in iDoklad, and the client import recognises a "DIČ" column.
Payments
An invoice paid in full in one program is paid in the other too:
- When you record a payment in Mopka after which the invoice is paid in full, Mopka records one payment of its own in iDoklad for the amount still owed, with the date from Mopka. When that payment goes from Mopka, Mopka deletes only its own payment in iDoklad. Payments entered in iDoklad stay.
- When the invoice is paid in full in iDoklad, Mopka records an iDoklad payment for the amount still owed, with the date from iDoklad: at once or by the next morning at the latest. You delete such a payment in iDoklad, and it disappears from Mopka too.
- A payment for part of an invoice goes neither way, so it never overwrites what the accountant entered.
The nightly check covers invoices of the last 180 days.
What Mopka does not do in iDoklad
- It does not issue invoices in a currency other than CZK. Issue such an invoice in iDoklad and add it to Mopka with Attach an invoice.
- It does not make credit notes or cancel invoices. Do that in iDoklad. Mopka does not learn about it, so the invoice stays open in Mopka: do not send it payment reminders.
Switching off and disconnecting
The Issue invoices in iDoklad switch in Settings → iDoklad stops issuing invoices and moving payments both ways, and the connection details stay. Payments recorded in Mopka meanwhile reach iDoklad once you switch it back on. Disconnect… deletes the API details from Mopka, and invoices already issued stay in iDoklad and in Mopka. While the switch is on, the company's country and currency cannot be changed.