From 0f330faf108e2eb6589590bc37c9954ac1e1b7aa Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Tue, 28 Apr 2026 11:43:49 +0700 Subject: [PATCH] update --- src/entity/cashier/cashier.ts | 12 +++++++++--- src/entity/cashier/cashier_item.ts | 26 +++++++++++++++++++------- src/entity/cashier/payment_received.ts | 16 ++++++++++++---- 3 files changed, 40 insertions(+), 14 deletions(-) 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;