How shzdasim/karobar-app works
Karobar-App is a Laravel/React business-management system. Users work through the web UI to record sales and purchases, manage inventory and parties, review ledgers, and generate reports. The README documents these business capabilities; the sampled code confirms sale and purchase invoice handling, stock updates, credit-ledger synchronization, and report generation. The frontend-to-API link is shown as unverified because the sampled frontend does not show its request calls. Some controller and feature details are documented or listed in the source index but were not sampled.
Main entry points: api.php API routing · Product.php Products and batches · ReportsController.php Reports · SaleInvoiceController.php Sales and returns
Components 18
Web interface
- React application
resources/js/app.jsx
API workflows
- API routing
routes/api.php - Sales and returns
app/Http/Controllers/SaleInvoiceController.php - Purchases and returns
app/Http/Controllers/PurchaseInvoiceController.php - Product and inventory
app/Http/Controllers/ProductController.php - Customer and supplier
app/Http/Controllers/CustomerController.php - Party ledger workflows
app/Http/Controllers/CustomerLedgerController.php - Reports
app/Http/Controllers/ReportsController.php - Data imports
app/Services/ProductImportService.php
Business records
- Products and batches
app/Models/Product.php - Sale invoices
app/Models/SaleInvoice.php - Purchase invoices
app/Models/PurchaseInvoice.php - Customer records
app/Models/Customer.php - Customer ledger
app/Models/CustomerLedger.php - Supplier records
app/Models/Supplier.php - Supplier ledger
app/Models/SupplierLedger.php
Ledgers and reporting
- Report data and PDFs
app/Http/Controllers/ReportsController.php
Other components
- Business user
Connections 28
- Business user → React application: uses
README.md - React application → API routing: requests
- API routing → Sales and returns: routes to
routes/api.php - API routing → Purchases and returns: routes to
routes/api.php - API routing → Product and inventory: routes to
routes/api.php - API routing → Customer and supplier: routes to
routes/api.php - API routing → Party ledger workflows: routes to
routes/api.php - API routing → Reports: routes to
routes/api.php - Sales and returns → Products and batches: updates stock
app/Http/Controllers/SaleInvoiceController.php - Sales and returns → Sale invoices: creates invoices
app/Http/Controllers/SaleInvoiceController.php - Sales and returns → Customer ledger: writes credit entries
app/Http/Controllers/SaleInvoiceController.php - Purchases and returns → Products and batches: updates stock
app/Http/Controllers/PurchaseInvoiceController.php - Purchases and returns → Purchase invoices: creates invoices
app/Http/Controllers/PurchaseInvoiceController.php - Purchases and returns → Supplier ledger: writes credit entries
app/Http/Controllers/PurchaseInvoiceController.php - Product and inventory → Products and batches: manages
app/Http/Controllers/ProductController.php - Customer and supplier → Customer records: manages
- Party ledger workflows → Customer records: reads
app/Http/Controllers/CustomerLedgerController.php - Party ledger workflows → Sale invoices: reads credit sales
app/Http/Controllers/CustomerLedgerController.php - Party ledger workflows → Customer ledger: reads and writes
app/Http/Controllers/CustomerLedgerController.php - Reports → Report data and PDFs: prepares
app/Http/Controllers/ReportsController.php - Reports → Products and batches: queries
app/Http/Controllers/ReportsController.php - Reports → Sale invoices: queries
app/Http/Controllers/ReportsController.php - Reports → Purchase invoices: queries
app/Http/Controllers/ReportsController.php - Data imports → Products and batches: imports products
app/Services/ProductImportService.php - Data imports → Customer records: imports customers
- Data imports → Supplier records: imports suppliers
app/Services/ProductImportService.php - Products and batches → Supplier records: belongs to supplier
app/Models/Product.php - Sale invoices → Customer records: belongs to customer
app/Models/SaleInvoice.php