Skip to content

Case studyERP · Next.js store · AI assistant

Material Matters: one catalog now runs quotes, invoices and the store

An ERP for the India distributor of SAGA. Sales, quoting, GST invoicing, purchasing, ledger, HR and shop operations run on one system, and the same catalog feeds the public store.

In productionThe store is live; the ERP is private.

The materialmatters.in storefront, headed "Everything a workplace needs", with category tiles for seating, modular furniture, joinery, storage and accessories.
materialmatters.in on a phone: the home page headed "Build to Matter", with product search and popular categories.

One 917-product catalog behind every quote and invoice

The project at a glance

Client
Material MattersIndia distributor of SAGA
Sector
Workplace furniture and products distribution (B2B)
Location
India
Platform
Private web ERP, public web store and a staff AI assistant
When
2025–present

The challenge

How can one product catalog drive every quote, GST invoice, purchase order and the online store?

Our approach

How we approached it

  1. Scope

    Map lead to cash

    Every document the business issues, from first quote to GST invoice and vendor purchase order, mapped onto one catalog and one ledger.

    Sign-off: Client approves the written scope

  2. Build

    Make invoicing and payments safe

    Invoice numbers that never skip or repeat, records locked against conflicting edits, Razorpay payments verified when they arrive and never counted twice, and access checked page by page.

    Sign-off: Lead engineer reviews every change before release

  3. Release

    Move the store without losing a file

    778 products and 1,371 media files (1.65 GB) moved off the old Sanity content system, with every file verified after the move, before materialmatters.in relaunched on the ERP's own API.

    Sign-off: Client accepts each release

The build

What we built

  • The ERP

    An ERP with 150+ API routes: sales, quoting, GST invoicing, purchasing, ledger, HR and shop operations

  • One catalog

    One 917-product catalog behind every quote, GST invoice, vendor purchase order and the website

  • The store

    materialmatters.in rebuilt as a Next.js store on a 31-route CRM API; a product edit refreshes only the pages that show it

  • Staff assistant

    A staff assistant that answers with citations: keyword search across 10 record types, limited to what each role may see, and a model gateway that falls back between Gemini, GPT and DeepSeek

How it fits together

From what comes in to what goes out

Comes in

  • 917-product catalogOne list for sales and the store
  • Razorpay paymentsVerified when they arrive
  • Staff questionsAsked in plain words

What we built

Material Matters ERP

  • 150+ API routes for sales, purchasing, ledger, HR and the shop
  • PostgreSQL on Supabase
  • Clerk sign-in, with access checked page by page
  • A model gateway across Gemini, GPT and DeepSeek

Goes out

  • Quotes and GST invoices
  • Vendor purchase orders
  • materialmatters.inOn a 31-route CRM API
  • Cited answers for staffLimited to what each role may see

The result

Results so far

  • 778products and 1,371 media files (1.65 GB) migrated with 0 failures, every file verified after the move

  • 150+ERP API routes and a 31-route CRM API in production

  • One 917-product catalog shared by every sales document and the store

Stack

Built with

Tools we have used on client builds. We choose per project; no partner status is implied.

  • App and site

    • Next.js
    • TypeScript
  • AI and data

    • Keyword search (BM25)
    • Gemini
    • GPT
    • DeepSeek
  • Back end and data

    • PostgreSQL (Supabase)
    • Supabase Storage
    • Clerk
  • Payments

    • Razorpay REST API
  • Hosting and media

    • Vercel

CreditsBuilt for Material Matters through The Sixty One (61 FZCO). Engineering by Shuja Ur Rahman, Founder & CEO.

Start here

Three simple steps to get started

Tell us your problem in your own words. You do not need to know anything technical. If we are not the right fit, we say so in our first reply.

  1. Today

    Tell us the problem

    Fill in a short form or message us on WhatsApp. Plain words are fine.

  2. Within 1 business day

    A named lead replies

    With questions, or a time to talk it through on a call.

  3. Within 48 hours

    A fixed plan and price

    What we will build, by when, and what it costs. Then you decide.