FactuGES_ERP/modules/customer-invoices/src/common/dto/shared/taxes-breakdown.dto.ts

23 lines
575 B
TypeScript
Raw Normal View History

2026-04-20 17:20:42 +00:00
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>;