Aptronics / aptronics

Other
0 stars 1 forks source link

[NEW FEATURE] VAT report #15

Open hpema opened 4 years ago

hpema commented 4 years ago

Hi Team,

We need to build a vat report that users are able to run to do their vat. I have placed files and report on folder for further discussion.

https://drive.google.com/open?id=1-uMD0l5jHJg2QiCCxnCFtfwQ7BvNj2eJ

Kind regards Hemant

agritheory commented 4 years ago

11/11/19: Waiting on some test cases and discussion with fiance team from @hpema

hpema commented 4 years ago

Hi team,

here are the rules from my discussion with finance

Customer documents 1) All local customer invoices/credit notes gets put into box 1, showing the excluding, including and tax amount 2) Any assets sold should be placed into box 1A (At Aptronics this is rarely used) 3) Any customer invoice/credit note that is foreign and no vat charged with item type services goes into box 2 4) Any customer invoice/credit note that is foreign and no vat charged with item type product goes into box 2A

Supplier Documents 5) And purchase on captial goods goes into box 14 showing the vat amount 6) All supplier transaction including journals etc, that have vat charges goes into box 15 7) Any customs charges goes into box 15A, this is usually for foreign imports where the actual invoice wont have any VAT but we process a seperate customs invoice where the full value for that particular invoice or lines gets recorded as customs vat. (Examples will be provided)

this is the standard approach and report should show the details on the documents grouped by type and date order.

hpema commented 4 years ago

AS per our discussion add accounting dimensions to the tax transactions to facility the VAT report output.

SaiFi0102 commented 4 years ago

@agritheory @hpema I have been thinking of the design and here are some thoughts:

Account Dimensions may not be implementable for Tax Boxes because GL Entries for taxes are made using Taxes and Charges table's Tax Amount in an invoice rather than Line Items. So I'm thinking of alternate solutions out loud.

Here's a way to solve the VAT Report and Automatic Tax Calculation problem with the least changes to ERPNext. The report will be slightly complex. See if this makes sense and let me know if there are any issues with this.

How Tax Category and Item Tax Templates are auto fetched

How the masters can be defined (a rough idea)

For Sales/Purchase Invoices:

The VAT report can pick up data from Invoices and distinguish between tax boxes using the following fields:

It can get the following data from:

For Journal Entries

agritheory commented 4 years ago

Maybe all Debits to VAT Account using Journal Entry can go to Tax Box 15

To the account defined in the Tax Rule named "Tax Box 15"? Trying to follow this thought all the way to the T account posting...

SaiFi0102 commented 4 years ago

I didn't mention Tax Rule and I didn't mention account either.

This whole idea is to use only one account and no tax rules, but rather item tax templates to distinguish between tax boxes

hpema commented 4 years ago

Hi Saif,

I was thinking of this last night - and im in agreement. Lets use the item tax category as you specify and implement it and I can test. Journals, im confirm with the finance ladies that bank journals and other types also need to have VAT on them, so not sure how we will configure those. Unless we add item tax catogery field there and if its filled then we use it.

Somehow also build a report to show any vat transactions with no category so we can update them if need be before running final VAT report and submissions.

Your thoughts?

Can we start to get this together so we can get users input?

kind regards

SaiFi0102 commented 4 years ago

It would have been best and easiest if you separated taxes by accounts. However, this is also possible. I'll work on this on Monday. Let me know which instance to test on.

hpema commented 4 years ago

you can test on aptronics.agritheory.com

SaiFi0102 commented 4 years ago

Part of VAT report work on https://github.com/Aptronics/erpnext/pull/9