Some fixes

This commit is contained in:
Cristiano
2026-03-26 15:35:11 +01:00
parent 3487baad87
commit 0312f02028
6 changed files with 10 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ public sealed class GetProductByIdSpec : Specification<Product>
public GetProductByIdSpec(int? productId)
{
Query
.Where(p => p.Id == productId);
.Where(p => p.Id == productId)
.Include(p => p.Prices);
}
}

View File

@@ -10,6 +10,7 @@ public class GetPurchaseOrderByIdWithProductsSpec : Specification<PurchaseOrder>
Query
.Where(p => p.Id == purchaseOrderId)
.Include(p => p.PurchaseProducts!)
.ThenInclude(pp => pp.Product);
.ThenInclude(pp => pp.Product)
.ThenInclude(pp=> pp!.Prices);
}
}
}

View File

@@ -8,7 +8,7 @@ public sealed class GetQuotationByIdSpec : Specification<Quotation>
public GetQuotationByIdSpec(int quotationId)
{
Query
.Include(q => q.QuotationProducts)
.Include(q => q.QuotationProducts)
.Where(x => x.Id == quotationId);
}
}