Connecting to Sheet Database...

Dashboard

Yarn SKUs
-
Loading products...
Fabric SKUs
-
Loading products...
Low Stock Items
-
Need replenishment
Total Stock
-
Across all units
Inventory Health
-
SKUs above reorder limit
Top Active SKU
-
Most frequent transactions
Net Flow (30 Days)
- -
Incoming minus Outgoing

Stock Analytics

Recent Transactions

No recent activity records

All Specs

No Yarn Inventory Found

Make sure you have configured your sheet URL in Settings and have items listed in Yarn_Inventory sheet.

All GSM/Widths

No Fabric Inventory Found

Ensure items exist in the Fabric_Inventory sheet.

Date Filter:
Date
SKU
Item Name
Transaction Type
Remarks
Quantity

Database Connection Setup

This visual interface uses Google Sheets as a database via a Google Apps Script Web App endpoint. All stock entries and edits are done inside the sheet, keeping the app lighting fast.

Step-by-Step Instructions

1

Create a Google Sheet

Go to sheets.google.com and create a brand new empty spreadsheet. Name it something like "Yarn & Fabric Inventory".

2

Open Apps Script Editor

In the Google Sheets top menu, click on Extensions and then select Apps Script. This opens the script development panel in a new tab.

3

Paste the Backend Code

Clear out any default code in the editor, and copy-paste the entire contents of the code.gs file located in your project directory. Click the Save (floppy disk) icon.

4

Deploy as a Web App

Click on Deploy at the top right -> select New deployment.

Under the configuration gear, select Web app. Fill in the options exactly as follows:

  • Execute as: "Me (your-email@gmail.com)"
  • Who has access: "Anyone" (This is crucial to allow the PWA to fetch the data)

Click Deploy. Google will ask you to authorize permissions for the script to read/write spreadsheet files. Confirm the authorization.

5

Copy Web App URL

Once deployed, copy the generated Web app URL. It should look like: https://script.google.com/macros/s/AKfycby.../exec

Paste that URL in the input field above, and click Save & Connect. The system will automatically construct all sheets, populate sample stock, and load the dashboard!

Item Name

SKU-XYZ
Opening Stock
-
Current Stock
-
Specification
-
Color
-
Unit of Measure
-
Reorder Level
-

Item Transaction History