diff --git a/src/entity/emr/emr_compounding_medicine.ts b/src/entity/emr/emr_compounding_medicine.ts index c91c49d..5758886 100644 --- a/src/entity/emr/emr_compounding_medicine.ts +++ b/src/entity/emr/emr_compounding_medicine.ts @@ -59,8 +59,7 @@ 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; + unit_price?: number; @Column() @CreateDateColumn() diff --git a/src/entity/emr/emr_prescription.ts b/src/entity/emr/emr_prescription.ts index 19bc82f..90eb407 100644 --- a/src/entity/emr/emr_prescription.ts +++ b/src/entity/emr/emr_prescription.ts @@ -57,8 +57,7 @@ export class EmrPrescription { @JoinColumn({ name: "room_stock_id" }) room_stock: RoomStock; - @Column({ nullable: true, type: "numeric", precision: 15, scale: 2 }) - unit_price: number; + unit_price?: number; @Column() @CreateDateColumn()