Fixed error of display with price of product in all documents
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user