chore: add create customer and update customer for admin
This commit is contained in:
@@ -23,14 +23,14 @@ export class Invoice extends BaseEntity {
|
||||
@Column({ type: "enum", enum: InvoiceStatus, default: InvoiceStatus.PENDING })
|
||||
status: InvoiceStatus;
|
||||
|
||||
@Column({ type: "timestamp", nullable: false })
|
||||
@Column({ type: "timestamptz", nullable: false })
|
||||
dueDate: Date;
|
||||
|
||||
@Column({ type: "timestamp", nullable: true })
|
||||
paidAt: Date | null;
|
||||
@Column({ type: "timestamptz", nullable: true })
|
||||
paidAt?: Date;
|
||||
|
||||
@Column({ type: "int", default: 0 })
|
||||
tax: number;
|
||||
@Column({ type: "decimal", precision: 16, scale: 2, nullable: false, transformer: new DecimalTransformer() })
|
||||
tax: Decimal;
|
||||
|
||||
//---------------------------------------------
|
||||
|
||||
|
||||
@@ -187,7 +187,6 @@ export class InvoicesService {
|
||||
totalPrice: totalPrice,
|
||||
tax: taxAmount.toNumber(),
|
||||
status: InvoiceStatus.WAIT_PAYMENT,
|
||||
paidAt: new Date(),
|
||||
dueDate,
|
||||
items: [invoiceItem],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user