export interface SelfOperatedLedgerRow {
  id: string;
  /** 导入模板「年份」列 */
  year: string;
  /** 导入模板「月份」列（1–12） */
  month: string;
  dispatchDate: string;
  businessName: string;
  driver: string;
  phone: string;
  plateNo: string;
  systemVehicleType: string;
  unitPrice: number;
  quantity: number;
  amount: number;
  hydrogenFee: number;
  etcFee: number;
  salary: number;
  electricityFee: number;
  manualReimbursement: number;
  dailySocialSecurityFee: number;
  dailyTrailerServiceFee: number;
  dailyTrailerFee: number;
  dailyParkingFee: number;
  dailyTireFee: number;
  vehicleFee: number;
  totalCost: number;
  profitLoss: number;
  multiTrip: string;
  routePricing: string;
  remark: string;
}

export interface SelfOperatedFilters {
  month: string;
  dispatchFrom: string;
  dispatchTo: string;
  businessName: string;
  plateNos: string[];
  systemVehicleType: string;
}

export const EMPTY_SELF_FILTERS: SelfOperatedFilters = {
  month: '',
  dispatchFrom: '',
  dispatchTo: '',
  businessName: '',
  plateNos: [],
  systemVehicleType: '',
};

export interface SelfOperatedKpiSummary {
  count: number;
  amount: number;
  totalCost: number;
  hydrogenFee: number;
  etcFee: number;
  profitLoss: number;
}
