// MaxAMove CRM — Financials: Expenses, Mileage Log, Monthly P&L

const IRS_RATE = 0.70; // 2026 IRS standard mileage rate $/mile

const SEED_EXPENSES = [
  { id: 'EX001', jobId: 'J005', jobName: 'Amanda Price', date: d(-7), crewPay: 720, fuel: 180, materials: 95, other: 0, otherNote: '', revenue: 5200 },
  { id: 'EX002', jobId: 'J006', jobName: 'Tyler Booth', date: d(-12), crewPay: 200, fuel: 35, materials: 0, other: 0, otherNote: '', revenue: 780 },
  { id: 'EX003', jobId: 'J002', jobName: 'Derek Huang', date: d(3), crewPay: 960, fuel: 220, materials: 140, other: 75, otherNote: 'Parking permits', revenue: 4800 },
];

const SEED_MILEAGE = [
  { id: 'MI001', jobId: 'J005', jobName: 'Amanda Price', date: d(-7), from: 'Austin, TX', to: 'Nashville, TN', miles: 892, purpose: 'Long distance move', reimbursable: true },
  { id: 'MI002', jobId: 'J006', jobName: 'Tyler Booth', date: d(-12), from: 'Dallas, TX', to: 'Fort Worth, TX', miles: 34, purpose: 'Local move', reimbursable: true },
  { id: 'MI003', jobId: 'J002', jobName: 'Derek Huang', date: d(3), from: 'Houston, TX', to: 'Austin, TX', miles: 165, purpose: 'Office relocation', reimbursable: true },
  { id: 'MI004', jobId: '', jobName: 'Supply run', date: d(-5), from: 'Austin, TX', to: 'Home Depot', miles: 18, purpose: 'Packing supplies pickup', reimbursable: false },
];

Object.assign(window, { SEED_EXPENSES, SEED_MILEAGE, IRS_RATE });
