Use admin price-refresh logic for pricelist recalculation
This commit is contained in:
1 parent
1744e6a3b8
commit
8e5c4f5a7c
2 files changed
+192
-15
No files matched your search
@@ -110,6 +110,10 @@ func (r *ComponentRepository) Update(component *models.LotMetadata) error {
|
||||
return r.db.Save(component).Error
|
||||
}
|
||||
|
||||
func (r *ComponentRepository) DB() *gorm.DB {
|
||||
return r.db
|
||||
}
|
||||
|
||||
func (r *ComponentRepository) Create(component *models.LotMetadata) error {
|
||||
return r.db.Create(component).Error
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user