creditlimit => { type => 'numeric', default => '0', precision => 15, scale => 5 },
currency_id => { type => 'integer', not_null => 1 },
customernumber => { type => 'text' },
+ contact_origin => { type => 'text' },
delivery_term_id => { type => 'integer' },
department_1 => { type => 'text' },
department_2 => { type => 'text' },
iban => { type => 'text' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
+ invoice_mail => { type => 'text' },
language => { type => 'text' },
language_id => { type => 'integer' },
mandate_date_of_signature => { type => 'date' },
'id', 'name', "$form->{db}number", 'contact', 'phone', 'discount',
'fax', 'email', 'taxnumber', 'street', 'zipcode' , 'city',
'business', 'payment', 'invnumber', 'ordnumber', 'quonumber', 'salesman',
- 'country', 'gln', 'insertdate', 'pricegroup'
+ 'country', 'gln', 'insertdate', 'pricegroup', 'contact_origin', 'invoice_mail'
);
my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
'payment' => { 'text' => $locale->text('Payment Terms'), },
'insertdate' => { 'text' => $locale->text('Insert Date'), },
'pricegroup' => { 'text' => $locale->text('Pricegroup'), },
+ 'invoice_mail' => { 'text' => $locale->text('Email of the invoice recipient'), },
+ 'contact_origin' => { 'text' => $locale->text('Origin of personal data'), },
%column_defs_cvars,
);
'Element disabled' => 'Element deaktiviert',
'Email' => 'E-Mail',
'Email journal' => 'E-Mail-Journal',
+ 'Email of the invoice recipient' => 'E-Mail des Rechnungsempfängers',
'Employee' => 'Bearbeiter',
'Employee #1 saved!' => 'Benutzer #1 gespeichert!',
'Employee (database ID)' => 'Bearbeiter (Datenbank-ID)',
'Orders to fetch' => 'Anzahl Bestellungen holen',
'Orientation' => 'Seitenformat',
'Orig. Size w/h' => 'Orig. Größe b/h',
+ 'Origin of personal data' => 'Herkunft der personenbezogenen Daten',
'Orphaned' => 'Nie benutzt',
'Orphaned currencies' => 'Verwaiste Währungen',
'Other Matches' => 'Andere Treffer',
--- /dev/null
+-- @tag: customer_add_fields
+-- @description: Rechnungsadresse (E-Mail-Empfänger) Herkunft der personenbezogenen Daten
+-- @depends: release_3_5_3
+ALTER TABLE customer ADD COLUMN invoice_mail text;
+ALTER TABLE customer ADD COLUMN contact_origin text;
<input name="l_pricegroup" id="l_pricegroup" type="checkbox" class="checkbox" value="Y">
<label for="l_pricegroup">[% 'Pricegroup' | $T8 %]</label>
</td>
+ <td>
+ <input name="l_contact_origin" id="l_contact_origin" type="checkbox" class="checkbox" value="Y">
+ <label for="l_contact_origin">[% 'Origin of personal data' | $T8 %]</label>
+ </td>
+ <td>
+ <input name="l_invoice_mail" id="l_invoice_mail" type="checkbox" class="checkbox" value="Y">
+ <label for="l_invoice_mail">[% 'Email of the invoice recipient' | $T8 %]</label>
+ </td>
</tr>
[% END %]
[% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
</td>
</tr>
-
+ [% IF ( SELF.is_customer() ) %]
+ <tr>
+ <th align="right">[% 'Email of the invoice recipient' | $T8 %]</th>
+ <td>[% L.input_tag('cv.invoice_mail', SELF.cv.invoice_mail, size = 45) %]</td>
+ </tr>
+ [% END %]
<tr>
<th align="right" nowrap>
[% IF SELF.cv.homepage %]
<table>
<tr>
<th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
+ [% IF ( SELF.is_customer() ) %]
+ <th align="left">[% 'Origin of personal data' | $T8 %]</th>
+ [% END %]
</tr>
-
<tr>
<td>
[% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
</td>
+ [% IF ( SELF.is_customer() ) %]
+ <td>
+ [% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin, rows = 3 cols = 60 wrap = soft) %]
+ </td>
+ [% END %]
</tr>
</table>
</div>