From 292f516e330587d63cd2423265b31db563c2707c Mon Sep 17 00:00:00 2001 From: Mohd Ariff Date: Mon, 23 Dec 2024 16:30:34 +0800 Subject: [PATCH] Update --- Areas/Inventory/Models/ItemModel.cs | 2 +- .../Views/Item/ItemRegistration.cshtml | 107 +++-- Controllers/API/AdminAPI.cs | 4 +- Controllers/API/IdentityAPI.cs | 15 +- Controllers/API/Inventory/InvMainAPI.cs | 114 ++--- Controllers/API/ModuleAPI.cs | 4 +- Controllers/API/RoleAPI.cs | 4 +- Controllers/AdminController.cs | 4 +- Controllers/IdentityController.cs | 4 +- CustomPolicy/RoleModulePolicy.cs | 4 +- ...tyDBContext.cs => CentralSystemContext.cs} | 10 +- DBContext/InventoryDBContext.cs | 28 -- ...cs => 20241223071002_Initiate.Designer.cs} | 246 ++++++++++- ...Initiate.cs => 20241223071002_Initiate.cs} | 175 +++++++- ...s => CentralSystemContextModelSnapshot.cs} | 246 ++++++++++- .../20241206071642_Initiate.Designer.cs | 394 ------------------ .../InventoryDB/20241206071642_Initiate.cs | 296 ------------- .../InventoryDBContextModelSnapshot.cs | 391 ----------------- Program.cs | 22 +- appsettings.json | 4 +- 20 files changed, 831 insertions(+), 1243 deletions(-) rename DBContext/{IdentityDBContext.cs => CentralSystemContext.cs} (88%) delete mode 100644 DBContext/InventoryDBContext.cs rename Migrations/{20241218060528_Initiate.Designer.cs => 20241223071002_Initiate.Designer.cs} (65%) rename Migrations/{20241218060528_Initiate.cs => 20241223071002_Initiate.cs} (64%) rename Migrations/{IdentityDBContextModelSnapshot.cs => CentralSystemContextModelSnapshot.cs} (64%) delete mode 100644 Migrations/InventoryDB/20241206071642_Initiate.Designer.cs delete mode 100644 Migrations/InventoryDB/20241206071642_Initiate.cs delete mode 100644 Migrations/InventoryDB/InventoryDBContextModelSnapshot.cs diff --git a/Areas/Inventory/Models/ItemModel.cs b/Areas/Inventory/Models/ItemModel.cs index 54a07c1..a6e9838 100644 --- a/Areas/Inventory/Models/ItemModel.cs +++ b/Areas/Inventory/Models/ItemModel.cs @@ -21,7 +21,7 @@ namespace PSTW_CentralSystem.Areas.Inventory.Models public required DateTime PurchaseDate { get; set; } public required string PONo { get; set; } public required string Currency { get; set; } - public required float PriceInRM { get; set; } + public required float DefaultPrice { get; set; } public required float CurrencyRate { get; set; } public required float ConvertPrice { get; set; } public string? DONo { get; set; } diff --git a/Areas/Inventory/Views/Item/ItemRegistration.cshtml b/Areas/Inventory/Views/Item/ItemRegistration.cshtml index cfbe9dd..777f6ce 100644 --- a/Areas/Inventory/Views/Item/ItemRegistration.cshtml +++ b/Areas/Inventory/Views/Item/ItemRegistration.cshtml @@ -24,14 +24,37 @@