create invoice

This commit is contained in:
2026-01-17 19:25:32 +03:30
parent 02ab8fbc6a
commit d6d371b13a
5 changed files with 112 additions and 13 deletions
@@ -26,8 +26,6 @@ export class OrderItem extends BaseEntity {
@Property({ type: 'decimal', precision: 10, scale: 0 })
unitPrice!: number;
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
discount: number = 0;
@Property({ type: 'decimal', precision: 10, scale: 0 })
totalPrice!: number;