Implement Invoices fetching and uploading
This commit is contained in:
@@ -89,6 +89,17 @@ export class InvoicesService {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* قائمة جميع الفواتير للمكتب
|
||||
*/
|
||||
async findAllByTenant(tenantId: string): Promise<Invoice[]> {
|
||||
return this.invoiceRepository.find({
|
||||
where: { tenant_id: tenantId },
|
||||
relations: ['company'],
|
||||
order: { created_at: 'DESC' },
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* تفاصيل فاتورة
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user