forked from sanchezvem/PyroFetes
Some fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user