From cffde82b22725a704ce02016326d65085c6f174d Mon Sep 17 00:00:00 2001 From: avicenan Date: Tue, 7 Apr 2026 11:36:42 +0700 Subject: [PATCH] fix(pharmacy): add unit price col --- src/entity/emr/emr_compounding_medicine.ts | 3 +++ src/entity/emr/emr_prescription.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/entity/emr/emr_compounding_medicine.ts b/src/entity/emr/emr_compounding_medicine.ts index ad6ee1a..c91c49d 100644 --- a/src/entity/emr/emr_compounding_medicine.ts +++ b/src/entity/emr/emr_compounding_medicine.ts @@ -59,6 +59,9 @@ export class EmrCompoundingMedicine { @OneToMany(() => EmrCompoundingMedicineItem, (item) => item.compounding_medicine, { cascade: true }) items: EmrCompoundingMedicineItem[]; + @Column({ nullable: true, type: "numeric", precision: 15, scale: 2 }) + unit_price: number; + @Column() @CreateDateColumn() created_at: Date; diff --git a/src/entity/emr/emr_prescription.ts b/src/entity/emr/emr_prescription.ts index 1856b15..19bc82f 100644 --- a/src/entity/emr/emr_prescription.ts +++ b/src/entity/emr/emr_prescription.ts @@ -57,6 +57,9 @@ export class EmrPrescription { @JoinColumn({ name: "room_stock_id" }) room_stock: RoomStock; + @Column({ nullable: true, type: "numeric", precision: 15, scale: 2 }) + unit_price: number; + @Column() @CreateDateColumn() created_at: Date;