How sktraders399-cmyk/sk-traders works
Steel Trading ERP is a browser-based, multi-business financial management app for steel traders. Users configure suppliers and items, enter purchase invoices and payments, then review source-derived allocations, balances, discounts, and reports; the README describes FIFO allocation and advance handling as automatic. The app also covers sales, cash/bank operations, expenses, inventory, and MT bookings. Edges reflect the App dispatch and imports shown in excerpts or documented workflows; unsampled feature links are omitted where their runtime wiring is not established.
Main entry points: calculations.ts Allocation Engine · App.tsx App And Navigation · invoices-page.tsx Purchase Invoices · discount-wallet-page.tsx Discount Wallet
Components 25
Application Shell
- App And Navigation
src/App.tsx - Shared UI Components
src/components/ui - Browser Persistence
src/lib/storage-utils.ts
Trading Operations
- Supplier Records
src/components/suppliers-page.tsx - Item Records
src/components/items-page.tsx - Purchase Invoices
src/components/invoices-page.tsx - Invoice Details
src/components/purchase-invoice-details-page.tsx - MT Bookings
src/components/pages/MTBookingsPage.tsx - Customer Records
src/components/customers-page.tsx - Sales Invoices
src/components/sales-invoices-page.tsx
Finance And Discounts
- Supplier Payments
src/components/payments-page.tsx - Discount Wallet
src/components/discount-wallet-page.tsx - Annual Discounts
src/components/annual-discount-page.tsx - Fixed Schemes
src/components/fixed-schemes-page.tsx - Cash And Bank
src/components/pages/CashBankVoucherEntryWrapper.tsx - Expense Entries
src/components/expense-entries-page.tsx - Allocation Engine
src/lib/calculations.ts - Transaction Models
src/lib/types.ts
Reports And Exports
- Financial Dashboard
src/components/master-dashboard-page.tsx - Supplier And Customer Ledgers
src/components/supplier-ledger-page.tsx - Trading Reports
src/components/item-reports-page.tsx - Cash Bank Book
src/components/pages/CashBankBookReportWrapper.tsx - Report Calculations
src/lib/report-calculations.ts - PDF And Excel Export
src/lib/pdf-export.ts
Other components
- Business User
Connections 26
- Business User → App And Navigation: uses
- App And Navigation → Supplier Records: dispatches to
src/App.tsx - App And Navigation → Item Records: dispatches to
src/App.tsx - App And Navigation → Purchase Invoices: dispatches to
src/App.tsx - App And Navigation → Cash And Bank: dispatches to
src/App.tsx - App And Navigation → Cash Bank Book: dispatches to
src/App.tsx - App And Navigation → Browser Persistence: loads and saves
src/App.tsx - Purchase Invoices → Allocation Engine: formats amounts
src/components/invoices-page.tsx - Purchase Invoices → Supplier Records: uses supplier data
- Purchase Invoices → Item Records: uses item data
- Invoice Details → Allocation Engine: calculates costs
src/components/purchase-invoice-details-page.tsx - MT Bookings → Allocation Engine: calculates consumption
- Supplier Payments → Allocation Engine: allocates payments
- Allocation Engine → Discount Wallet: derives expected discounts
src/components/discount-wallet-page.tsx - Allocation Engine → Transaction Models: uses transaction models
src/lib/calculations.ts - Purchase Invoices → Supplier Payments: precedes FIFO allocation
README.md - Supplier Payments → Allocation Engine: FIFO allocates to invoices
README.md - Allocation Engine → Discount Wallet: feeds discount tracking
README.md - Annual Discounts → Discount Wallet: tracks rebate category
- Financial Dashboard → Report Calculations: derives report figures
- Supplier And Customer Ledgers → Report Calculations: derives ledger figures
- Trading Reports → Report Calculations: derives report figures
- Cash Bank Book → Cash And Bank: reports cash activity
- Discount Wallet → PDF And Excel Export: exports PDF
src/components/discount-wallet-page.tsx - Report Calculations → Allocation Engine: uses source calculations
src/lib/report-calculations.ts - App And Navigation → Shared UI Components: renders shared controls
src/App.tsx