feat(cashier): enum status for billing and billing item
This commit is contained in:
@ -13,6 +13,7 @@ import {
|
||||
import { EmrRegistration } from "../emr/emr_registration";
|
||||
import { Room } from "../room";
|
||||
import { CashierItem } from "./cashier_item";
|
||||
import { BillingStatus } from "../../types/billing_status";
|
||||
|
||||
@Entity("cashiers", { schema: "cashier" })
|
||||
export class Cashier {
|
||||
@ -51,8 +52,8 @@ export class Cashier {
|
||||
})
|
||||
balance_due: number;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
status: string;
|
||||
@Column({ nullable: true })
|
||||
status: BillingStatus;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
|
||||
@ -16,6 +16,7 @@ import { Service } from "../service";
|
||||
import { ServiceType } from "../service_type";
|
||||
import { ItemType } from "../pharmacy/item_type";
|
||||
import { ItemMaster } from "../pharmacy/item_master";
|
||||
import { BillingItemStatus } from "../../types/billing_item_status";
|
||||
|
||||
@Entity("cashier_item", { schema: "cashier" })
|
||||
export class CashierItem {
|
||||
@ -96,8 +97,8 @@ export class CashierItem {
|
||||
})
|
||||
balance_due: number;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
status: string;
|
||||
@Column({ nullable: true })
|
||||
status: BillingItemStatus;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
category: string;
|
||||
|
||||
@ -2,3 +2,6 @@ export * from "../entity/cashier/cashier";
|
||||
export * from "../entity/cashier/cashier_item";
|
||||
export * from "../entity/cashier/payment_received";
|
||||
export * from "../entity/cashier/payment_received_item";
|
||||
|
||||
export * from "../types/billing_status";
|
||||
export * from "../types/billing_item_status";
|
||||
|
||||
9
src/types/billing_item_status.ts
Normal file
9
src/types/billing_item_status.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Workflow status for cashier billing item.
|
||||
* Paid: billing item has been fully paid
|
||||
* Unpaid: billing item has not been paid
|
||||
*/
|
||||
export enum BillingItemStatus {
|
||||
PAID = "PAID",
|
||||
UNPAID = "UNPAID",
|
||||
}
|
||||
Reference in New Issue
Block a user