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({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
total_amount: number; total_amount: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
amount_paid: number; amount_paid: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
balance_due: number; balance_due: number;

View File

@ -63,37 +63,49 @@ export class CashierItem {
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
guarantor_liability: number; guarantor_liability: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
subtotal: number; subtotal: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
price: number; price: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
qty: number; qty: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
amount_paid: number; amount_paid: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
balance_due: number; balance_due: number;

View File

@ -58,13 +58,17 @@ export class PaymentReceived {
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
total_amount: number; total_amount: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
payment: number; payment: number;
@ -88,13 +92,17 @@ export class PaymentReceived {
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
change: number; change: number;
@Column({ @Column({
nullable: true, nullable: true,
type: 'bigint' type: 'decimal',
precision: 10,
scale: 2
}) })
exemption: number; exemption: number;