diff --git a/Areas/Inventory/Models/SupplierModel.cs b/Areas/Inventory/Models/SupplierModel.cs index 4d46cf7..9d6f4f2 100644 --- a/Areas/Inventory/Models/SupplierModel.cs +++ b/Areas/Inventory/Models/SupplierModel.cs @@ -1,4 +1,5 @@ using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; namespace PSTW_CentralSystem.Areas.Inventory.Models { @@ -6,9 +7,13 @@ namespace PSTW_CentralSystem.Areas.Inventory.Models { [Key] public int SupplierId { get; set; } - public required string SupplierName { get; set; } - public required string SupplierGender { get; set; } - public required string SupplierEmail { get; set; } - public required string SupplierPhoneNo { get; set; } + public required string SupplierCompName { get; set; } + public required string SupplierAddress { get; set; } + [AllowNull] + public string? SupplierPIC { get; set; } + [AllowNull] + public string? SupplierEmail { get; set; } + [AllowNull] + public string? SupplierPhoneNo { get; set; } } } diff --git a/Areas/Inventory/Views/InventoryMaster/ItemRegistration.cshtml b/Areas/Inventory/Views/InventoryMaster/ItemRegistration.cshtml index 2fbac6c..70b03ae 100644 --- a/Areas/Inventory/Views/InventoryMaster/ItemRegistration.cshtml +++ b/Areas/Inventory/Views/InventoryMaster/ItemRegistration.cshtml @@ -568,6 +568,7 @@ var printButton = ``; return printButton; }, + "className": "align-middle", }, { "title": "Item Short Name", @@ -627,11 +628,12 @@ }, { "title": "Delete", - "data": "productId", + "data": "itemID", "render": function (data) { var deleteButton = ``; return deleteButton; }, + "className": "align-middle", } ], responsive: true, @@ -853,7 +855,7 @@ return; } try { - const response = await fetch(`/InvMainAPI/DeleteProduct/${itemId}`, { + const response = await fetch(`/InvMainAPI/DeleteItem/${itemId}`, { method: 'DELETE', headers: { 'Content-Type': 'application/json', diff --git a/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml b/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml index aad6ef2..82e1712 100644 --- a/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml +++ b/Areas/Inventory/Views/InventoryMaster/SupplierRegistration.cshtml @@ -18,30 +18,35 @@ @* Supplier Name *@