.NET
Inventory & Sales Manager
A web app for a shop or small factory to manage products, stock, customers and sales orders. Saving an order updates the stock automatically, and every sale gets a printable invoice.
- Category
- .NET
- My role
- Solo developer: planned the database, built the backend and pages, wrote the order rules and tests, and deployed it.
- Tech stack
- ASP.NET Core MVC
- C#
- .NET 10
- SQL Server
- Entity Framework Core
- ASP.NET Core Identity
- Bootstrap 5
- Chart.js
- ClosedXML
- xUnit
- jQuery
Overview
Inventory & Sales Manager is a web app for a small shop or factory. Staff add products and customers, create sales orders, and print an invoice for each sale. The owner sees a dashboard with today's sales, a 7-day chart and a list of products running low. There are two roles. Admin can do everything. Staff can add, edit and sell, but cannot delete anything. I built it as a solo portfolio project to show how a business system works from login to invoice, with the rules kept in one place and tested.
The problem
Many small shops still track stock in a notebook or an Excel sheet. The numbers drift, someone sells an item that is already out of stock, and there is no clear record of who sold what. This app fixes that. When an order is saved, the stock goes down in the same step. If there is not enough stock, the order is refused with a clear message and nothing is saved. Old invoices never change, even if a product price changes later. Staff cannot delete records, so the history stays safe.
Features
- Login with two roles: Admin and Staff
- Dashboard with today's sales, totals, a 7-day sales chart and a low-stock list
- Products, categories and customers: add, edit, search, with pages for long lists
- New order screen: total and stock are worked out automatically when you save
- Order refused with a clear message if there is not enough stock
- Printable invoice page (print or save as PDF)
- Export all orders to Excel
- Only Admin can delete, and records that are in use cannot be deleted
- Works on phone and desktop
- Unit tests for the order rules





