forked from sanchezvem/pyrofetes-backend
Added missing field to display price of products on quotation and purchase order
This commit is contained in:
@@ -744,10 +744,15 @@ namespace PyroFetes.Migrations
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
|
||||
b.Property<int>("SupplierId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CustomerId");
|
||||
|
||||
b.HasIndex("SupplierId");
|
||||
|
||||
b.ToTable("Quotations");
|
||||
});
|
||||
|
||||
@@ -1553,7 +1558,7 @@ namespace PyroFetes.Migrations
|
||||
modelBuilder.Entity("PyroFetes.Models.PurchaseOrder", b =>
|
||||
{
|
||||
b.HasOne("PyroFetes.Models.Supplier", "Supplier")
|
||||
.WithMany()
|
||||
.WithMany("PurchaseOrders")
|
||||
.HasForeignKey("SupplierId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
@@ -1588,7 +1593,15 @@ namespace PyroFetes.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PyroFetes.Models.Supplier", "Supplier")
|
||||
.WithMany("Quotations")
|
||||
.HasForeignKey("SupplierId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Customer");
|
||||
|
||||
b.Navigation("Supplier");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PyroFetes.Models.QuotationProduct", b =>
|
||||
@@ -1957,6 +1970,10 @@ namespace PyroFetes.Migrations
|
||||
modelBuilder.Entity("PyroFetes.Models.Supplier", b =>
|
||||
{
|
||||
b.Navigation("Prices");
|
||||
|
||||
b.Navigation("PurchaseOrders");
|
||||
|
||||
b.Navigation("Quotations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PyroFetes.Models.Truck", b =>
|
||||
|
||||
Reference in New Issue
Block a user