@@ -884,7 +884,7 @@
return this.groupedByStation;
}
- let searchQueryStation = this.toLowerCase();
+ let searchQueryStation = String(this.searchQueryStation).toLowerCase();
let grouped = this.groupedByStation;
let filtered = {};
diff --git a/Areas/Inventory/Views/InventoryMaster/ItemRequestMaster.cshtml b/Areas/Inventory/Views/InventoryMaster/ItemRequestMaster.cshtml
index 86a7560..bd7362f 100644
--- a/Areas/Inventory/Views/InventoryMaster/ItemRequestMaster.cshtml
+++ b/Areas/Inventory/Views/InventoryMaster/ItemRequestMaster.cshtml
@@ -626,6 +626,25 @@
initiateTable() {
self = this;
+ function formatDateTime(dateString) {
+ if (!dateString) {
+ return ""; // Return empty string if date is null or undefined
+ }
+ const date = new Date(dateString);
+ // Add 8 hours for GMT+8, as DateTime.UtcNow is used on the backend.
+ // If the backend stores dates in a specific timezone and you want to display them
+ // in the client's local timezone, you might need a different approach or
+ // ensure the backend sends timezone information.
+ // For now, assuming backend's UtcNow and client display in GMT+8.
+ date.setHours(date.getHours()); // Adjust for local time if needed.
+ const year = date.getFullYear();
+ const month = String(date.getMonth() + 1).padStart(2, '0');
+ const day = String(date.getDate()).padStart(2, '0');
+ const hours = String(date.getHours()).padStart(2, '0');
+ const minutes = String(date.getMinutes()).padStart(2, '0');
+ const seconds = String(date.getSeconds()).padStart(2, '0');
+ return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
+ }
function renderActionButtons(data, type, row) {
var actiontButtons = `