Add NbtPercent column to GoodsReceipts and GoodsReceiptItems
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Distribution.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddGrnNbt : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "NbtPercent",
|
||||
table: "GoodsReceipts",
|
||||
type: "decimal(5,2)",
|
||||
precision: 5,
|
||||
scale: 2,
|
||||
nullable: false,
|
||||
defaultValue: 0m);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "NbtPercent",
|
||||
table: "GoodsReceiptItems",
|
||||
type: "decimal(5,2)",
|
||||
precision: 5,
|
||||
scale: 2,
|
||||
nullable: false,
|
||||
defaultValue: 0m);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "GoodsReceiptItems",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("44000000-0000-0000-0000-000000000001"),
|
||||
column: "NbtPercent",
|
||||
value: 0m);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "GoodsReceiptItems",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("44000000-0000-0000-0000-000000000002"),
|
||||
column: "NbtPercent",
|
||||
value: 0m);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "GoodsReceipts",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("43000000-0000-0000-0000-000000000001"),
|
||||
column: "NbtPercent",
|
||||
value: 0m);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "NbtPercent",
|
||||
table: "GoodsReceipts");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "NbtPercent",
|
||||
table: "GoodsReceiptItems");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -446,6 +446,10 @@ namespace Distribution.Migrations
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<decimal>("NbtPercent")
|
||||
.HasPrecision(5, 2)
|
||||
.HasColumnType("decimal(5,2)");
|
||||
|
||||
b.Property<DateTime>("ReceivedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
@@ -473,6 +477,7 @@ namespace Distribution.Migrations
|
||||
FK_ReceivedByUserId = new Guid("29000000-0000-0000-0000-000000000001"),
|
||||
FK_WarehouseId = new Guid("27000000-0000-0000-0000-000000000001"),
|
||||
IsActive = true,
|
||||
NbtPercent = 0m,
|
||||
ReceivedAt = new DateTime(2026, 8, 15, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
VatPercent = 0m
|
||||
});
|
||||
@@ -509,6 +514,10 @@ namespace Distribution.Migrations
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<decimal>("NbtPercent")
|
||||
.HasPrecision(5, 2)
|
||||
.HasColumnType("decimal(5,2)");
|
||||
|
||||
b.Property<int>("RejectedQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
@@ -541,6 +550,7 @@ namespace Distribution.Migrations
|
||||
FK_PurchaseOrderItemId = new Guid("42000000-0000-0000-0000-000000000001"),
|
||||
FreeQuantity = 0,
|
||||
IsActive = true,
|
||||
NbtPercent = 0m,
|
||||
RejectedQuantity = 0,
|
||||
UnitCost = 0m,
|
||||
VatPercent = 0m
|
||||
@@ -555,6 +565,7 @@ namespace Distribution.Migrations
|
||||
FK_PurchaseOrderItemId = new Guid("42000000-0000-0000-0000-000000000002"),
|
||||
FreeQuantity = 0,
|
||||
IsActive = true,
|
||||
NbtPercent = 0m,
|
||||
RejectedQuantity = 2,
|
||||
UnitCost = 0m,
|
||||
VatPercent = 0m
|
||||
|
||||
Reference in New Issue
Block a user