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
@@ -0,0 +1,50 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PyroFetes.Migrations
{
/// <inheritdoc />
public partial class AddedMissingFieldForSupplierInDeliveryNote : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "SupplierId",
table: "DeliveryNotes",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.CreateIndex(
name: "IX_DeliveryNotes_SupplierId",
table: "DeliveryNotes",
column: "SupplierId");
migrationBuilder.AddForeignKey(
name: "FK_DeliveryNotes_Suppliers_SupplierId",
table: "DeliveryNotes",
column: "SupplierId",
principalTable: "Suppliers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_DeliveryNotes_Suppliers_SupplierId",
table: "DeliveryNotes");
migrationBuilder.DropIndex(
name: "IX_DeliveryNotes_SupplierId",
table: "DeliveryNotes");
migrationBuilder.DropColumn(
name: "SupplierId",
table: "DeliveryNotes");
}
}
}