resilient-tech / india-compliance

Simple, yet powerful compliance solutions for Indian businesses
https://indiacompliance.app
GNU General Public License v3.0
148 stars 136 forks source link

Purhcase Reconciliation tool finds mismatch even though tax amount is appearing in the PI #2678

Closed amrit-citrusleaf closed 2 weeks ago

amrit-citrusleaf commented 2 weeks ago

Information about bug

First of all, thanks a lot for maintaining this life-and-time-saver Frappe app!

Now, onto the issue-

While using the purchase reconciliation tool to match GST invoices, we found some “mismatch“ entries. Lots of these entries have incorrect GST amount as compared to their respective Purchase invoices.

An example is below-

image

In this case the GST amount in the ERPNext PI is not set, according to the reconciliation tool. However, the purchase invoice has taxes set- image

But the GST breakup table is empty-

image

Version

Ecommerce Integrations: v1.17.0 (HEAD) ERPNext: v14.74.5 (HEAD) Frappe Framework: v14.82.1 (HEAD) India Compliance: v14.30.5 (HEAD)

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct

Huly®: IC-2802

vorasmit commented 2 weeks ago

Hi, Looks like in invoice gst details are not set correctly. Have you specified these GST Accounts in GST Settings?

amrit-citrusleaf commented 2 weeks ago

Here comes the interesting part- for some invoices, the GST amount (CGST, SGST, IGST) are set to zero while the invoice itself has a tax template, and hence tax in the taxes and charges table.

Taxes are item level are zero-

image

Taxes at the invoice level are non zero-

image

I think the reconciliation tool checks the GST amount at item level, rather than at the form level. Please confirm if my understanding is correct.

vorasmit commented 2 weeks ago

Yes correct.

What are the accounts specified in GST Settings?

amrit-citrusleaf commented 2 weeks ago

Got it. So the way out is to patch the existing data?

Or can I select the "Accept" button on the detail view and the system will update the 2A/2B status?

And, these are the accounts in GST settings- image

vorasmit commented 2 weeks ago

You can easily patch existing data.

You can do above for all set of accounts that you have. Afterwards,


Closing this issue, as no fix is required for this.

amrit-citrusleaf commented 2 weeks ago

Thanks for the help @vorasmit .

I will run the patch (the accounts shall remain the same as the accounts team is used to their incorrect name)