export interface Fuelcontroll {
  id: number;
  name: string;  
  createdAt?: string;
  updatedAt?: string;
  vehicleId: number;
  personId: number;
  supplierId: number;
  companyId: number;
  code: string;
  keyTaxDocument: string;
  status: string;
  lat: number;
  lon: number;
  imei: string;
  battery: number;
  gasStationBrand: string;
  companyName: string;
  value: number;
  odometer: number;
  qrcodeData: string;
  date: string;
  items: {
    productId: number;
    productName?: string;  // ✅ NOVO: Nome do produto (Ex: "Etanol Comum")
    productCode?: string;  // ✅ NOVO: Código do produto
    value: number;
    quantity: number;      // ✅ CORRIGIDO: quantity ao invés de liters
    liters?: number;       // ✅ MANTER: Para compatibilidade com dados antigos
  }[];
}

export interface FuelControllDashBoardList {
  vehicleId: number;
  vehicleLicensePlate: string;
  personId: number;
  personName: string;
  companyId: number;
  companyName: string;
  date: string;
  totalValue: number;
  totalSupplies: number;
  type: string;
  value: number;
  liters: number;
  productId: number;
  gasStationBrand: string;
}