// --- DTOs del catálogo (comparten contrato entre frontend/backend) ---

export type TaxItemType = {
  name: string; // p.ej. "IVA 21%"
  code: string; // p.ej. "iva_21"
  value: string; // porcentaje * 10^scale (21% => 2100)
  scale: string; // decimales de 'value' (normalmente 2)
  group: string; // p.ej. "IVA", "IGIC", "IPSI", "Retención"
  description?: string; // opcional
  aeat_code?: string | null; // opcional
};

export type TaxCatalogType = TaxItemType[];

export type TaxLookupItems = {
  label: string;
  value: string;
  group: string;
}[];
