export interface DecodedPfmLine {
  matl_type?: string;
  cal_code?: number;
  cal_desc?: string;
  cal_maxdlr?: number;
  cal_prip?: number;
  cal_secp?: number;
  mat_calp?: number;
  cal_prethr?: number;
  cal_pstthr?: number;
  cal_thramt?: number;
  cal_lbrmin?: number;
  cal_lbrrte?: number;
  cal_opcode?: string;
  tax_ind?: boolean;
  mat_taxp?: number;
  mat_adjp?: number;
  mat_tx_ty1?: string;
  mat_tx_in1?: boolean;
  mat_tx_ty2?: string;
  mat_tx_in2?: boolean;
  mat_tx_ty3?: string;
  mat_tx_in3?: boolean;
  mat_tx_ty4?: string;
  mat_tx_in4?: boolean;
  mat_tx_ty5?: string;
  mat_tx_in5?: boolean;
}

export interface JobMaterialRateFields {
  rate_mapa: number;
  tax_paint_mat_rt: number;
  rate_mash: number;
  tax_shop_mat_rt: number;
  rate_mahw: number;
  tax_levies_rt: number;
  rate_ma2s: number;
  rate_ma2t: number;
  rate_ma3s: number;
  rate_macs: number;
  rate_mabl: number;
}

export interface DecodedPfm extends JobMaterialRateFields {
  materials: {
    MAPA?: DecodedPfmLine;
    MASH?: DecodedPfmLine;
  };
  cieca_pfm?: DecodedPfmLine[];
}
