Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat): process to generate vat3 kra returns #99

Merged
merged 12 commits into from
Nov 27, 2024
Merged

Conversation

emmanuel-mwendwa
Copy link
Contributor

@emmanuel-mwendwa emmanuel-mwendwa commented Nov 26, 2024

VAT3 Returns

Overview

The VAT3 Returns Doctype is used to generate KRA VAT3 Reports for specific date ranges, typically on a monthly basis. The document allows users to fetch either Sales Invoices or Purchase Invoices, depending on the selection of the Selling or Buying checkbox. Once the document is submitted, the invoices in the child table will be marked as filed.

Fields

Main Fields

  • Company (Mandatory):

    • Linked to the Company Doctype.
  • From Date (Mandatory):

    • The start date for fetching invoices.
  • To Date (Mandatory):

    • The end date for fetching invoices.
  • Selling (Checkbox):

    • Default value: 1. If checked, it will fetch Sales Invoices for the specified date range.
  • Buying (Checkbox):

    • Default value: 0. If checked, it will fetch Purchase Invoices for the specified date range.
  • Fetch Invoices (Button):

    • When clicked, it fetches the Sales Invoices or Purchase Invoices based on the selected checkboxes (Selling or Buying).

Child Table: Invoices (Child Table)

  • Document Type:

    • The type of the invoice (Sales or Purchase).
  • Invoice Date:

    • The date when the invoice was posted.
  • Invoice Number:

    • The number of the invoice.
  • ETR Serial Number:

    • The serial number from the ETR (Electronic Tax Register).
  • Tax Rate:

    • The tax rate applicable to the invoice.
  • Taxable Value:

    • The taxable value of the invoice.
  • Pin Number:

    • The tax PIN number of the customer or supplier.
  • Supplier Name:

    • The name of the supplier or customer, depending on the invoice type.

Usage

  1. Create a VAT3 Returns Document:

    • Select the Company for which you wish to generate the VAT3 return report.
      Screenshot from 2024-11-27 10-42-17

    • Define the date range by selecting the From Date and To Date.
      Screenshot from 2024-11-27 10-42-58

    • Choose whether to fetch Sales Invoices or Purchase Invoices by selecting the appropriate checkbox (Selling or Buying).

  2. Fetch Invoices:

    • Click the Fetch Invoices button. Based on the selected checkbox:
      • If Selling is selected, it fetches Sales Invoices for the specified date range.
      • If Buying is selected, it fetches Purchase Invoices for the specified date range.

Screenshot from 2024-11-27 10-44-04

  1. Invoices Child Table:
    • Once the invoices are fetched, the details of each invoice are added to the Invoices child table, including fields like Invoice Number, Tax Rate, Taxable Value, Pin Number, and Supplier Name.

Screenshot from 2024-11-27 10-45-46

  1. Submit VAT3 Returns:
    • After reviewing the fetched invoices, submit the VAT3 Returns document. Upon submission, the invoices in the child table will be marked as filed.

Screenshot from 2024-11-27 11-02-37

Screenshot from 2024-11-27 11-01-30

Notes

  • The Selling checkbox should be selected if you are looking to generate a report based on Sales Invoices.
  • The Buying checkbox should be selected if you are looking to generate a report based on Purchase Invoices.
  • Invoices in the child table are filed once the document is submitted, marking them as processed for VAT reporting purposes.

Example Workflow

  1. Create a VAT3 Returns document.
  2. Select the Company, From Date, and To Date.
  3. Choose either Selling or Buying depending on the invoice type you want to fetch.
  4. Click Fetch Invoices to fetch the corresponding invoices for the selected date range.
  5. Review the fetched invoices in the Invoices child table.
  6. Submit the VAT3 Returns document to mark the invoices as filed.

Conclusion

The VAT3 Returns Doctype simplifies the process of generating KRA VAT3 Reports by fetching the necessary invoices and providing an easy way to track and file them for the reporting period.

@emmanuel-mwendwa emmanuel-mwendwa merged commit c74f757 into develop Nov 27, 2024
@emmanuel-mwendwa emmanuel-mwendwa deleted the vat3_returns branch November 27, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant