VAT: tax invoices, adjustments and registers
ua_vat is an ERPNext app for the VAT accounting of a payer: rate codes, the tax invoice, the adjustment calculation, the input tax credit of purchases and registers. A document is prepared up to the state "Ready" with a number and an XML file; signing and submission are done outside the app.
Note: The final decision rests with the enterprise's accountant.
Rate codes and templates
The rates have codes: 20 (the main rate), 14 (agricultural products), 7 (medicines), 901 and 902 (the zero rate for export and for supply inside the customs territory), 903 (an exempt operation). The mark not_object belongs to the tax data; a line with it is left out of the tax invoice. The code is written in the field "VAT Rate Code" on the tax account, in the tax rows and in the item tax template.
For each side, sales and purchases, the app creates a tax template and an item tax template for six specifications: 20, 7, 901, 902, 903 and not_object. That is 2 × 2 × 6 = 24 documents. A button "Create Ukrainian VAT Templates" makes them too. Sales go to the account 6431, purchases to 6442, and the VAT template is chosen in the document explicitly: a default template would put VAT on the invoices of a company that is not a payer. For a company that has set up VAT and is a VAT payer on the posting date, the app checks before a Sales Invoice is submitted that a VAT line has exactly one tax with a code that matches the rate. Sales invoices are checked.
The tax invoice
A tax invoice is made from a Sales Invoice, a Delivery Note or an advance Payment Entry with "Create" → "Tax Invoice". The first-event rule decides which document carries it: the receipt of money or the shipment, whichever came first. An advance gives an invoice for the amount paid, a shipment bigger than the advance for the difference.
The button "Mark Ready" lists all the reasons to refuse at once: the seller data, the totals, the buyer, the XML against the schema. With none the app takes the next number, fixes the seller data and builds the XML (the form J1201016, F1201016 for a FOP) with a checksum. When the check fails, the number stays free. After that the document is unchangeable; the only action is a cancellation with a reason, and the number stays with the document. One counter serves the invoices and the adjustments of a company together; its restart rule (never, yearly, monthly) is set in the company.
For a buyer with no VAT status the app shows a message that says what to fill in. For a non-payer buyer an invoice with the reason type 02 is made by default; a sale through the cash desk is skipped, because the summary invoice of the day (the reason type 11) covers it, and the app makes it from a source of the daily totals.
The adjustment calculation
An adjustment is made from a credit note (a return Sales Invoice) to an invoice in the state "Ready". The lines are grouped by the reason codes that the app writes: 101 a changed price, 102 a changed quantity, 103 a line returned in full, 104 both quantity and price changed. The app checks the groups: a return at another price or above the quantity supplied is an error. A calculation registered later than 1095 days after the date of the invoice is refused.
Purchases and the input credit
A Purchase Invoice line has a tax purpose: taxable, exempt, non-business or mixed use. The VAT first sits on the account of the expected credit, 6442. When the invoice is linked to a received tax invoice or a customs declaration, one entry moves the part with the right to credit to 6441 and the rest to expenses. The received invoice is entered by hand or imported from XML; the file is in the schema of the tax service. The credit ends 365 days after the date of the invoice; a later link is refused.
Registers and the worksheet
For a month, a quarter or a year there are three reports: the sales register, the purchase register and the worksheet of the declaration (order No. 21), in whole hryvnias. The worksheet holds the lines that are computed from ready documents and ends with the difference of two computed sums; it helps check the totals against the declaration, which is filled in and filed outside the app.
What this means
A VAT payer can go from a rate code to an invoice with a number and on to a register, and the credit of purchases is confirmed by a link with the document of the supplier. Signing and submission are done outside the app.
More in the documentation: VAT rate codes and tax templates, Tax invoice, Adjustment calculation of a tax invoice, Purchases and the tax credit and Registers and the declaration worksheet.