From 53bbde0f0bc2d625283515d2c82dad454dbcbb66 Mon Sep 17 00:00:00 2001 From: ArifHilmi Date: Mon, 10 Mar 2025 08:57:27 +0800 Subject: [PATCH] Update --- .../Views/InventoryMaster/ItemMovement.cshtml | 13 +++++++++---- appsettings.json | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Areas/Inventory/Views/InventoryMaster/ItemMovement.cshtml b/Areas/Inventory/Views/InventoryMaster/ItemMovement.cshtml index d38ff16..a1f4c70 100644 --- a/Areas/Inventory/Views/InventoryMaster/ItemMovement.cshtml +++ b/Areas/Inventory/Views/InventoryMaster/ItemMovement.cshtml @@ -1372,11 +1372,16 @@ this.historyVisible = {}; }, toggleHistory(itemId) { + // Jika item yang ditekan sudah terbuka, tutup + if (this.historyVisible[itemId]) { + this.historyVisible[itemId] = false; + } else { + // Tutup semua history lain dahulu + this.historyVisible = {}; - this.historyVisible[itemId] = !this.historyVisible[itemId]; - // this.historyVisible = {}; - - + // Buka hanya item yang ditekan + this.historyVisible[itemId] = true; + } }, toggleDetails(movementId) { this.detailsVisible[movementId] = !this.detailsVisible[movementId]; diff --git a/appsettings.json b/appsettings.json index 5b9735b..76db4eb 100644 --- a/appsettings.json +++ b/appsettings.json @@ -3,7 +3,7 @@ //"DefaultConnection": "Server=localhost;uid=root;Password='';Database=web_interface;" //"DefaultConnection": "server=175.136.244.102;user id=root;password=tw_mysql_root;port=3306;database=web_interface" //"CentralConnnection": "Server=192.168.12.12;Port=3306;uid=installer;password='pstw_mysql_installer';database=pstw_cs;", //DB_dev Local connection - "CentralConnnection": "Server=219.92.7.60;Port=3307;uid=installer;password='pstw_mysql_installer';database=pstw_cs;" //DB_dev Public connection + "CentralConnnection": "Server=219.92.7.60;Port=3307;uid=installer;password='pstw_mysql_installer';database=pstw_cs_prod;" //DB_dev Public connection //"InventoryConnection": "Server=219.92.7.60;Port=3307;uid=installer;password='pstw_mysql_installer';database=pstw_cs_inventory;" //DB_dev connection //"DefaultConnection": "Server=219.92.7.60;Port=3307;uid=intern;password='intern_mysql_acct';database=web_interface;"//DB_dev connection },