How abdallahfathii/cashir-app works
This is a Windows WPF point-of-sale application for an agricultural pesticide shop. A cashier builds a cart, completes a sale, and the database persists the invoice and stock changes; separate screens manage products, review sales, record returns, monitor low stock, and report on sales. Reports can be exported as PDFs or shared through WhatsApp. The graph includes documented screens whose code was not sampled, but omits unverified navigation links. Source excerpts and the SOURCE INDEX support the shown calls; the README supplies broader feature coverage.
Main entry points: Database.cs Database Operations · SalesPage.xaml.cs Sales History · PosPage.xaml.cs Point of Sale · ReportsPage.xaml.cs Sales Reports
Components 18
Application Shell
- Application Startup
App.xaml.cs - Main Window
MainWindow.xaml.cs
Sales Workflows
- Point of Sale
PosPage.xaml.cs - Sales History
SalesPage.xaml.cs - Edit Sale Dialog
Editsaledialog.xaml.cs - Partial Returns
Returndialog.xaml.cs
Inventory Management
- Product Management
ProductsPage.xaml.cs - Product Editor
ProductDialog.xaml.cs - Low Stock Alerts
LowStockPage.xaml.cs
Reporting and Sharing
- Sales Reports
ReportsPage.xaml.cs - PDF Reports
Pdfhelper.cs - WhatsApp Messages
Whatsapphelper.cs
Data and Models
- Sale Models
Sale.cs - Product Model
Product.cs - Database Operations
Database.cs - Local SQLite Store
pesticide_pos.db
Other components
- Cashier / Staff
Connections 27
- Cashier / Staff → Point of Sale: rings sales
README.md - Cashier / Staff → Product Management: manages products
README.md - Cashier / Staff → Sales History: reviews invoices
README.md - Cashier / Staff → Sales Reports: views reports
README.md - Cashier / Staff → Low Stock Alerts: checks alerts
README.md - Application Startup → Database Operations: initializes
App.xaml.cs - Point of Sale → Database Operations: saves sales
PosPage.xaml.cs - Point of Sale → Database Operations: loads products
PosPage.xaml.cs - Point of Sale → Sale Models: builds sale
PosPage.xaml.cs - Sales History → Database Operations: loads and changes sales
SalesPage.xaml.cs - Sales History → Edit Sale Dialog: opens editor
SalesPage.xaml.cs - Sales History → Partial Returns: opens return
SalesPage.xaml.cs - Sales History → WhatsApp Messages: sends invoice
SalesPage.xaml.cs - Edit Sale Dialog → Database Operations: updates sale
Editsaledialog.xaml.cs - Partial Returns → Database Operations: records return
Returndialog.xaml.cs - Product Management → Database Operations: product access
ProductsPage.xaml.cs - Product Editor → Database Operations: saves product
ProductDialog.xaml.cs - Product Editor → Product Model: edits product
ProductDialog.xaml.cs - Low Stock Alerts → Database Operations: loads low stock
LowStockPage.xaml.cs - Sales Reports → Database Operations: loads sales and products
ReportsPage.xaml.cs - Sales Reports → PDF Reports: generates reports
ReportsPage.xaml.cs - Sales Reports → WhatsApp Messages: builds report messages
ReportsPage.xaml.cs - WhatsApp Messages → WhatsApp: opens message link
Whatsapphelper.cs - Database Operations → Product Model: reads and writes
Database.cs - Database Operations → Sale Models: reads and writes
Database.cs - Database Operations → Local SQLite Store: persists records
Database.cs - PDF Reports → Sale Models: formats sale data
Pdfhelper.cs