unfinish: seeder and fix migration

This commit is contained in:
Hafizh A. Y
2026-01-07 16:09:08 +07:00
parent 4ee5bf3628
commit 8a57d439dc
4 changed files with 5 additions and 3 deletions
+1
View File
@@ -299,6 +299,7 @@ func seedProducts(tx *gorm.DB, createdBy uint, uoms map[string]uint, categories
Tax: tax,
ExpiryPeriod: seed.Expiry,
CreatedBy: createdBy,
IsVisible: seed.IsVisible,
}
if err := tx.Create(&product).Error; err != nil {
return err