diff --git a/Step/wwwroot/src/app_modules/tooling/components/tooling-equipment.ts b/Step/wwwroot/src/app_modules/tooling/components/tooling-equipment.ts index 8c7bbd41..9d211206 100644 --- a/Step/wwwroot/src/app_modules/tooling/components/tooling-equipment.ts +++ b/Step/wwwroot/src/app_modules/tooling/components/tooling-equipment.ts @@ -535,14 +535,21 @@ public isEquipmentSelected(offset){ // Controllo se l'utensile può essere eliminato se in magazzino public checkIfCanDeleteTool() { if(this.selectedTool) { - // Check if magazine is in magazine - if (this.magazines.length > 0) { - var magId = this.getToolMagPosition(this.selectedTool.shankId) - var mag = this.magazines.find(d => d.id == magId); - - if (mag) + if(!this.isSiemens || this.multitoolOptionActive){ + if(this.selectedTool.shankId) return true; - } + else + return false; + }else{ + if (this.magazines.length > 0) { + var magId = this.getToolMagPosition(this.selectedTool.shankId) + var mag = this.magazines.find(d => d.id == magId); + + if (mag) + return true; + }; + + } } return false