feat: implement POS order management system

- Added CreateOrderDto and CreateOrderItemDto for order creation.
- Developed PosOrdersController to handle order-related endpoints.
- Created PosOrdersService for business logic related to orders.
- Implemented PosOrdersWorkflow for order processing workflows.
- Established Prisma integration for database operations in orders.
- Introduced SalesInvoicesModule and related DTOs for sales invoice management.
- Enhanced SalesInvoicesService and SalesInvoicesWorkflow for invoice processing.
This commit is contained in:
2026-01-07 15:25:59 +03:30
parent b05048e62f
commit 5fd6611aca
37 changed files with 1974 additions and 291 deletions
+1 -7
View File
@@ -1,5 +1,4 @@
import { Body, Controller, Get, Param, Post, Query } from '@nestjs/common'
import { CreateSaleInvoiceDto } from './dto/create-pos.dto'
import { Controller, Get, Param, Query } from '@nestjs/common'
import { PosService } from './pos.service'
@Controller('pos')
@@ -32,9 +31,4 @@ export class PosController {
async getProductCategories(@Param('posId') posId: string) {
return this.posService.getProductCategories(Number(posId))
}
@Post('/:posId/orders/create')
async createOrder(@Param('posId') posId: string, @Body() dto: CreateSaleInvoiceDto) {
return this.posService.createOrder(Number(posId), dto)
}
}