export type HppPerFarmFlock = {
  project_flock_id: number;
  flock_name: string;
  total_cost_rp: number;
  feed_cost_rp: number;
  ovk_cost_rp: number;
  bop_cost_rp: number;
  depreciation_rp: number;
  other_cost_rp: number;
  egg_weight_recording_kg: number;
  egg_weight_do_kg: number;
  hpp_per_kg_production: number;
  hpp_per_kg_sales: number;
  average_doc_price_rp: number;
};

export type HppPerFarmRow = {
  location: { id: number; name: string };
  total_cost_rp: number;
  feed_cost_rp: number;
  ovk_cost_rp: number;
  bop_cost_rp: number;
  depreciation_rp: number;
  other_cost_rp: number;
  egg_weight_recording_kg: number;
  egg_weight_do_kg: number;
  hpp_per_kg_production: number;
  hpp_per_kg_sales: number;
  average_doc_price_rp: number;
  flocks: HppPerFarmFlock[];
};

export type HppPerFarmSummary = {
  total_cost_rp: number;
  total_egg_weight_recording_kg: number;
  total_egg_weight_do_kg: number;
  average_hpp_per_kg_production: number;
  average_hpp_per_kg_sales: number;
};

export type HppPerFarmReport = {
  start_date: string;
  end_date: string;
  rows: HppPerFarmRow[];
  summary: HppPerFarmSummary;
};
