export type LotTransformationListItem = {
  id: string;
  transformation_no: string;
  transformation_type: string;
  transformation_date: string;
  status: string;
  input_count: number;
  output_count: number;
  total_input_qty: number;
  total_output_qty: number;
};

export type LotTransformationDetail = {
  id: string;
  transformation_no: string;
  transformation_type: string;
  transformation_date: string;
  status: string;
  remainder_mode: string | null;
  remainder_qty: number | null;
  processing_loss_mode: string | null;
  processing_loss_qty: number | null;
  notes: string | null;
  inputs: Array<{
    id: string;
    source_lot: {
      id: string;
      lot_code: string;
      grade: string;
      available_qty: number;
      unit_code: string;
      warehouse: string;
      location: string | null;
    };
    qty_used: number;
    unit_cost_snapshot: number;
    notes: string | null;
  }>;
  outputs: Array<{
    id: string;
    result_lot: {
      id: string;
      lot_code: string;
      grade: string;
      available_qty: number;
      unit_code: string;
      warehouse: string;
      location: string | null;
      status: string;
    };
    qty_produced: number;
    unit_cost: number;
    notes: string | null;
  }>;
};
