update: entity in cashier item
This commit is contained in:
@ -14,6 +14,7 @@ import { Department } from "../department";
|
|||||||
import { ServiceClass } from "../service_class";
|
import { ServiceClass } from "../service_class";
|
||||||
import { Service } from "../service";
|
import { Service } from "../service";
|
||||||
import { ServiceType } from "../service_type";
|
import { ServiceType } from "../service_type";
|
||||||
|
import { ItemType } from "../pharmacy/item_type";
|
||||||
|
|
||||||
@Entity("cashier_item", { schema: "cashier" })
|
@Entity("cashier_item", { schema: "cashier" })
|
||||||
export class CashierItem {
|
export class CashierItem {
|
||||||
@ -24,6 +25,10 @@ export class CashierItem {
|
|||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
service: Service;
|
service: Service;
|
||||||
|
|
||||||
|
@ManyToOne(() => ItemType, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
itemtype: ItemType;
|
||||||
|
|
||||||
@ManyToOne(() => ServiceType, { onDelete: "CASCADE" })
|
@ManyToOne(() => ServiceType, { onDelete: "CASCADE" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
servicetype: ServiceType;
|
servicetype: ServiceType;
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export class EmrRoomMedicalEquipment {
|
|||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
patient: EmrPatient;
|
patient: EmrPatient;
|
||||||
|
|
||||||
@OneToOne(() => RoomStock, { onDelete: "CASCADE" })
|
@ManyToOne(() => RoomStock, { onDelete: "CASCADE" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
roomstock: RoomStock;
|
roomstock: RoomStock;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user