.
This commit is contained in:
parent
2157ddeaa3
commit
7f77b18d52
@ -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";
|
|
||||||
@ -10,16 +10,15 @@ import {
|
|||||||
} from "@repo/rdx-ddd";
|
} from "@repo/rdx-ddd";
|
||||||
import { type Maybe, Result } from "@repo/rdx-utils";
|
import { type Maybe, Result } from "@repo/rdx-utils";
|
||||||
|
|
||||||
import type { InvoicePaymentMethod } from "../common/entities";
|
|
||||||
import type {
|
import type {
|
||||||
InvoiceAmount,
|
InvoiceAmount,
|
||||||
InvoiceNumber,
|
InvoiceNumber,
|
||||||
|
InvoicePaymentMethod,
|
||||||
InvoiceRecipient,
|
InvoiceRecipient,
|
||||||
InvoiceSerie,
|
InvoiceSerie,
|
||||||
InvoiceStatus,
|
InvoiceStatus,
|
||||||
} from "../common/value-objects";
|
} from "../../common";
|
||||||
|
import { IssuedInvoiceItems, type IssuedInvoiceTaxes, type VerifactuRecord } from "../entities";
|
||||||
import { IssuedInvoiceItems, type IssuedInvoiceTaxes, type VerifactuRecord } from "./entities";
|
|
||||||
|
|
||||||
export type IssuedInvoiceProps = {
|
export type IssuedInvoiceProps = {
|
||||||
companyId: UniqueID;
|
companyId: UniqueID;
|
||||||
|
|||||||
@ -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";
|
||||||
@ -7,7 +7,6 @@ import {
|
|||||||
type ErrorToApiRule,
|
type ErrorToApiRule,
|
||||||
ValidationApiError,
|
ValidationApiError,
|
||||||
} from "@erp/core/api";
|
} from "@erp/core/api";
|
||||||
import { isProformaCannotBeDeletedError } from "@erp/customer-invoices/api/domain/errors";
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type CustomerInvoiceIdAlreadyExistsError,
|
type CustomerInvoiceIdAlreadyExistsError,
|
||||||
@ -18,6 +17,7 @@ import {
|
|||||||
isEntityIsNotProformaError,
|
isEntityIsNotProformaError,
|
||||||
isInvalidProformaTransitionError,
|
isInvalidProformaTransitionError,
|
||||||
isProformaCannotBeConvertedToInvoiceError,
|
isProformaCannotBeConvertedToInvoiceError,
|
||||||
|
isProformaCannotBeDeletedError,
|
||||||
} from "../../../domain";
|
} from "../../../domain";
|
||||||
|
|
||||||
// Crea una regla específica (prioridad alta para sobreescribir mensajes)
|
// Crea una regla específica (prioridad alta para sobreescribir mensajes)
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
import {
|
import { MetadataSchema, MoneySchema, createPaginatedListSchema } from "@erp/core";
|
||||||
MetadataSchema,
|
|
||||||
MoneySchema,
|
|
||||||
PercentageSchema,
|
|
||||||
createPaginatedListSchema,
|
|
||||||
} from "@erp/core";
|
|
||||||
import { z } from "zod/v4";
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
export const ListIssuedInvoicesResponseSchema = createPaginatedListSchema(
|
export const ListIssuedInvoicesResponseSchema = createPaginatedListSchema(
|
||||||
@ -39,8 +34,7 @@ export const ListIssuedInvoicesResponseSchema = createPaginatedListSchema(
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
subtotal_amount: MoneySchema,
|
subtotal_amount: MoneySchema,
|
||||||
discount_percentage: PercentageSchema,
|
total_discount_amount: MoneySchema,
|
||||||
discount_amount: MoneySchema,
|
|
||||||
taxable_amount: MoneySchema,
|
taxable_amount: MoneySchema,
|
||||||
taxes_amount: MoneySchema,
|
taxes_amount: MoneySchema,
|
||||||
total_amount: MoneySchema,
|
total_amount: MoneySchema,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user