23 lines
575 B
TypeScript
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>;
|