feat: add cheque books and received cheques management
CI/CD - ERP Distribution / Build & Deploy Backend (pull_request) Failing after 11m8s
CI/CD - ERP Distribution / Build & Deploy Frontend (pull_request) Failing after 14m49s

- Implemented ChequeBooksPage for viewing and filtering cheque books.
- Added NewReceivedChequePage for recording received cheques.
- Created ReceivedChequesPage for listing and managing received cheques.
- Introduced API endpoints for bank accounts, cheque books, and received cheques.
- Defined types for payments including bank accounts, cheque books, and received cheques.
This commit is contained in:
Kalana B. Thilakarathna
2026-10-19 16:09:05 +05:30
parent f3f2b71bd4
commit 87c807c16c
39 changed files with 10095 additions and 50 deletions
@@ -22,6 +22,54 @@ namespace Distribution.Migrations
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
modelBuilder.Entity("Distribution.Models.BankAccount", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<string>("AccountName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("AccountNumber")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<int>("AccountType")
.HasColumnType("int");
b.Property<string>("BankName")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("CashAccountTypeName")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
b.Property<string>("CurrencyCode")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("varchar(10)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsDefault")
.HasColumnType("tinyint(1)");
b.HasKey("Id");
b.HasIndex("AccountType", "AccountName")
.IsUnique();
b.ToTable("BankAccounts");
});
modelBuilder.Entity("Distribution.Models.Brand", b =>
{
b.Property<Guid>("Id")
@@ -107,6 +155,152 @@ namespace Distribution.Migrations
});
});
modelBuilder.Entity("Distribution.Models.ChequeBook", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<int>("BranchId")
.HasColumnType("int");
b.Property<string>("ChequeBookNo")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<string>("Description")
.HasColumnType("longtext");
b.Property<string>("EndChequeNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<Guid>("FK_BankAccountId")
.HasColumnType("char(36)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<DateTime>("ReceivedDate")
.HasColumnType("datetime(6)");
b.Property<string>("StartChequeNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<int>("TotalLeaves")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ChequeBookNo")
.IsUnique();
b.HasIndex("FK_BankAccountId");
b.ToTable("ChequeBooks");
});
modelBuilder.Entity("Distribution.Models.ChequePage", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<decimal?>("Amount")
.HasColumnType("decimal(65,30)");
b.Property<string>("CancelReason")
.HasColumnType("longtext");
b.Property<string>("ChequeNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<bool?>("ClearedByBank")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("ClearedDate")
.HasColumnType("datetime(6)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
b.Property<string>("CurrencyCode")
.HasMaxLength(10)
.HasColumnType("varchar(10)");
b.Property<Guid>("FK_ChequeBookId")
.HasColumnType("char(36)");
b.Property<bool?>("IsAccountPayee")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool?>("IsCrossCheque")
.HasColumnType("tinyint(1)");
b.Property<bool?>("IsPostDated")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("IssueDate")
.HasColumnType("datetime(6)");
b.Property<int>("IssueStatus")
.HasColumnType("int");
b.Property<string>("Notes")
.HasColumnType("longtext");
b.Property<int?>("PayeeId")
.HasColumnType("int");
b.Property<string>("PayeeName")
.HasColumnType("longtext");
b.Property<int?>("PayeeType")
.HasColumnType("int");
b.Property<DateTime?>("PrintedAt")
.HasColumnType("datetime(6)");
b.Property<string>("PrintedBy")
.HasColumnType("longtext");
b.Property<string>("Purpose")
.HasColumnType("longtext");
b.Property<string>("ReferenceNo")
.HasColumnType("longtext");
b.Property<int?>("VoucherId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ChequeNo")
.IsUnique();
b.HasIndex("FK_ChequeBookId");
b.ToTable("ChequePages");
});
modelBuilder.Entity("Distribution.Models.Claim", b =>
{
b.Property<Guid>("Id")
@@ -1914,6 +2108,88 @@ namespace Distribution.Migrations
});
});
modelBuilder.Entity("Distribution.Models.ReceivedCheque", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<string>("AccountHolderName")
.HasColumnType("longtext");
b.Property<decimal>("Amount")
.HasColumnType("decimal(65,30)");
b.Property<int?>("BranchId")
.HasColumnType("int");
b.Property<DateTime>("ChequeDate")
.HasColumnType("datetime(6)");
b.Property<string>("ChequeNo")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<int>("CompanyId")
.HasColumnType("int");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("DepositDate")
.HasColumnType("datetime(6)");
b.Property<string>("DrawerBankBranch")
.HasColumnType("longtext");
b.Property<string>("DrawerBankName")
.HasColumnType("longtext");
b.Property<Guid?>("FK_DepositBankAccountId")
.HasColumnType("char(36)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<string>("Notes")
.HasColumnType("longtext");
b.Property<DateTime>("ReceivedDate")
.HasColumnType("datetime(6)");
b.Property<int?>("ReceivedFromId")
.HasColumnType("int");
b.Property<string>("ReceivedFromName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<int>("ReceivedFromType")
.HasColumnType("int");
b.Property<int?>("ReferenceId")
.HasColumnType("int");
b.Property<string>("ReferenceType")
.HasColumnType("longtext");
b.Property<int>("Status")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ChequeNo");
b.HasIndex("FK_DepositBankAccountId");
b.ToTable("ReceivedCheques");
});
modelBuilder.Entity("Distribution.Models.Region", b =>
{
b.Property<Guid>("Id")
@@ -2229,7 +2505,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000001"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("db785a23-5337-4fc8-b460-80c30b707d79"),
Id = new Guid("8c43c584-0f65-496d-a77c-a7df46bb175d"),
IsActive = true
},
new
@@ -2237,7 +2513,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000002"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("b07b73f9-2c8b-4dff-af5c-42622b026321"),
Id = new Guid("25576a9d-38cb-4ff5-b8ca-08df43d8a5a6"),
IsActive = true
},
new
@@ -2245,7 +2521,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000003"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("2e867ba5-2739-4ce4-b8d7-25b14ed392c1"),
Id = new Guid("e47016c1-a014-476f-ba87-4b3d438de62a"),
IsActive = true
},
new
@@ -2253,7 +2529,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000004"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("203d855d-f2d0-43d0-9d4f-9c4d0e8e7566"),
Id = new Guid("a24c0e9e-0194-4f96-823c-bdbdcd122d85"),
IsActive = true
},
new
@@ -2261,7 +2537,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000005"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("edd2a0ee-1ca9-47ff-9df6-7254929aef80"),
Id = new Guid("e76ef6e2-67ba-462f-a954-b1dbc5a95d8c"),
IsActive = true
},
new
@@ -2269,7 +2545,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000006"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("644b5ee5-f2c5-4187-a3d4-322cdd5c95d7"),
Id = new Guid("bba4fdaa-fd0e-43dc-aedf-331212bd06cd"),
IsActive = true
},
new
@@ -2277,7 +2553,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000007"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("70fdf921-f3fd-4e66-bfd2-cb7bb156fa34"),
Id = new Guid("bc66d450-af6b-426e-9d05-266ceba21fac"),
IsActive = true
},
new
@@ -2285,7 +2561,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000008"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("e2de5341-4146-4c84-a584-8788774c14df"),
Id = new Guid("9ee2196c-1e4b-452d-aaf6-7c55e3d2be2b"),
IsActive = true
},
new
@@ -2293,7 +2569,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000009"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("ece07436-4a0b-435c-888b-a22c14612dc4"),
Id = new Guid("63508590-7a30-4640-9fc9-d3d54978f581"),
IsActive = true
},
new
@@ -2301,7 +2577,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000010"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("b72f8737-7a21-48c0-809a-bc0d3fdd7063"),
Id = new Guid("82802a3f-23bc-45db-a531-d7e880dd7970"),
IsActive = true
},
new
@@ -2309,7 +2585,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000011"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("fe1efed0-271f-45e3-a58b-244f1115246f"),
Id = new Guid("65ccf5b6-754a-431a-81bf-d8e0587c956e"),
IsActive = true
},
new
@@ -2317,7 +2593,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000012"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("1b58e809-e4a0-4108-af6e-fd0dac7b3163"),
Id = new Guid("6c713413-362b-475a-846b-9f3382cf7a35"),
IsActive = true
},
new
@@ -2325,7 +2601,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000013"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("881e8e67-e2ee-47be-94f7-77da73a05365"),
Id = new Guid("6dfe68ff-f5a3-41a8-981b-ac108a81408e"),
IsActive = true
},
new
@@ -2333,7 +2609,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000014"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("e5d0baa8-9def-4b81-8727-5886b2906eaf"),
Id = new Guid("09c6b812-dc14-44a2-9362-429dfef3942d"),
IsActive = true
},
new
@@ -2341,7 +2617,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000015"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("a46ec771-5e79-4595-bb40-91e8a954a792"),
Id = new Guid("bf29a1bb-234e-47a3-922f-f0fb3a1daba0"),
IsActive = true
},
new
@@ -2349,7 +2625,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000016"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("ef8b1808-3b14-43a8-ba75-30551e643cc5"),
Id = new Guid("0d2f3497-4852-453e-a451-275e945b6c1d"),
IsActive = true
},
new
@@ -2357,7 +2633,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000017"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("50142904-8d40-424b-aeb3-53e8cb110445"),
Id = new Guid("41c13dbc-4f51-4134-891c-b6955f728d65"),
IsActive = true
},
new
@@ -2365,7 +2641,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000018"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("4bd67f53-7f84-492c-83f9-fd6488fa88b7"),
Id = new Guid("29bc0291-7a91-4fc5-840b-9420b64b86fc"),
IsActive = true
},
new
@@ -2373,7 +2649,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000019"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("d9a0eb59-600e-47e9-8e07-8b7bffc93f8b"),
Id = new Guid("8ae0c386-d206-4580-890f-c1673c1dfeb2"),
IsActive = true
},
new
@@ -2381,7 +2657,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000020"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("e5a9d4da-9497-4e7e-8fb9-796927cbb510"),
Id = new Guid("5db4bd09-9481-4608-9dec-3412ba7f3f69"),
IsActive = true
},
new
@@ -2389,7 +2665,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000021"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("ffa29833-505e-4f56-9a4d-58f5df844af2"),
Id = new Guid("c1840bd7-88fd-496a-8d88-aef3d886e1ec"),
IsActive = true
},
new
@@ -2397,7 +2673,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000022"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("4e54994b-7ce1-4b99-aa98-de00c1d205fa"),
Id = new Guid("af97d659-c040-4fdc-beeb-62fc8334f95c"),
IsActive = true
},
new
@@ -2405,7 +2681,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000023"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("f45b7352-f42a-4bb3-9d1e-d7cbe2665c0c"),
Id = new Guid("a6443517-3c2a-4407-a3bd-5497e053b0d6"),
IsActive = true
},
new
@@ -2413,7 +2689,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000024"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("27744965-334b-4da2-8a2d-5d7433d11b9d"),
Id = new Guid("2f540d56-bff4-41fe-9181-4a423c1da51c"),
IsActive = true
},
new
@@ -2421,7 +2697,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000025"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("cec1991b-ea93-45b0-b380-01cf0d36fc17"),
Id = new Guid("db18cfb8-a56c-46bc-baff-298e6204c455"),
IsActive = true
},
new
@@ -2429,7 +2705,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000026"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("25675bb4-2ab5-437c-bee8-1b1ec1741736"),
Id = new Guid("fe209c12-1189-485b-920e-ce6db3c132b9"),
IsActive = true
},
new
@@ -2437,7 +2713,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000027"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("5fc66d40-1960-4028-af48-cf51a80bff04"),
Id = new Guid("fedef395-394d-4237-b5aa-8254603ed304"),
IsActive = true
},
new
@@ -2445,7 +2721,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000028"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("bd4e1740-a8b6-4a53-8633-a68c9858b3f5"),
Id = new Guid("7cc47626-65b8-44b0-83fb-a5dff96c39f6"),
IsActive = true
},
new
@@ -2453,7 +2729,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000029"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("9de97081-77d7-43c3-90b9-af3bc9d4bbef"),
Id = new Guid("cf04aea5-3f47-4717-95aa-8dab547f9cfb"),
IsActive = true
},
new
@@ -2461,7 +2737,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000030"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("6ae05e16-95e5-4d43-bfa0-56991393d76f"),
Id = new Guid("c2906d62-9eea-4d08-b904-86a3f8b04a20"),
IsActive = true
},
new
@@ -2469,7 +2745,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000031"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("eb096aea-92c9-4556-ba4f-3084da223c7d"),
Id = new Guid("7a546bf9-c2f3-4d23-a38e-a068da53dfeb"),
IsActive = true
},
new
@@ -2477,7 +2753,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000032"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("6c9dac72-200a-46eb-b49e-699b1ca775b5"),
Id = new Guid("19c916c3-7b17-42e0-b4b6-89b8cb6475f4"),
IsActive = true
},
new
@@ -2485,7 +2761,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000033"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("8c8d0c74-40f6-4164-a6a7-6d2374ef162a"),
Id = new Guid("e6805dbe-a931-4e2a-b08f-83e8760d4968"),
IsActive = true
},
new
@@ -2493,7 +2769,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000034"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("4a0d8cea-c33d-45a6-bd42-d8a51ce321c8"),
Id = new Guid("7d991f5c-16db-46c5-863c-93063c2e7382"),
IsActive = true
},
new
@@ -2501,7 +2777,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000035"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("a0ea0280-8e40-45bc-88e4-c3feb92e36d4"),
Id = new Guid("513c50d0-5d7b-426d-beef-f14bdea626bc"),
IsActive = true
},
new
@@ -2509,7 +2785,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000036"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("61da4c55-4f19-4ce4-bfc9-3fa9073365a2"),
Id = new Guid("638a6a60-25da-425c-bdec-683431c26d62"),
IsActive = true
},
new
@@ -2517,7 +2793,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000037"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("fbab8f2e-f224-42a0-be16-b7ea4e24eec5"),
Id = new Guid("b00bfae6-92bb-48cb-99d9-f2814baae47d"),
IsActive = true
},
new
@@ -2525,7 +2801,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000038"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("bcf7f883-e6c8-4a97-8a27-6814b0ed9144"),
Id = new Guid("6562c9b4-0673-4ce0-8805-03734bc889ce"),
IsActive = true
},
new
@@ -2533,7 +2809,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000039"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("13c01d81-198b-45cb-9de9-f25130e16313"),
Id = new Guid("6601e0fe-83dd-4307-be91-38dae998cc9c"),
IsActive = true
},
new
@@ -2541,7 +2817,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000040"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("667c3022-ea0d-4d1c-8ae4-b64e2f104295"),
Id = new Guid("c4848449-9678-4fa6-8a00-db4e504b57d6"),
IsActive = true
},
new
@@ -2549,7 +2825,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000041"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("78607299-2f5c-4edb-9143-c4a83395f731"),
Id = new Guid("91c02c24-12a3-48d5-9d19-174c8e764152"),
IsActive = true
},
new
@@ -2557,7 +2833,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000042"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("e53313fd-c6d4-4d52-827f-14cfd55401eb"),
Id = new Guid("0f00477f-5120-40ba-a0e6-0406e47d1c80"),
IsActive = true
},
new
@@ -2565,7 +2841,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000043"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("c2521113-60f4-41fa-8ded-6b6a6b91a584"),
Id = new Guid("db135a10-6335-478d-b2f8-3b5934cd142b"),
IsActive = true
},
new
@@ -2573,7 +2849,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000044"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("14532efd-d9f9-4a46-a7c3-fbfbe85a6f13"),
Id = new Guid("5c219dd9-9ff3-4541-a708-cc7e4bd4dd25"),
IsActive = true
},
new
@@ -2581,7 +2857,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000045"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("438bbd52-ee61-4afc-9d59-7d0407da4f1d"),
Id = new Guid("086e7b93-079d-49d0-90e9-95899b53be52"),
IsActive = true
},
new
@@ -2589,7 +2865,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000046"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("3e3d0cd9-f95e-4c1c-b829-cd02f1bad987"),
Id = new Guid("f0b3d172-cb32-4606-8272-00feaf4067a2"),
IsActive = true
},
new
@@ -2597,7 +2873,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000047"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("84daf87e-d3e1-4f4e-9a57-ec9996fff41d"),
Id = new Guid("75a882c0-b2e9-4efa-a64c-b5d530d42194"),
IsActive = true
},
new
@@ -2605,7 +2881,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000048"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("ddcb8caf-106e-4072-b48e-a2542de51211"),
Id = new Guid("03540f63-d811-4436-869f-2f76995bbb19"),
IsActive = true
},
new
@@ -2613,7 +2889,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000049"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("95d39d28-c5c7-4e82-87eb-40570db1c1f5"),
Id = new Guid("73894d9f-a823-4b5b-b809-5cc0aa716a70"),
IsActive = true
},
new
@@ -2621,7 +2897,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000050"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("b8e7b327-33c9-4420-b4d1-0071c58a5c95"),
Id = new Guid("1ad4bfb8-cde6-4623-a21d-9a78af0026d6"),
IsActive = true
});
});
@@ -4273,6 +4549,28 @@ namespace Distribution.Migrations
});
});
modelBuilder.Entity("Distribution.Models.ChequeBook", b =>
{
b.HasOne("Distribution.Models.BankAccount", "BankAccount")
.WithMany()
.HasForeignKey("FK_BankAccountId")
.OnDelete(DeleteBehavior.Restrict)
.IsRequired();
b.Navigation("BankAccount");
});
modelBuilder.Entity("Distribution.Models.ChequePage", b =>
{
b.HasOne("Distribution.Models.ChequeBook", "ChequeBook")
.WithMany("Pages")
.HasForeignKey("FK_ChequeBookId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("ChequeBook");
});
modelBuilder.Entity("Distribution.Models.Claim", b =>
{
b.HasOne("Distribution.Models.User", "AgencyUser")
@@ -4666,6 +4964,16 @@ namespace Distribution.Migrations
b.Navigation("PurchaseReturn");
});
modelBuilder.Entity("Distribution.Models.ReceivedCheque", b =>
{
b.HasOne("Distribution.Models.BankAccount", "DepositBankAccount")
.WithMany()
.HasForeignKey("FK_DepositBankAccountId")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("DepositBankAccount");
});
modelBuilder.Entity("Distribution.Models.RegionAgencyMap", b =>
{
b.HasOne("Distribution.Models.User", "AgencyUser")
@@ -5159,6 +5467,11 @@ namespace Distribution.Migrations
b.Navigation("Vehicle");
});
modelBuilder.Entity("Distribution.Models.ChequeBook", b =>
{
b.Navigation("Pages");
});
modelBuilder.Entity("Distribution.Models.GoodsReceipt", b =>
{
b.Navigation("Items");