From 48b9db6e1c0cb934b3e60c90d8e836c6d59ee63f Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Mon, 25 May 2026 16:21:58 +0100 Subject: [PATCH] Added SupplierId in DeliveryNote --- PyroFetes/Models/DeliveryNote.cs | 2 ++ PyroFetes/Models/Supplier.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/PyroFetes/Models/DeliveryNote.cs b/PyroFetes/Models/DeliveryNote.cs index 9cf8e53..6497767 100644 --- a/PyroFetes/Models/DeliveryNote.cs +++ b/PyroFetes/Models/DeliveryNote.cs @@ -7,10 +7,12 @@ public class DeliveryNote [Key] public int Id { get; set; } [Required, MaxLength(100)] public string? TrackingNumber { get; set; } public int DelivererId { get; set; } + public int SupplierId { get; set; } [Required] public DateOnly EstimateDeliveryDate { get; set; } [Required] public DateOnly ExpeditionDate { get; set; } public DateOnly? RealDeliveryDate { get; set; } public Deliverer? Deliverer { get; set; } + public Supplier? Supplier { get; set; } public List? ProductDeliveries { get; set; } } \ No newline at end of file diff --git a/PyroFetes/Models/Supplier.cs b/PyroFetes/Models/Supplier.cs index 36b7247..0820812 100644 --- a/PyroFetes/Models/Supplier.cs +++ b/PyroFetes/Models/Supplier.cs @@ -15,5 +15,6 @@ public class Supplier public List? Prices { get; set; } public List? Quotations { get; set; } + public List? DeliveryNotes { get; set; } public List? PurchaseOrders { get; set; } } \ No newline at end of file