chore: add some

This commit is contained in:
mahyargdz
2025-02-12 10:23:36 +03:30
parent 49c62018f0
commit 22198f3240
9 changed files with 105 additions and 22 deletions
@@ -18,12 +18,13 @@ export class InvoiceItem extends BaseEntity {
@Column({ type: "int", nullable: false })
count: number;
@Column({ type: "decimal", precision: 16, scale: 2, nullable: false, transformer: new DecimalTransformer() })
unitPrice: Decimal;
@Column({ type: "int", nullable: false })
discount: number;
//
@Column({ type: "decimal", precision: 16, scale: 2, nullable: false, transformer: new DecimalTransformer() })
unitPrice: Decimal;
@Column({ type: "decimal", precision: 16, scale: 2, nullable: false, transformer: new DecimalTransformer() })
totalPrice: Decimal;