feat: enhance GetAllByReturnId method to preload Product.Uom along with related entities
Deploy Application / deploy (push) Successful in 19s Details

This commit is contained in:
Habib Fatkhul Rohman 2025-12-09 15:26:54 +07:00
parent cb85352475
commit 360db2526b
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ func (r *inventoryReturnLineRepository) GetAllByReturnId(ctx context.Context, re
var lines []entities.TInventoryReturnLineEntity
if err := r.db.WithContext(ctx).Where("inv_return_id = ?", returnId).
Preload("Product").
Preload("Product.Uom").
Preload("InvReturn").
Preload("Client").
Find(&lines).Error; err != nil {