Skip to content

Commit

Permalink
fix: status plant floor (#43466)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Oct 1, 2024
1 parent 895b072 commit 6433019
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions erpnext/public/js/plant_floor_visual/visual_plant.js
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand All @@ -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);
Expand Down

0 comments on commit 6433019

Please sign in to comment.