feat: update GetById method to preload InvIssue instead of ReturnLines
Deploy Application / deploy (push) Successful in 19s Details

This commit is contained in:
Habib Fatkhul Rohman 2025-12-09 14:49:13 +07:00
parent 3d9ad4cff1
commit afec1c2750
1 changed files with 1 additions and 4 deletions

View File

@ -41,10 +41,7 @@ func (r *inventoryReturnRepository) GetById(ctx context.Context, tx *gorm.DB, id
var ret entities.TInventoryReturnEntity
if err := tx.WithContext(ctx).
Preload("Client").
Preload("ReturnLines").
Preload("ReturnLines.Product").
Preload("ReturnLines.Product.Uom").
Preload("ReturnLines.Product.DimUom").
Preload("InvIssue").
First(&ret, "id = ?", id).Error; err != nil {
return ret, err
}