We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7add2 commit 0340aabCopy full SHA for 0340aab
1 file changed
modules/articoli/edit.php
@@ -21,6 +21,20 @@
21
22
use Models\Module;
23
use Modules\Iva\Aliquota;
24
+use Models\Plugin;
25
+
26
+if ($articolo->servizio) {
27
+ $ignore = Plugin::where('name', 'Movimenti')
28
+ ->orWhere('name', 'Giacenze')
29
+ ->get();
30
31
+ foreach ($ignore as $plugin) {
32
+ echo '
33
+ <script>
34
+ $("li.btn-default.nav-item:has(#link-tab_'.$plugin->id.')").addClass("disabled");
35
+ </script>';
36
+ }
37
+}
38
39
?><form action="" method="post" id="edit-form" enctype="multipart/form-data">
40
<input type="hidden" name="backto" value="record-edit">
0 commit comments