| |
| |
| |
| |
|
|
| import { TireProduct, StaffUser, Invoice, StockHistoryItem, SystemSettings } from './types'; |
|
|
| export const INITIAL_STAFF: StaffUser[] = [ |
| { id: '1', name: 'Haider Ali', email: 'haider@traders.com', role: 'owner', active: true }, |
| { id: '2', name: 'Zain Brother', email: 'zain@traders.com', role: 'manager', active: true }, |
| { id: '3', name: 'Kamran Ali', email: 'kamran@traders.com', role: 'cashier', active: true }, |
| { id: '4', name: 'Ahmad Shah', email: 'ahmad@traders.com', role: 'cashier', active: false }, |
| ]; |
|
|
| export const INITIAL_SETTINGS: SystemSettings = { |
| shopName: 'Haider Brother Traders Tire Shop', |
| shopAddress: 'Plot 4, Main Chaman Road, Quetta, Pakistan', |
| shopPhone: '+92 300 1234567', |
| taxName: 'Sales Tax (SRB)', |
| taxRate: 15, |
| currencyCode: 'PKR', |
| currencySymbol: '₨', |
| }; |
|
|
| export const INITIAL_PRODUCTS: TireProduct[] = [ |
| { |
| id: 'p1', |
| sku: 'YOKO2055516', |
| brand: 'Yokohama', |
| model: 'Advan DB V552', |
| size: '205/55 R16', |
| category: 'Passenger', |
| stock: 42, |
| minStock: 10, |
| price: 32500, |
| purchasePrice: 26000, |
| description: 'Ultra quiet premium comfort radial tire. Excellent wet of dry grip.', |
| }, |
| { |
| id: 'p2', |
| sku: 'BRIDGE1956515', |
| brand: 'Bridgestone', |
| model: 'Ecopia EP150', |
| size: '195/65 R15', |
| category: 'Passenger', |
| stock: 8, |
| minStock: 15, |
| price: 24000, |
| purchasePrice: 19500, |
| description: 'Fuel-efficient eco tire with reliable braking and rolling resistance features.', |
| }, |
| { |
| id: 'p3', |
| sku: 'DUN1856514', |
| brand: 'Dunlop', |
| model: 'SP Touring R1', |
| size: '185/65 R14', |
| category: 'Passenger', |
| stock: 65, |
| minStock: 20, |
| price: 18500, |
| purchasePrice: 14800, |
| description: 'Robust on-road performance, ideal for daily commutes on variable road surfaces.', |
| }, |
| { |
| id: 'p4', |
| sku: 'GEN1757013', |
| brand: 'General Tire', |
| model: 'Euro Star', |
| size: '175/70 R13', |
| category: 'Passenger', |
| stock: 120, |
| minStock: 30, |
| price: 14500, |
| purchasePrice: 11200, |
| description: 'Extremely durable, steel belted local radial built for Pakistani road terrain.', |
| }, |
| { |
| id: 'p5', |
| sku: 'MIC2256517', |
| brand: 'Michelin', |
| model: 'Primacy SUV', |
| size: '225/65 R17', |
| category: 'SUV', |
| stock: 18, |
| minStock: 8, |
| price: 49000, |
| purchasePrice: 41000, |
| description: 'Exceptional safety and handling for crossover SUVs. Extremely smooth ride.', |
| }, |
| { |
| id: 'p6', |
| sku: 'SAIL2657016', |
| brand: 'Sailun', |
| model: 'Terramax A/T', |
| size: '265/70 R16', |
| category: 'SUV', |
| stock: 14, |
| minStock: 6, |
| price: 38000, |
| purchasePrice: 29800, |
| description: 'Rugged all-terrain tire with deep multi-step grooves for high dirt-road traction.', |
| }, |
| { |
| id: 'p7', |
| sku: 'DB3158022', |
| brand: 'Double Star', |
| model: 'DS806 Radial', |
| size: '315/80 R22.5', |
| category: 'Truck/Bus', |
| stock: 3, |
| minStock: 5, |
| price: 88500, |
| purchasePrice: 74000, |
| description: 'Commercial steer & trailer tire with maximum ply rating and heavy load design.', |
| }, |
| ]; |
|
|
| export const INITIAL_HISTORY: StockHistoryItem[] = [ |
| { |
| id: 'h1', |
| productId: 'p2', |
| productLabel: 'Bridgestone Ecopia EP150 (195/65 R15)', |
| dateTime: '2026-05-15T09:30:00Z', |
| type: 'STOCK_IN', |
| quantity: 40, |
| resultingStock: 48, |
| adjustedBy: 'Zain Brother (Manager)', |
| reason: 'Import batch cargo clearance directly from Port Qasim.', |
| }, |
| { |
| id: 'h2', |
| productId: 'p2', |
| productLabel: 'Bridgestone Ecopia EP150 (195/65 R15)', |
| dateTime: '2026-05-28T14:15:00Z', |
| type: 'STOCK_OUT', |
| quantity: 40, |
| resultingStock: 8, |
| adjustedBy: 'Kamran Ali (Cashier)', |
| reason: 'Bulk invoice sale to Al-Sadiq Rent-a-Car fleet.', |
| }, |
| { |
| id: 'h3', |
| productId: 'p4', |
| productLabel: 'General Tire Euro Star (175/70 R13)', |
| dateTime: '2026-06-01T11:00:00Z', |
| type: 'MANUAL_ADJUSTMENT', |
| quantity: 50, |
| resultingStock: 120, |
| adjustedBy: 'Haider Ali (Owner)', |
| reason: 'Physical mid-year audit recount: matched warehouse count variance.', |
| }, |
| { |
| id: 'h4', |
| productId: 'p7', |
| productLabel: 'Double Star DS806 Radial (315/80 R22.5)', |
| dateTime: '2026-06-02T16:45:00Z', |
| type: 'STOCK_OUT', |
| quantity: 2, |
| resultingStock: 3, |
| adjustedBy: 'Kamran Ali (Cashier)', |
| reason: 'Direct retail sale & installation on Hino Dump Truck.', |
| }, |
| ]; |
|
|
| |
| export const INITIAL_INVOICES: Invoice[] = [ |
| { |
| id: 'inv1', |
| invoiceNumber: 'HBT-2026-1001', |
| dateTime: '24-01-2026 10:15:00', |
| customerName: 'Mehmood Khan', |
| customerPhone: '0333-8889912', |
| customerVehicle: 'Toyota Corolla (AJK-552)', |
| items: [ |
| { |
| id: 'li1', |
| productId: 'p2', |
| brand: 'Bridgestone', |
| model: 'Ecopia EP150', |
| size: '195/65 R15', |
| quantity: 4, |
| unitPrice: 23500, |
| totalPrice: 94000, |
| } |
| ], |
| subtotal: 94000, |
| taxRate: 15, |
| taxAmount: 14100, |
| discount: 5000, |
| total: 103100, |
| currencySymbol: '₨', |
| currencyCode: 'PKR', |
| paymentMethod: 'CASH', |
| paymentStatus: 'PAID', |
| cashierName: 'Kamran Ali', |
| notes: 'Free wheel balancing & tire valves supplied.', |
| dateTimeOriginalISO: '2026-01-24T10:15:00Z', |
| }, |
| { |
| id: 'inv2', |
| invoiceNumber: 'HBT-2026-1002', |
| dateTime: '12-02-2026 14:45:00', |
| customerName: 'Sufyan Transport Ltd', |
| customerPhone: '0300-5557711', |
| customerVehicle: 'Fuso Falcon (ST-9002)', |
| items: [ |
| { |
| id: 'li2', |
| productId: 'p7', |
| brand: 'Double Star', |
| model: 'DS806 Radial', |
| size: '315/80 R22.5', |
| quantity: 6, |
| unitPrice: 87000, |
| totalPrice: 522000, |
| } |
| ], |
| subtotal: 522000, |
| taxRate: 15, |
| taxAmount: 78300, |
| discount: 22000, |
| total: 578300, |
| currencySymbol: '₨', |
| currencyCode: 'PKR', |
| paymentMethod: 'BANK_TRANSFER', |
| paymentStatus: 'PAID', |
| gatewayInfo: { |
| gatewayName: 'Bank', |
| transactionId: 'IBFT-MBL-88192003', |
| authTime: '2026-02-12T15:00:00Z', |
| }, |
| cashierName: 'Zain Brother', |
| notes: 'Institutional customer discount applied.', |
| dateTimeOriginalISO: '2026-02-12T14:45:00Z', |
| }, |
| { |
| id: 'inv3', |
| invoiceNumber: 'HBT-2026-1003', |
| dateTime: '05-03-2026 11:20:00', |
| customerName: 'Dr. Tariq Jamil', |
| customerPhone: '0312-9988111', |
| customerVehicle: 'Honda Civic (ICT-LE-720)', |
| items: [ |
| { |
| id: 'li3', |
| productId: 'p1', |
| brand: 'Yokohama', |
| model: 'Advan DB V552', |
| size: '205/55 R16', |
| quantity: 4, |
| unitPrice: 32000, |
| totalPrice: 128000, |
| } |
| ], |
| subtotal: 128000, |
| taxRate: 15, |
| taxAmount: 19200, |
| discount: 3000, |
| total: 144200, |
| currencySymbol: '₨', |
| currencyCode: 'PKR', |
| paymentMethod: 'CARD', |
| paymentStatus: 'PAID', |
| gatewayInfo: { |
| gatewayName: 'Stripe', |
| transactionId: 'ch_stripe_99a8b77c11', |
| authTime: '2026-03-05T11:22:15Z', |
| }, |
| cashierName: 'Kamran Ali', |
| dateTimeOriginalISO: '2026-03-05T11:20:00Z', |
| }, |
| { |
| id: 'inv4', |
| invoiceNumber: 'HBT-2026-1004', |
| dateTime: '18-04-2026 16:30:00', |
| customerName: 'Bilal Khan Achakzai', |
| customerPhone: '0336-7788199', |
| customerVehicle: 'Toyota Land Cruiser (V8-6600)', |
| items: [ |
| { |
| id: 'li4', |
| productId: 'p6', |
| brand: 'Sailun', |
| model: 'Terramax A/T', |
| size: '265/70 R16', |
| quantity: 4, |
| unitPrice: 38000, |
| totalPrice: 152000, |
| } |
| ], |
| subtotal: 152000, |
| taxRate: 15, |
| taxAmount: 22800, |
| discount: 0, |
| total: 174800, |
| currencySymbol: '₨', |
| currencyCode: 'PKR', |
| paymentMethod: 'MOBILE_WALLET', |
| paymentStatus: 'PAID', |
| gatewayInfo: { |
| gatewayName: 'EasyPaisa', |
| transactionId: 'EP-92200192', |
| authTime: '2026-04-18T16:35:00Z', |
| }, |
| cashierName: 'Kamran Ali', |
| dateTimeOriginalISO: '2026-04-18T16:30:00Z', |
| }, |
| { |
| id: 'inv5', |
| invoiceNumber: 'HBT-2026-1005', |
| dateTime: '22-05-2026 13:00:00', |
| customerName: 'Sardar Yaqoob', |
| customerPhone: '0303-3399120', |
| customerVehicle: 'Suzuki Alto (QA-991)', |
| items: [ |
| { |
| id: 'li5', |
| productId: 'p4', |
| brand: 'General Tire', |
| model: 'Euro Star', |
| size: '175/70 R13', |
| quantity: 2, |
| unitPrice: 14500, |
| totalPrice: 29000, |
| } |
| ], |
| subtotal: 29000, |
| taxRate: 15, |
| taxAmount: 4350, |
| discount: 1000, |
| total: 32350, |
| currencySymbol: '₨', |
| currencyCode: 'PKR', |
| paymentMethod: 'CASH', |
| paymentStatus: 'PAID', |
| cashierName: 'Ahmad Shah', |
| dateTimeOriginalISO: '2026-05-22T13:00:00Z', |
| }, |
| { |
| id: 'inv6', |
| invoiceNumber: 'HBT-2026-1006', |
| dateTime: '02-06-2026 11:45:00', |
| customerName: 'Asadullah Quetta Club', |
| customerPhone: '0345-2211440', |
| customerVehicle: 'Toyota Prado (BE-777)', |
| items: [ |
| { |
| id: 'li6', |
| productId: 'p5', |
| brand: 'Michelin', |
| model: 'Primacy SUV', |
| size: '225/65 R17', |
| quantity: 4, |
| unitPrice: 48500, |
| totalPrice: 194000, |
| }, |
| { |
| id: 'li7', |
| productId: 'p1', |
| brand: 'Yokohama', |
| model: 'Advan DB V552', |
| size: '205/55 R16', |
| quantity: 2, |
| unitPrice: 32500, |
| totalPrice: 65000, |
| } |
| ], |
| subtotal: 259000, |
| taxRate: 15, |
| taxAmount: 38850, |
| discount: 7850, |
| total: 290000, |
| currencySymbol: '₨', |
| currencyCode: 'PKR', |
| paymentMethod: 'CARD', |
| paymentStatus: 'PAID', |
| gatewayInfo: { |
| gatewayName: 'Stripe', |
| transactionId: 'ch_stripe_11x90cc', |
| authTime: '2026-06-02T11:51:00Z', |
| }, |
| cashierName: 'Kamran Ali', |
| notes: 'Premium nitrogen inflation filled for Prado tyres.', |
| dateTimeOriginalISO: '2026-06-02T11:45:00Z', |
| } |
| ] as (Invoice & { dateTimeOriginalISO: string })[]; |
|
|