浏览代码

modifiche

Roberto Santini 1周前
父节点
当前提交
2b17f17633

+ 14
- 1
GestioneManutenzioni.skipper 查看文件

@@ -166,7 +166,7 @@
166 166
       </field>
167 167
       <field name="costo_descrizione" type="text" uuid="2d89a9fb-9229-412e-b6df-9b35a19f14a5"/>
168 168
       <field name="non_fatturare" type="boolean" default="0" uuid="d0ffea66-3d82-495a-bbc8-f7cc443bae31"/>
169
-      <field name="costo_uscita" type="decimal" default="0" uuid="c7582fe6-bc2e-4eee-ad56-9593b156d48c"/>
169
+      <field name="costo_uscita" type="boolean" default="0" uuid="c7582fe6-bc2e-4eee-ad56-9593b156d48c"/>
170 170
       <field name="riservata" type="boolean" default="1" uuid="c48733ff-ec02-4aa0-be7c-25be727c3c1e"/>
171 171
       <field name="riferimento" type="string" uuid="dca8d620-9b45-4a1f-96e4-0d76392ac410"/>
172 172
       <field name="email" type="string" uuid="e2ca0f54-426d-4977-b729-fd007dee6f64"/>
@@ -3887,6 +3887,19 @@
3887 3887
           <property name="to" value="id"/>
3888 3888
         </element>
3889 3889
       </revision>
3890
+      <revision uuid="dc6bbfda-98f8-4d97-b0e8-e16f3f9bdbbf" date="2026-09-07 23:47:02.102868" exportable="true">
3891
+        <element action="add" uuid="d0ffea66-3d82-495a-bbc8-f7cc443bae31" parent-uuid="43c9733c-5074-4c8d-9cb1-33867510c2fc" sibling-uuid="2d89a9fb-9229-412e-b6df-9b35a19f14a5" type="field">
3892
+          <property name="default" value="0"/>
3893
+          <property name="name" value="non_fatturare"/>
3894
+          <property name="type" value="boolean"/>
3895
+        </element>
3896
+        <element action="add" uuid="c7582fe6-bc2e-4eee-ad56-9593b156d48c" parent-uuid="43c9733c-5074-4c8d-9cb1-33867510c2fc" sibling-uuid="d0ffea66-3d82-495a-bbc8-f7cc443bae31" type="field">
3897
+          <property name="default" value="0"/>
3898
+          <property name="name" value="costo_uscita"/>
3899
+          <property name="type" value="decimal"/>
3900
+        </element>
3901
+        <element action="reorder" uuid="c48733ff-ec02-4aa0-be7c-25be727c3c1e" parent-uuid="43c9733c-5074-4c8d-9cb1-33867510c2fc" sibling-uuid="c7582fe6-bc2e-4eee-ad56-9593b156d48c" previous-sibling-uuid="2d89a9fb-9229-412e-b6df-9b35a19f14a5" type="field" helper="true"/>
3902
+      </revision>
3890 3903
     </migrations>
3891 3904
   </module>
3892 3905
   <visual-data>

+ 1
- 1
app/Models/AbstractModels/AbstractAnnotazione.php 查看文件

@@ -51,7 +51,7 @@ abstract class AbstractAnnotazione extends Model
51 51
         'costo' => 'decimal:2',
52 52
         'costo_descrizione' => 'string',
53 53
         'non_fatturare' => 'boolean',
54
-        'costo_uscita' => 'decimal:2',
54
+        'costo_uscita' => 'boolean',
55 55
         'riservata' => 'boolean',
56 56
         'riferimento' => 'string',
57 57
         'email' => 'string',

+ 36
- 0
database/migrations/2026_09_07_235151_skipper_migrations_2026090723515182.php 查看文件

@@ -0,0 +1,36 @@
1
+<?php
2
+/* 
3
+ * Migrations generated by: Skipper (http://www.skipper18.com)
4
+ * Migration id: a2878dc9-b644-43e8-9397-b91a95e23391
5
+ * Migration datetime: 2026-09-07 23:51:51.823321
6
+ */ 
7
+
8
+use Illuminate\Support\Facades\Schema;
9
+use Illuminate\Database\Schema\Blueprint;
10
+use Illuminate\Database\Migrations\Migration;
11
+
12
+class SkipperMigrations2026090723515182 extends Migration
13
+{
14
+    /**
15
+     * Run the migrations.
16
+     *
17
+     * @return void
18
+     */
19
+    public function up()
20
+    {
21
+        Schema::table('annotazione', function (Blueprint $table) {
22
+            $table->boolean('costo_uscita')->nullable(true)->default(0)->after('non_fatturare')->change();
23
+        });
24
+    }
25
+    /**
26
+     * Reverse the migrations.
27
+     *
28
+     * @return void
29
+     */
30
+    public function down()
31
+    {
32
+        Schema::table('annotazione', function (Blueprint $table) {
33
+            $table->decimal('costo_uscita', 8, 2)->nullable(true)->default(0)->after('non_fatturare')->change();
34
+        });
35
+    }
36
+}

正在加载...
取消
保存