added PDF generation for quotation

This commit is contained in:
2025-12-03 17:00:02 +01:00
parent d709654410
commit bee1cfb0e3
8 changed files with 226 additions and 0 deletions

View File

@@ -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);
}
}