This commit is contained in:
David Arranz 2026-02-17 15:32:50 +01:00
parent 2157ddeaa3
commit 7f77b18d52
10 changed files with 11 additions and 18 deletions

View File

@ -1,5 +0,0 @@
export * from "./customer-invoice-id-already-exits-error";
export * from "./entity-is-not-proforma-error";
export * from "./invalid-proforma-transition-error";
export * from "./proforma-cannot-be-converted-to-invoice-error";
export * from "./proforma-cannot-be-deleted-error";

View File

@ -10,16 +10,15 @@ import {
} from "@repo/rdx-ddd";
import { type Maybe, Result } from "@repo/rdx-utils";
import type { InvoicePaymentMethod } from "../common/entities";
import type {
InvoiceAmount,
InvoiceNumber,
InvoicePaymentMethod,
InvoiceRecipient,
InvoiceSerie,
InvoiceStatus,
} from "../common/value-objects";
import { IssuedInvoiceItems, type IssuedInvoiceTaxes, type VerifactuRecord } from "./entities";
} from "../../common";
import { IssuedInvoiceItems, type IssuedInvoiceTaxes, type VerifactuRecord } from "../entities";
export type IssuedInvoiceProps = {
companyId: UniqueID;

View File

@ -0,0 +1,5 @@
export * from "./customer-invoice-id-already-exits-error";
export * from "./entity-is-not-proforma-error";
export * from "./invalid-proforma-transition-error";
export * from "./proforma-cannot-be-converted-to-invoice-error";
export * from "./proforma-cannot-be-deleted-error";

View File

@ -7,7 +7,6 @@ import {
type ErrorToApiRule,
ValidationApiError,
} from "@erp/core/api";
import { isProformaCannotBeDeletedError } from "@erp/customer-invoices/api/domain/errors";
import {
type CustomerInvoiceIdAlreadyExistsError,
@ -18,6 +17,7 @@ import {
isEntityIsNotProformaError,
isInvalidProformaTransitionError,
isProformaCannotBeConvertedToInvoiceError,
isProformaCannotBeDeletedError,
} from "../../../domain";
// Crea una regla específica (prioridad alta para sobreescribir mensajes)

View File

@ -1,9 +1,4 @@
import {
MetadataSchema,
MoneySchema,
PercentageSchema,
createPaginatedListSchema,
} from "@erp/core";
import { MetadataSchema, MoneySchema, createPaginatedListSchema } from "@erp/core";
import { z } from "zod/v4";
export const ListIssuedInvoicesResponseSchema = createPaginatedListSchema(
@ -39,8 +34,7 @@ export const ListIssuedInvoicesResponseSchema = createPaginatedListSchema(
}),
subtotal_amount: MoneySchema,
discount_percentage: PercentageSchema,
discount_amount: MoneySchema,
total_discount_amount: MoneySchema,
taxable_amount: MoneySchema,
taxes_amount: MoneySchema,
total_amount: MoneySchema,