Implement Invoices fetching and uploading
This commit is contained in:
@@ -28,6 +28,14 @@ import { CurrentUser } from '../../common/decorators/current-user.decorator';
|
||||
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||
export class InvoicesController {
|
||||
constructor(private invoicesService: InvoicesService) {}
|
||||
|
||||
/**
|
||||
* قائمة جميع الفواتير للمكتب
|
||||
*/
|
||||
@Get()
|
||||
async findAllByTenant(@CurrentUser() user: any) {
|
||||
return this.invoicesService.findAllByTenant(user.tenantId);
|
||||
}
|
||||
|
||||
/**
|
||||
* رفع فاتورة لشركة محددة
|
||||
|
||||
Reference in New Issue
Block a user