# AI Sales & Inventory System – Google Sheets Apps Script

> AI Sales & Inventory System – Google Sheets Apps Script is a Google Apps Script web application that runs on your own Google account, sold with complete source code by Rameez Scripts. Sales and inventory management system in Google Sheets: quotes to invoices, stock, ledgers and an AI chat assistant. Full source code, setup video and support.

- Product page: https://rameezscripts.com/source-code/ai-sales-inventory-web-app
- Video demo: https://www.youtube.com/watch?v=QkCKeo49fq4
- Category: CRM & Sales, Inventory & Warehouse
- Stack: Google Apps Script + Google Sheets
- File code: F1
- Version: 1.0
- Price: One-time payment, full source code included — current price on the product page
- Seller: Rameez Scripts (https://rameezscripts.com)

## What it does

A sales and inventory ERP that runs on Google Sheets, covering the full trading cycle — quotation, sales order, invoice, payment, ledger — with an AI chat assistant sitting on top of your own data. Built as an Apps Script web app, so there is no server to rent and no database to configure. What it does A customer asks for a price: you build a quotation with searchable customer and product pickers, apply discounts per line or across the total, and watch the document render live beside the form. Print it, email it, or mark it accepted and convert it to a sales order in one click — and only then does stock move. Confirmed orders become invoices with your tax rate applied, and every transaction posts to the customer ledger, which you can filter by date range and print. Suppliers work the same way in reverse: purchase orders, supplier ledgers and payments recorded against a balance. Highlights Stock deducts on the sales order, never on the quotation — the distinction that keeps inventory honest Products in pieces, kilograms, litres or boxes, with plus/minus stock adjustments that record a reason Reports for sales, top customers, top products, inventory, receivables and profit and loss Tax settings for GST, service tax and sales tax, editable rather than hard-coded Three roles — admin, sales manager, sales staff — with an About App page documenting what each one can do Currency symbol, app name and logo set once and applied everywhere, including printed documents SWR loading: data caches locally and refreshes silently in the background instead of reloading the page The AI chat assistant Add your own OpenAI API key in settings, pick a model, and ask questions in plain English — "top five customers by revenue", "unpaid invoices over 30 days". It reads your sheets and answers from the real figures. The key is yours, so you control the model and the spend. Who it is for Distributors, wholesalers and trading businesses that quote before they sell and need stock, receivables and profit in one place. The five AI prompts used to build it are included if you want to extend it yourself.

## Features

- Quotations with searchable customer and product pickers and a live print preview
- Line-level and overall discounts on every quotation
- One-click convert quotation to sales order
- Sales orders that deduct stock automatically on confirmation
- Sales invoices generated from confirmed orders with configurable tax
- Print to PDF and email the quotation order or invoice to the customer
- Status workflow of draft accepted converted invoiced and cancelled
- Customers with credit terms of cash on delivery net 30 net 45 and net 50
- Customer ledger with date range filters and print
- Products and inventory with units of pieces kilograms litres and boxes
- Stock adjustment with plus or minus quantity and a reason note
- Suppliers with supplier ledger and payments recorded against purchase orders
- Purchase orders with live document preview
- Expenses with this month all-time and average totals
- Reports for sales top customers top products inventory receivables and profit and loss
- Tax settings for GST service tax and sales tax
- AI chat assistant answering plain-English questions about your own data
- Bring your own OpenAI API key with model selection
- Three roles of admin sales manager and sales staff
- App settings for currency symbol app name and logo applied everywhere including prints

## Requirements

- A Google account (Gmail or Google Workspace)
- Google Sheets as the database — no server or MySQL needed
- Google Apps Script web app deployment access
- Modern browser (Chrome, Edge, Firefox or Safari)
- Optional: an OpenAI API key if you want the AI chat assistant
- No AI subscription needed to run the app itself

## What's included

- Full Apps Script source code (Code.gs + index.html)
- Google Sheets database structure with demo data
- Quotation, sales order and invoice modules
- Customer and supplier ledgers with print
- Products, inventory and stock adjustment
- Purchase orders and expenses
- Reports suite including profit and loss
- AI chat assistant wiring for your own OpenAI key
- The 5 AI prompts used to build the system
- Full video walkthrough
- Free support and paid customization on request

## FAQ

### When does stock actually get deducted?

On the sales order, not the quotation. A quotation is only a price offer, so it never touches inventory. Once the customer accepts and you convert it to a sales order, the items are deducted.

### Do I need to pay for AI to use this?

No. The application runs entirely on its own. The AI chat assistant is optional — it only activates if you enter your own OpenAI API key in settings, so you control the model and the cost.

### Can I change the currency and branding?

Yes. App settings hold the currency symbol, application name and logo, and they apply across the whole system including printed quotations, orders and invoices.

### How is tax handled?

Tax rates are editable records, not hard-coded values. You can add GST, service tax or sales tax entries and pick the rate when creating an invoice.

### Do I need hosting?

No. It deploys as a Google Apps Script web app with Google Sheets as the database, so it lives inside your own Google account with no separate hosting or database bill.

### What can each role do?

Admin, sales manager and sales staff each have a defined scope, and the About App page inside the system lists the full permission table so you can see exactly what is available to whom.

### Can I extend it myself?

Yes. The full source is included, and so are the five AI prompts used to build it — useful if you want to add a module with an AI coding assistant rather than from scratch.

### What is Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity?

Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity is a ready-made CRM & Sales, Inventory & Warehouse — a Google Apps Script web application that runs on your own Google account, sold with complete source code by Rameez Scripts (file code F1). A sales and inventory ERP that runs on Google Sheets, covering the full trading cycle — quotation, sales order, invoice, payment, ledger — with an AI chat assistant sitting on top of your own data. Built as an Apps Scri…

### How much does Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity cost?

Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity is sold as a one-time payment with no monthly fees — the exact price is shown on this page. Buyers in Pakistan and India see regional pricing on this page.

### Do I get the complete source code of Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity?

Yes. You receive the complete, unencrypted source code of Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity, so you can host it yourself, modify any part of it and extend it for your own business.

### Is there a live demo of Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity?

Yes — a full video demo of Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity is on this page, walking through every feature and screen before you buy.

### Does Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity include support after purchase?

Yes — every purchase includes 14 days of direct WhatsApp setup support from the developer, covering setup, installation errors and questions about the code.

### Can Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity be customized for my business?

Yes. Rameez Scripts builds custom changes on top of Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity — extra modules, your branding, integrations and reports — as a separate custom development service arranged on WhatsApp.

### How is Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity delivered after payment?

As soon as your payment is confirmed, the source code and setup video of Build AI Sales & Inventory Web App + AI Chat Assistant — Apps Script, Gemini, ChatGPT, Antigravity are delivered to your account and shared with you on WhatsApp.

## Contact

- WhatsApp: https://wa.me/923435347417
- Email: contact@rameezscripts.com
- Full catalog for AI assistants: https://rameezscripts.com/llms-full.txt
