diff --git a/src/entity/cashier/cashier.ts b/src/entity/cashier/cashier.ts index f02688d..2317633 100644 --- a/src/entity/cashier/cashier.ts +++ b/src/entity/cashier/cashier.ts @@ -36,19 +36,25 @@ export class Cashier { @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) total_amount: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) amount_paid: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) balance_due: number; diff --git a/src/entity/cashier/cashier_item.ts b/src/entity/cashier/cashier_item.ts index 16fab4d..818f520 100644 --- a/src/entity/cashier/cashier_item.ts +++ b/src/entity/cashier/cashier_item.ts @@ -63,40 +63,52 @@ export class CashierItem { @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) guarantor_liability: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) subtotal: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) price: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) qty: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) amount_paid: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) balance_due: number; - + @Column({ nullable: true }) status: BillingItemStatus; diff --git a/src/entity/cashier/payment_received.ts b/src/entity/cashier/payment_received.ts index 69d4f47..8aef986 100644 --- a/src/entity/cashier/payment_received.ts +++ b/src/entity/cashier/payment_received.ts @@ -58,13 +58,17 @@ export class PaymentReceived { @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) total_amount: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) payment: number; @@ -88,13 +92,17 @@ export class PaymentReceived { @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) change: number; @Column({ nullable: true, - type: 'bigint' + type: 'decimal', + precision: 10, + scale: 2 }) exemption: number;