<th align=right>| . $locale->text('Tax Number / SSN') . qq|</th>
<td><input name=taxnumber size=20 value="$form->{taxnumber}"></td>
<th align=right>| . $locale->text('USt-IdNr.') . qq|</th>
- <td><input name="ustid" maxlength="12" size="20" value="$form->{ustid}"></td>
+ <td><input name="ustid" maxlength="14" size="20" value="$form->{ustid}"></td>
$customer
</tr>
<tr>
--- /dev/null
+-- @tag: customer_vendor_ustid_length
+-- @description: Setzt das Feld "ustid" in den Tabellen "customer" und "vendor" auf 14 Zeichen: zwei Zeichen Länderkürzel und bis zu zwölf Zeichen für die Nummer.
+-- @depends:
+ALTER TABLE customer ADD COLUMN tmp varchar(14);
+UPDATE customer SET tmp = ustid;
+ALTER TABLE customer DROP COLUMN ustid;
+ALTER TABLE customer RENAME tmp TO ustid;
+
+ALTER TABLE vendor ADD COLUMN tmp varchar(14);
+UPDATE vendor SET tmp = ustid;
+ALTER TABLE vendor DROP COLUMN ustid;
+ALTER TABLE vendor RENAME tmp TO ustid;