add item to invoice
This commit is contained in:
@@ -63,12 +63,12 @@ export class OrderController {
|
||||
return this.orderService.hardDeleteOrder(orderId);
|
||||
}
|
||||
|
||||
@Post('admin/orders/:orderId/add-item')
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiOperation({ summary: 'add item to Order ' })
|
||||
addItem(@Param('orderId') orderId: string, @Body() body: AddOrderItemDto) {
|
||||
return this.orderService.addOrderItem(orderId, body);
|
||||
}
|
||||
// @Post('admin/orders/:orderId/add-item')
|
||||
// @UseGuards(AuthGuard)
|
||||
// @ApiOperation({ summary: 'add item to Order ' })
|
||||
// addItem(@Param('orderId') orderId: string, @Body() body: AddOrderItemDto) {
|
||||
// return this.orderService.addOrderItem(orderId, body);
|
||||
// }
|
||||
|
||||
@Post('admin/orders/:orderId/create-invoice')
|
||||
@UseGuards(AuthGuard)
|
||||
|
||||
Reference in New Issue
Block a user