FactuGES_ERP/modules/customer-invoices/src/common/dto/shared/taxes-breakdown.dto.ts
2026-04-20 19:20:42 +02:00

23 lines
575 B
TypeScript

import { MoneySchema, PercentageSchema } from "@erp/core";
import { z } from "zod/v4";
export const TaxesBreakdownSchema = z.object({
taxable_amount: MoneySchema,
iva_code: z.string(),
iva_percentage: PercentageSchema,
iva_amount: MoneySchema,
rec_code: z.string().nullable(),
rec_percentage: PercentageSchema,
rec_amount: MoneySchema,
retention_code: z.string().nullable(),
retention_percentage: PercentageSchema,
retention_amount: MoneySchema,
taxes_amount: MoneySchema,
});
export type TaxesBreakdownDTO = z.infer<typeof TaxesBreakdownSchema>;