Quick start
From an empty server to a first sale
This walkthrough follows a single installation from the very first sign in to a paid invoice. It takes about twenty minutes and it touches every part of the product: the platform console, the workspace, the catalogue, the stock, the register and the storefront.
Before you start
- The server is running and
/healthzanswers. See installation if it does not. - You know the address of the installation, for example
https://inventory.example.com. - You can reach the database as the user of the
.envfile.
Set SEED_DEMO=true and restart the server. A workspace called demo appears with 24 products, 45 days of invoices and three users. You can then sign in as owner@demo.test with ShelftaraDemo123 and skip to the register. The rest of this page describes the path of a brand new workspace.
Step 1 — The platform administrator
The first start of the server creates one operator account in the platform layer. It is the only account that can create workspaces, change the plans and manage the billing.
| Address | Password | How to change it |
|---|---|---|
admin@shelftara.test | ShelftaraAdmin1 | Export ADMIN_EMAIL and ADMIN_PASSWORD before the first start, or change the password of the account from its profile page once you are signed in. |
The account is created only when it does not exist yet, so exporting the two variables later changes nothing. If you already started the server with the defaults, sign in with them and change the password from /app/profile.
Change it before the installation is reachable from the internet.
Step 2 — Sign in
Open /login and enter the address and the password. The operator lands on /platform, the console of the SaaS layer, which shows the workspaces, the plans, the monthly recurring revenue and the invoices that are not paid yet.
A signed in user of a workspace lands on /app/dashboard instead. The server decides by the tenant_id of the account: zero means the operator, anything else means a workspace.
Step 3 — Create the workspace
Open /platform/tenants and use the form to create the first business. The form asks for the name of the company, the name of the owner, the email address, a password of at least eight characters and the plan.
The slug of the workspace is derived from the name of the company and is made unique with a suffix if needed. That slug is what a subdomain, a /t/:slug path or a ?tenant= query resolves to.
Creating a workspace writes all of this in one transaction:
- the workspace row itself, with the currency, the time zone and the locale of the installation;
- the owner account, with the role
owner; - an active subscription for the chosen plan, on the monthly cycle;
- the starter data: a Main warehouse, a Piece unit of measure, the ten accounts of the standard chart of accounts, the store settings, a CRM pipeline called Sales pipeline with the stages New, Qualified, Proposal and Won, an Annual leave type and the Main floor of the restaurant module.
The event is written to the audit log with the action platform.tenant_create.
Step 4 — Sign in as the owner
Sign out of the operator console and sign in with the account of the owner. You now see the panel of the workspace.
The navigation on the left is built from the permissions of your role. The owner has all thirty-one of them, so every module is visible. A cashier sees only the dashboard, the catalogue, the stock, the customers, the sales and the register.
The dashboard of a brand new workspace shows zeroes and one empty chart. That is expected: every figure is computed from the data of the workspace, nothing is a constant.
Step 5 — Build the catalogue
Work in this order. Each screen lists what it holds and links to the form that creates a new record.
Units of measure
Open /app/units. The workspace already has the base unit Piece. Add the units you sell in — kilogram, litre, box — and set the conversion rate of the units that are not the base one.
Categories and brands
Open /app/categories and /app/brands. A category carries a name, a slug, a colour and a sort order; the colour is what the storefront uses for the tile of the category. A brand carries a name, a slug and a logo.
Warehouses
Open /app/warehouses. The workspace already has a Main warehouse, marked as the default. A warehouse carries a name, a code, an address, a city, a country and a phone number. Add the other places where you keep stock: they become the destinations of the transfers and the sources of the stock figures.
Products
Open /app/products and use New product. The form of a product carries the reference and the barcode, the name, the category, the brand, the unit, the cost price, the selling price, the promotional price, the tax rate, the minimum level, the picture and the description. The switches track batches, track serial numbers and track expiry dates prepare the product for the tracked variants, and has variants adds a size or a colour to the product.
Each line of a document takes the tax rate of the product at the moment it is saved, so a change of the rate of a product never rewrites the documents that are already issued.
Give the products a stock level
A new product has no quantity. Open /app/stock/adjustments/new, choose the warehouse, set the type to increase, give a reason such as Opening stock, add the lines with their quantities and save. Every adjustment writes the quantity before and the quantity after on each line, and a movement in the stock ledger.
Check the result under /app/stock: the page shows the quantity of every product per warehouse, the value at cost and a badge on the products that are below their minimum level.
Step 6 — Open the register
Open /app/pos. The register is the touch screen of the counter.
Open a shift
Go to /app/pos/shifts and open a shift with the cash you put in the drawer. A user can have only one open shift at a time. When you close the shift, the server adds the cash payments of the shift to the opening cash and compares the result with the cash you counted: the difference is the variance of the shift.
Ring up a sale
- Search a product by name, by reference or by barcode. The scanner types the barcode and presses Enter.
- Adjust the quantity of the line, the price or the discount of the line. The discount of the basket needs the permission
pos.discount. - Choose the customer, or leave the sale to the walk-in customer.
- Take the payment. Several payments can be combined on one sale, for example half in cash and half by card; the change due is shown to the cashier.
- Confirm the sale.
A confirmed sale writes, in a single transaction:
- an order with the number
ORD-00001, the channelposand the statuscompleted; - an invoice with the number
INV-00001, the statuspaid,partialorunpaidaccording to what was taken; - the lines of the order and of the invoice;
- the payments and their splits;
- a movement of sale in the stock ledger for every line, and the new quantity of the product in the warehouse;
- an entry in the audit log with the action
pos.sale.
Park a cart
When a customer wants to leave the goods aside, park the basket under a name. The parked carts are listed under /app/pos/holds and can be loaded back into the register by any user with the permission pos.use.
Step 7 — Take the first order
A business with a counter also sells online. Each workspace has its own shop, and the shop of a workspace is reached with the slug of the workspace.
Set the shop up
Open /app/store. The store settings carry the name of the shop, its slogan, its description, the logo, the banner, the theme, the announcement bar, the currency, the delivery threshold above which the shipping is not charged, the payment methods, the social addresses and the address of the business. The workspace was created with a modern theme and the two payment methods cod and bank_transfer.
Open the shop
Three addresses reach the shop of the workspace acme:
https://acme.inventory.example.com/store
https://inventory.example.com/store?tenant=acme
https://inventory.example.com/t/acme/store
Place an order
- Open the shop and add a product to the basket.
- Go to the basket, change the quantity or remove a line, then continue to the checkout.
- Fill in the name, the email address and the delivery address. The checkout adds the tax of the lines and the shipping when the basket is below the threshold of the store settings.
- Choose the payment method and place the order. The order is created with the number
SO-00001, the statuspendingand the payment statusunpaid. - You are sent to the tracking page of the order, where the customer can follow the state of the parcel.
Back in the panel, /app/store/orders lists the orders. The status of an order moves through pending, processing, shipped, completed and cancelled, and every change is written to the audit log.
Look at the result
The dashboard now shows the sales of the day, the month, the invoices that are open, the value of the stock, the receivables and the payables. Open /app/reports and run the Sales report: it lists every invoice of the period with its tax, what was paid and its status, and the export button writes the same table as a CSV file.
The first day checklist
| Done | Task | Where |
|---|---|---|
| ☐ | Change the password of the platform administrator | /app/profile |
| ☐ | Set APP_ENV=production, APP_DEBUG=false and a long APP_SECRET | .env |
| ☐ | Create the workspace of the business | /platform/tenants |
| ☐ | Enter the units, the categories and the brands | /app/units, /app/categories, /app/brands |
| ☐ | Enter the warehouses | /app/warehouses |
| ☐ | Enter the products and give them a stock level | /app/products, /app/stock/adjustments |
| ☐ | Open a shift and ring up a test sale | /app/pos |
| ☐ | Name the shop and set the payment methods | /app/store |
| ☐ | Point the domain of the shop at the server | DNS and the proxy |
| ☐ | Create the accounts of the staff and give them a role | /app/users, /app/roles |
| ☐ | Enter the suppliers and the first purchase | /app/suppliers, /app/purchases |
| ☐ | Take a dump of the database | Your own routine |
When something does not appear
- Empty dashboard
- The figures come from the data of the workspace. A dashboard of a new workspace shows zeroes. Add a sale and it changes.
- No menu entry
- The navigation is filtered by the permissions of the role. The owner has all of them; a user with a custom role sees only what the role allows.
- The shop shows the wrong business
- The workspace is resolved from the host name, from the path, from the query string or from the cookie
shelftara_tenant. Add?tenant=your-slugto the address, or clear the cookie. - The register refuses the sale
- Check the stock of the line in the warehouse of the sale. A line with a quantity that is not available is refused.
- The form says the security token is missing
- The CSRF cookie was dropped, often because the browser is on HTTPS while the cookie was set without the secure flag, or because the session expired. Reload the page.
- Cannot sign in
- An account with the role
store_customeris refused by the panel. Use an account with another role.