GLN: Speichern und Anzeigen in den Stammdaten (Rechnungs- u. Lieferadressen).
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Thu, 11 Feb 2016 21:57:46 +0000 (22:57 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 12 Feb 2016 16:16:31 +0000 (17:16 +0100)
SL/Controller/CustomerVendor.pm
sql/Pg-upgrade2/customer_vendor_shipto_add_gln.sql [new file with mode: 0644]
templates/webpages/customer_vendor/tabs/billing.html
templates/webpages/customer_vendor/tabs/shipto.html

index a624ba2..1eea8a2 100644 (file)
@@ -535,7 +535,7 @@ sub action_ajaj_get_shipto {
         my $name = 'shipto'. $_;
         $name => $self->{shipto}->$name;
       }
-      qw(_id name department_1 department_2 street zipcode city country contact phone fax email)
+      qw(_id name department_1 department_2 street zipcode city gln country contact phone fax email)
     )
   };
 
diff --git a/sql/Pg-upgrade2/customer_vendor_shipto_add_gln.sql b/sql/Pg-upgrade2/customer_vendor_shipto_add_gln.sql
new file mode 100644 (file)
index 0000000..2f591c6
--- /dev/null
@@ -0,0 +1,8 @@
+-- @tag: customer_vendor_shipto_add_gln
+-- @description: Spalte für GLN bei Kunde/Lieferant und Lieferadresse
+-- @depends: release_3_3_0
+-- @encoding: utf-8
+
+ALTER TABLE customer ADD COLUMN       gln TEXT;
+ALTER TABLE vendor   ADD COLUMN       gln TEXT;
+ALTER TABLE shipto   ADD COLUMN shiptogln TEXT;
index 82ff5f2..c392878 100644 (file)
       </td>
     </tr>
 
+    <tr>
+      <th align="right" nowrap>[% 'GLN' | $T8 %]</th>
+
+      <td>
+        [% L.input_tag('cv.gln', SELF.cv.gln, size = 30) %]
+      </td>
+    </tr>
+
     <tr>
       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
 
index 97cfa9d..fa5d5d3 100644 (file)
       </td>
     </tr>
 
+    <tr>
+      <th align="right" nowrap>[% 'GLN' | $T8 %]</th>
+
+      <td>
+        [% L.input_tag('shipto.shiptogln', SELF.shipto.shiptogln,  size = 35) %]
+      </td>
+    </tr>
+
     <tr>
       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>