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;