Conversation
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughBumped Changes
Sequence DiagramsequenceDiagram
participant Client
participant InvoicesController
participant FiscalAPI
participant Response
rect rgba(200,230,201,0.5)
Client->>InvoicesController: POST /complemento-*(payload)
end
rect rgba(187,222,251,0.5)
InvoicesController->>InvoicesController: Build Invoice object (complement / payment)
InvoicesController->>FiscalAPI: invoices.create(invoice)
end
alt API Success
FiscalAPI->>Response: 201 Created (apiResponse)
Response->>Client: Return apiResponse
else API Failure
FiscalAPI->>Response: 4xx/5xx (apiResponse)
Response->>Client: Throw BadRequestException(apiResponse)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@package.json`:
- Line 30: The project is pinning "fiscalapi" to ^4.0.360 which removed legacy
invoice endpoints; search for any callsites/functions that POST to legacy routes
or build payloads for invoices (look for function names like createInvoice,
sendInvoice, postInvoice, submitInvoice or any direct fetch/axios calls to
"/api/v4/invoices/income", "/credit-note", "/payment", "/payroll",
"/local-taxes") and migrate them to use the unified POST /api/v4/invoices
endpoint and the new payload shape: move payroll, payment, and local-taxes
fields under invoice.complement.* (e.g., invoice.payroll ->
invoice.complement.payroll), update any tests and serializers to construct the
new invoice object, and remove usage of the discontinued endpoints or add
adapter code transforming old payloads to the new structure before calling POST
/api/v4/invoices.
In `@src/facturas/invoices.controller.ts`:
- Around line 1134-1141: Remove the duplicate route and docs decorators above
the crearComplementoNominaPorReferencias method: keep only the correct
`@Post`('complemento-nomina-por-referencias') and its matching
`@ApiOperation/`@ApiResponse annotations, and delete the earlier
`@Post`('complemento-nomina-referencias') plus its `@ApiOperation/`@ApiResponse to
avoid creating two endpoints and duplicate Swagger entries for
crearComplementoNominaPorReferencias.
mendozagit
left a comment
There was a problem hiding this comment.
Mismo feedback que los ejemplos de express:
Los ejemplos existentes de complemento de pago y el readme requieren cambios, Hay discusiones pendientes con Rabbit, ninguna aplica? yo leí al menos una que sí, hiciste dev DevTesting? porque puedo asegurarte de que los ejemplos de complementos de pago no funcionarán después del update de sdk, levanta los ejemplos y verifica que lo que estás haciendo no solo funciona, si no que lo que existe no está roto.
… consistency in the frontend
Summary by CodeRabbit
New Features
Chores