//TODO: Clean up this interface. A bit messy as we store the data in very different ways.

export interface DecodedPflLine {
  lbr_type: string;
  lbr_desc: string;
  lbr_rate: number;
  lbr_tax_in: boolean;
  lbr_taxp: number;
  lbr_adjP: number;
  lbr_tx_ty1: string;
  lbr_tx_in1: boolean;
  lbr_tx_ty2: string;
  lbr_tx_in2: boolean;
  lbr_tx_ty3: string;
  lbr_tx_in3: boolean;
  lbr_tx_ty4: string;
  lbr_tx_in4: boolean;
  lbr_tx_ty5: string;
  lbr_tx_in5: boolean;
}

export interface JobLaborRateFields {
  rate_laa: number;
  rate_lab: number;
  rate_lad: number;
  rate_las: number;
  rate_lar: number;
  rate_lae: number;
  rate_lag: number;
  rate_laf: number;
  rate_lam: number;
  rate_lau: number;
  rate_la1: number;
  rate_la2: number;
  rate_la3: number;
  rate_la4: number;
}
export interface CiecaPfl {
  LAA?: DecodedPflLine;
  LAB?: DecodedPflLine;
  LAD?: DecodedPflLine;
  LAS?: DecodedPflLine;
  LAR?: DecodedPflLine;
  LAE?: DecodedPflLine;
  LAG?: DecodedPflLine;
  LAF?: DecodedPflLine;
  LAM?: DecodedPflLine;
  LAU?: DecodedPflLine;
  LA1?: DecodedPflLine;
  LA2?: DecodedPflLine;
  LA3?: DecodedPflLine;
  LA4?: DecodedPflLine;
}

export interface DecodedPfl extends JobLaborRateFields {
  cieca_pfl: CiecaPfl;
}
