up
This commit is contained in:
@@ -58,6 +58,8 @@ export class InvoiceService {
|
||||
discount,
|
||||
paidAmount: 0,
|
||||
balance: 0,
|
||||
attachments: [],
|
||||
paymentMethod: dto.paymentMethod
|
||||
});
|
||||
em.persist(invoice);
|
||||
|
||||
@@ -125,7 +127,7 @@ export class InvoiceService {
|
||||
if (!item) {
|
||||
throw new NotFoundException('Invoice item not found');
|
||||
}
|
||||
if(item.confirmedAt){
|
||||
if (item.confirmedAt) {
|
||||
throw new BadRequestException('Invoice item already confirmed');
|
||||
}
|
||||
item.confirmedAt = new Date();
|
||||
|
||||
Reference in New Issue
Block a user