Fixed error of display with price of product in all documents

This commit is contained in:
2026-05-25 16:38:33 +01:00
parent 48b9db6e1c
commit 3cb619cfa6
12 changed files with 2128 additions and 27 deletions
@@ -8,8 +8,11 @@ public class GetDeliveryNoteByIdWithProductsSpec : SingleResultSpecification<Del
public GetDeliveryNoteByIdWithProductsSpec(int deliveryNoteId)
{
Query
.Where(x => x.Id == deliveryNoteId)
.Include(x => x.ProductDeliveries!)
.ThenInclude(p => p.Product);
.ThenInclude(p => p.Product)
.ThenInclude(x => x!.Prices)
.Include(x => x.Deliverer)
.Include(x => x.Supplier)
.Where(x => x.Id == deliveryNoteId);
}
}
@@ -11,6 +11,7 @@ public class GetPurchaseOrderByIdWithProductsSpec : SingleResultSpecification<Pu
.Where(x => x.Id == purchaseOrderId)
.Include(x => x.PurchaseProducts!)
.ThenInclude(p => p.Product)
.ThenInclude(p => p!.Prices);
.ThenInclude(p => p!.Prices)
.Include(x => x.Supplier);
}
}
@@ -10,6 +10,7 @@ public class GetQuotationByIdWithProductsSpec : SingleResultSpecification<Quotat
Query
.Where(x => x.Id == quotationId)
.Include(x => x.QuotationProducts!)
.ThenInclude(p => p.Product);
.ThenInclude(x => x.Product)
.ThenInclude(x => x!.Prices);
}
}