forked from sanchezvem/PyroFetes
added PDF generation for quotation
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using Ardalis.Specification;
|
||||
using PyroFetes.Models;
|
||||
|
||||
namespace PyroFetes.Specifications.Quotations;
|
||||
|
||||
public class GetQuotationByIdWithProductsSpec : Specification<Quotation>
|
||||
{
|
||||
public GetQuotationByIdWithProductsSpec(int quotationId)
|
||||
{
|
||||
Query
|
||||
.Where(q => q.Id == quotationId)
|
||||
.Include(q => q.QuotationProducts!)
|
||||
.ThenInclude(qp => qp.Product);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user