chore: add manaual refer for ticket of super admin
This commit is contained in:
@@ -36,7 +36,7 @@ export class Invoice extends BaseEntity {
|
||||
tax: Decimal;
|
||||
|
||||
@Column({ type: "decimal", precision: 16, scale: 2, nullable: true, transformer: new DecimalTransformer() })
|
||||
lateFee?: Decimal;
|
||||
lateFee: Decimal | null;
|
||||
|
||||
//---------------------------------------------
|
||||
|
||||
@@ -44,7 +44,7 @@ export class Invoice extends BaseEntity {
|
||||
items: InvoiceItem[];
|
||||
|
||||
@ManyToOne(() => Discount, (discount) => discount.invoices, { nullable: true, onDelete: "RESTRICT" })
|
||||
discount?: Discount;
|
||||
discount: Discount | null;
|
||||
|
||||
get isOverdue(): boolean {
|
||||
return this.status === InvoiceStatus.PENDING && new Date() > this.dueDate;
|
||||
|
||||
Reference in New Issue
Block a user