add: company excel
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user