2026-01-07 15:25:59 +03:30
|
|
|
import { Controller, Delete, Get, Param } from '@nestjs/common'
|
2025-12-09 13:59:07 +03:30
|
|
|
import { SalesInvoicesService } from './sales-invoices.service'
|
|
|
|
|
|
|
|
|
|
@Controller('sales-invoices')
|
|
|
|
|
export class SalesInvoicesController {
|
|
|
|
|
constructor(private readonly service: SalesInvoicesService) {}
|
|
|
|
|
|
2026-01-07 15:25:59 +03:30
|
|
|
// @Post()
|
|
|
|
|
// create(@Body() dto: CreateSalesInvoiceDto) {
|
|
|
|
|
// return this.service.create(dto)
|
|
|
|
|
// }
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
@Get()
|
|
|
|
|
findAll() {
|
|
|
|
|
return this.service.findAll()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Get(':id')
|
|
|
|
|
findOne(@Param('id') id: string) {
|
|
|
|
|
return this.service.findOne(Number(id))
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-07 15:25:59 +03:30
|
|
|
// @Patch(':id')
|
|
|
|
|
// update(@Param('id') id: string, @Body() dto: UpdateSalesInvoiceDto) {
|
|
|
|
|
// return this.service.update(Number(id), dto)
|
|
|
|
|
// }
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
@Delete(':id')
|
|
|
|
|
remove(@Param('id') id: string) {
|
|
|
|
|
return this.service.remove(Number(id))
|
|
|
|
|
}
|
|
|
|
|
}
|