This commit is contained in:
wayanrivan
2026-04-28 11:43:49 +07:00
parent d04b9114c3
commit 0f330faf10
3 changed files with 40 additions and 14 deletions

View File

@ -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;

View File

@ -63,37 +63,49 @@ 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;

View File

@ -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;