diff --git a/modules/customer-invoices/src/api/application/presenters/domain/customer-invoice.full.presenter.ts b/modules/customer-invoices/src/api/application/presenters/domain/customer-invoice.full.presenter.ts index 3b3b852a..965c544a 100644 --- a/modules/customer-invoices/src/api/application/presenters/domain/customer-invoice.full.presenter.ts +++ b/modules/customer-invoices/src/api/application/presenters/domain/customer-invoice.full.presenter.ts @@ -54,7 +54,7 @@ export class CustomerInvoiceFullPresenter extends Presenter< customer_id: invoice.customerId.toString(), recipient, - taxes: invoice.taxes.getCodesToString(), + taxes: invoice.taxes.map((tax) => tax.tax.code).join(), payment_method: payment, diff --git a/modules/customer-invoices/src/api/domain/entities/item-taxes/index.ts b/modules/customer-invoices/src/api/domain/entities/item-taxes/index.ts index f5bef2b9..de5994ce 100644 --- a/modules/customer-invoices/src/api/domain/entities/item-taxes/index.ts +++ b/modules/customer-invoices/src/api/domain/entities/item-taxes/index.ts @@ -1,2 +1 @@ -export * from "./item-tax"; export * from "./item-taxes"; diff --git a/modules/customer-invoices/src/api/infrastructure/express/customer-invoices.routes.ts b/modules/customer-invoices/src/api/infrastructure/express/customer-invoices.routes.ts index 6f5ff708..0c268273 100644 --- a/modules/customer-invoices/src/api/infrastructure/express/customer-invoices.routes.ts +++ b/modules/customer-invoices/src/api/infrastructure/express/customer-invoices.routes.ts @@ -114,9 +114,7 @@ export const customerInvoicesRouter = (params: ModuleParams) => { const controller = new ReportCustomerInvoiceController(useCase); return controller.execute(req, res, next); } - ); - -router.put( + ); /*router.put( "/:invoice_id/issue", //checkTabContext, validateRequest(XXX, "params"), @@ -126,7 +124,8 @@ router.put( const controller = new IssueCustomerInvoiceController(useCase); return controller.execute(req, res, next); } - +); +*/ app.use(`${baseRoutePath}/customer-invoices`, router); };