WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@yashranaway
Copy link
Contributor

Fixes #2183

Problem

The India sales report currently excludes purchases where buyers have provided a Tax ID (business_vat_id). This means these purchases are completely missing from the monthly sales reports, creating incomplete tax reporting data.

This exclusion happens at the query level in CreateIndiaSalesReportJob, where purchases with a business_vat_id are filtered out.

Current Behavior

  1. Generate India sales report for any month
  2. Observe that purchases with buyer Tax IDs are completely excluded from the CSV
  3. Report is incomplete for tax compliance purposes

Root Cause Analysis

.where("purchase_sales_tax_infos.business_vat_id IS NULL OR purchase_sales_tax_infos.business_vat_id = ''")

The query explicitly filters out purchases with business_vat_id:

.where("purchase_sales_tax_infos.business_vat_id IS NULL OR purchase_sales_tax_infos.business_vat_id = ''")

AI Disclosure

No AI was used for any part of this contribution.

Confirmation

I have watched the Gumroad PR reviews live streaming video

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.

Include buyer Tax ID in India sales report

1 participant