c_vendor_id => { type => 'text' },
cc => { type => 'text' },
city => { type => 'text' },
+ commercial_court => { type => 'text' },
contact => { type => 'text' },
country => { type => 'text' },
creditlimit => { type => 'numeric', default => '0', precision => 15, scale => 5 },
'id', 'name', "$form->{db}number", 'contact', 'phone', 'discount',
'fax', 'email', 'taxnumber', 'street', 'zipcode' , 'city',
'business', 'payment', 'invnumber', 'ordnumber', 'quonumber', 'salesman',
- 'country', 'gln', 'insertdate', 'pricegroup', 'contact_origin', 'invoice_mail'
+ 'country', 'gln', 'insertdate', 'pricegroup', 'contact_origin', 'invoice_mail',
+ 'creditlimit', 'ustid', 'commercial_court'
);
my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
'pricegroup' => { 'text' => $locale->text('Pricegroup'), },
'invoice_mail' => { 'text' => $locale->text('Email of the invoice recipient'), },
'contact_origin' => { 'text' => $locale->text('Origin of personal data'), },
+ 'creditlimit' => { 'text' => $locale->text('Credit Limit'), },
+ 'ustid' => { 'text' => $locale->text('VAT ID'), },
+ 'commercial_court' => { 'text' => $locale->text('Commercial court'), },
%column_defs_cvars,
);
if ($ref->{id} ne $previous_id) {
$previous_id = $ref->{id};
$ref->{discount} = $form->format_amount(\%myconfig, $ref->{discount} * 100.0, 2);
+ $ref->{creditlimit} = $form->format_amount(\%myconfig, $ref->{creditlimit}, 2);
map { $row->{$_}->{data} = $ref->{$_} } @columns;
$row->{name}->{link} = build_std_url('script=controller.pl', 'action=CustomerVendor/edit', 'id=' . E($ref->{id}), 'callback', @hidden_nondefault);
Wert beim E-Mail Versand der Rechnung Priorität. Für die wiederkehrende Rechnung wird die
Mail-Adresse zusätzlich bedient. In den entsprechenden vorgelagerten Masken, wird dies auch
visuell angezeigt.
+- Kundenstammdaten um Feld Amtsgericht erweitert
+ Falls das Feld Steuernummer mit dem Wert der Hr-Nr gefüllt wurde, wird auch das zuständige
+ Registierungs-Gericht benötigt.
2019-01-03 - Release 3.5.3
'Column name' => 'Spaltenname',
'Comma' => 'Komma',
'Comment' => 'Kommentar',
+ 'Commercial court' => 'Amtsgericht',
'Company' => 'Firma',
'Company Name' => 'Firmenname',
'Company name' => 'Firmenname',
--- /dev/null
+-- @tag: customer_add_commercial_court
+-- @description: Amtsgericht/Handelsgericht für Körperschaften bei den Stammdaten hinterlegen
+-- @depends: release_3_5_3
+ALTER TABLE customer ADD COLUMN commercial_court text;
<label for="l_invoice_mail">[% 'Email of the invoice recipient' | $T8 %]</label>
</td>
</tr>
+ <tr>
+ <td>
+ <input name="l_ustid" id="l_ustid" type="checkbox" class="checkbox" value="Y">
+ <label for="l_ustid">[% 'VAT ID' | $T8 %]</label>
+ </td>
+ <td>
+ <input name="l_creditlimit" id="l_creditlimit" type="checkbox" class="checkbox" value="Y">
+ <label for="l_creditlimit">[% 'Credit Limit' | $T8 %]</label>
+ </td>
+ <td>
+ <input name="l_commercial_court" id="l_commercial_court" type="checkbox" class="checkbox" value="Y">
+ <label for="l_commercial_court">[% 'Commercial court' | $T8 %]</label>
+ </td>
+
+ <td>
+ </tr>
+
[% END %]
[% CUSTOM_VARIABLES_INCLUSION_CODE %]
[%- END %]
</tr>
- [% IF ( SELF.all_currencies.size ) %]
<tr>
+ [% IF ( SELF.is_customer() ) %]
+ <th align="right">[% 'Commercial court' | $T8 %]</th>
+ <td>
+ [% L.input_tag('cv.commercial_court', SELF.cv.commercial_court, size = 20) %]
+ </td>
+ [% END %]
+ [% IF ( SELF.all_currencies.size ) %]
<th align="right">[% 'Currency' | $T8 %]</th>
-
<td>
[% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
</td>
+ [% END %]
</tr>
- [% END %]
-
<tr>
[% IF ( !INSTANCE_CONF.get_vertreter ) %]
<th align="right">