add: company excel

This commit is contained in:
2026-02-17 10:29:26 +03:30
parent 42d78e15ff
commit 2cac3a4925
6 changed files with 431 additions and 16 deletions
+4 -4
View File
@@ -150,10 +150,10 @@ export class BillsService {
}
async remove(id: string, businessId: string) {
const bill = await this.billRepository.findOne({
id,
business: { id: businessId },
});
const bill = await this.billRepository.findOne(
{ id, business: { id: businessId } },
{ populate: ["invoices"] },
);
if (!bill) {
throw new BadRequestException("Bill not found");
}