update: change the discount field of the invoice item from int to decimal

This commit is contained in:
mahyargdz
2025-04-19 12:47:46 +03:30
parent bf3402cc7a
commit 9a12a68cf3
3 changed files with 4 additions and 6 deletions
@@ -18,8 +18,8 @@ export class InvoiceItem extends BaseEntity {
@Column({ type: "int", nullable: false })
count: number;
@Column({ type: "int", nullable: false })
discount: number;
@Column({ type: "decimal", precision: 16, scale: 2, nullable: false, transformer: new DecimalTransformer() })
discount: Decimal;
@Column({ type: "decimal", precision: 16, scale: 2, nullable: false, transformer: new DecimalTransformer() })
unitPrice: Decimal;