Fix GRN pricing
This commit is contained in:
@@ -427,6 +427,10 @@ namespace Distribution.Migrations
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<decimal>("DiscountPercent")
|
||||
.HasPrecision(5, 2)
|
||||
.HasColumnType("decimal(5,2)");
|
||||
|
||||
b.Property<Guid?>("FK_PurchaseOrderId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
@@ -445,6 +449,10 @@ namespace Distribution.Migrations
|
||||
b.Property<DateTime>("ReceivedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<decimal>("VatPercent")
|
||||
.HasPrecision(5, 2)
|
||||
.HasColumnType("decimal(5,2)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("FK_PurchaseOrderId");
|
||||
@@ -460,11 +468,13 @@ namespace Distribution.Migrations
|
||||
{
|
||||
Id = new Guid("43000000-0000-0000-0000-000000000001"),
|
||||
CreatedAt = new DateTime(2026, 8, 15, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
DiscountPercent = 0m,
|
||||
FK_PurchaseOrderId = new Guid("41000000-0000-0000-0000-000000000001"),
|
||||
FK_ReceivedByUserId = new Guid("29000000-0000-0000-0000-000000000001"),
|
||||
FK_WarehouseId = new Guid("27000000-0000-0000-0000-000000000001"),
|
||||
IsActive = true,
|
||||
ReceivedAt = new DateTime(2026, 8, 15, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
||||
ReceivedAt = new DateTime(2026, 8, 15, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
VatPercent = 0m
|
||||
});
|
||||
});
|
||||
|
||||
@@ -480,6 +490,10 @@ namespace Distribution.Migrations
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<decimal>("DiscountPercent")
|
||||
.HasPrecision(5, 2)
|
||||
.HasColumnType("decimal(5,2)");
|
||||
|
||||
b.Property<Guid>("FK_GoodsReceiptId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
@@ -489,12 +503,23 @@ namespace Distribution.Migrations
|
||||
b.Property<Guid?>("FK_PurchaseOrderItemId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<int>("FreeQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("RejectedQuantity")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<decimal>("UnitCost")
|
||||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<decimal>("VatPercent")
|
||||
.HasPrecision(5, 2)
|
||||
.HasColumnType("decimal(5,2)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("FK_GoodsReceiptId");
|
||||
@@ -511,20 +536,28 @@ namespace Distribution.Migrations
|
||||
Id = new Guid("44000000-0000-0000-0000-000000000001"),
|
||||
AcceptedQuantity = 200,
|
||||
CreatedAt = new DateTime(2026, 8, 15, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
DiscountPercent = 0m,
|
||||
FK_GoodsReceiptId = new Guid("43000000-0000-0000-0000-000000000001"),
|
||||
FK_PurchaseOrderItemId = new Guid("42000000-0000-0000-0000-000000000001"),
|
||||
FreeQuantity = 0,
|
||||
IsActive = true,
|
||||
RejectedQuantity = 0
|
||||
RejectedQuantity = 0,
|
||||
UnitCost = 0m,
|
||||
VatPercent = 0m
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("44000000-0000-0000-0000-000000000002"),
|
||||
AcceptedQuantity = 98,
|
||||
CreatedAt = new DateTime(2026, 8, 15, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
DiscountPercent = 0m,
|
||||
FK_GoodsReceiptId = new Guid("43000000-0000-0000-0000-000000000001"),
|
||||
FK_PurchaseOrderItemId = new Guid("42000000-0000-0000-0000-000000000002"),
|
||||
FreeQuantity = 0,
|
||||
IsActive = true,
|
||||
RejectedQuantity = 2
|
||||
RejectedQuantity = 2,
|
||||
UnitCost = 0m,
|
||||
VatPercent = 0m
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1500,17 +1533,17 @@ namespace Distribution.Migrations
|
||||
new
|
||||
{
|
||||
Id = new Guid("24000000-0000-0000-0000-000000000001"),
|
||||
Code = "REG-0001",
|
||||
CreatedAt = new DateTime(2026, 8, 20, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
IsActive = true,
|
||||
Code = "REG-0001",
|
||||
Name = "Western Province"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("24000000-0000-0000-0000-000000000002"),
|
||||
Code = "REG-0002",
|
||||
CreatedAt = new DateTime(2026, 8, 20, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
IsActive = true,
|
||||
Code = "REG-0002",
|
||||
Name = "Central Province"
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user