From 6433019624354bb2c113b74ae616736caeff04b9 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Tue, 1 Oct 2024 14:37:57 +0530 Subject: [PATCH] fix: status plant floor (#43466) --- erpnext/public/js/plant_floor_visual/visual_plant.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/erpnext/public/js/plant_floor_visual/visual_plant.js b/erpnext/public/js/plant_floor_visual/visual_plant.js index 57a0594f42e0..75b1aa3479fa 100644 --- a/erpnext/public/js/plant_floor_visual/visual_plant.js +++ b/erpnext/public/js/plant_floor_visual/visual_plant.js @@ -156,6 +156,8 @@ class VisualPlantFloor { update_status(data) { let workstation_card$ = this.wrapper.find(`.workstation-wrapper[data-workstation="${data.name}"]`); workstation_card$.find(".workstation-image-container").empty(); + let workstation_image = workstation_card$.find(".workstation-image"); + workstation_image.removeClass("workstation-off"); if (data.status_image) { workstation_card$ @@ -172,6 +174,10 @@ class VisualPlantFloor { ); } + if (data.status !== "Production") { + workstation_image.addClass("workstation-off"); + } + workstation_card$.find(".indicator-pill").removeClass(data.old_color); workstation_card$.find(".indicator-pill").addClass(data.color); workstation_card$.find(".workstation-status-title").text(data.status);