Retail

FIFO tagging of 570 million records for a sale-or-return audit

A retailer with turnover above ₹3,000 crore and 500+ partner stores had to map invoices to delivery challans across 570 million records for an audit — in a month.

570M records reconciled
400+ CSV files consolidated
6–7 scenarios modelled to settle the logic
1 month from brief to audit-ready output

The challenge

Sales and return data for the sale-or-return model sat in more than 400 CSV files with inconsistent fields. The audit deadline was fixed, the matching logic had to hold up to scrutiny, and tax, technology and audit teams all needed to agree the assumptions behind it.

What we built

We consolidated and cleaned the data with Python and SQL, mapped delivery challans directly to invoices wherever a match existed and applied FIFO tagging elsewhere. Six to seven scenarios were modelled and compared with the client teams to settle on the logic that was both defensible and optimal, and the results were surfaced in BI dashboards.

The outcome

The audit requirement was met inside the timeframe with accurate, transparent workings, an agreed and documented basis for every assumption, and a repeatable pipeline that processes hundreds of millions of records.

Start a conversation → All stories
✦ Get in touch