feat (item, infra): remove pointer on group
This commit is contained in:
@@ -41,11 +41,10 @@ func setData[T *e.CreateDto | *e.UpdateDto](input T, data *e.Medicine) {
|
||||
}
|
||||
|
||||
func createItem(input *e.CreateDto, event *pl.Event, tx *gorm.DB) error {
|
||||
igcMed := ero.ITGCMedicine
|
||||
itemCreate := ei.CreateDto{
|
||||
Code: pu.AddPrefix("med-", input.Code),
|
||||
Name: input.Name,
|
||||
ItemGroup_Code: &igcMed,
|
||||
ItemGroup_Code: ero.ITGCMedicine,
|
||||
Uom_Code: input.Uom_Code,
|
||||
Infra_Id: input.Infra_Id,
|
||||
Stock: input.Stock,
|
||||
|
||||
Reference in New Issue
Block a user