FEAT[BE]: update warehouse DTO references in product warehouse and add UOM preload

This commit is contained in:
aguhh18
2026-01-21 13:52:46 +07:00
parent c2d2701d72
commit e8a89f0f17
3 changed files with 35 additions and 120 deletions
@@ -40,6 +40,7 @@ func (s productWarehouseService) withRelations(db *gorm.DB) *gorm.DB {
return db.
Preload("Product.Flags").
Preload("Product").
Preload("Product.Uom").
Preload("Warehouse").
Preload("Warehouse.Location").
Preload("Warehouse.Area").