Revision af2f24b8
Von Jan Büren vor etwa 11 Jahren hinzugefügt
SL/Controller/CustomerVendor.pm | ||
---|---|---|
sub normalize_name {
|
||
my ($self) = @_;
|
||
|
||
# check if feature is enabled (select normalize_vc_names from defaults)
|
||
return unless ($::instance_conf->get_normalize_vc_names);
|
||
|
||
return unless $self->{cv};
|
||
my $name = $self->{cv}->name;
|
||
$name =~ s/\s+$//;
|
SL/DB/MetaSetup/Default.pm | ||
---|---|---|
language_id => { type => 'integer' },
|
||
max_future_booking_interval => { type => 'integer', default => 360 },
|
||
mtime => { type => 'timestamp' },
|
||
# normalize_part_descriptions => { type => 'boolean', default => 'true' },
|
||
normalize_vc_names => { type => 'boolean', default => 'true' },
|
||
parts_image_css => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
|
||
parts_listing_image => { type => 'boolean', default => 'true' },
|
||
parts_show_image => { type => 'boolean', default => 'true' },
|
locale/de/all | ||
---|---|---|
'Authentification database creation' => 'Anlegen der Datenbank zur Benutzerauthentifizierung',
|
||
'Authentification tables creation' => 'Anlegen der Tabellen zur Benutzerauthentifizierung',
|
||
'Auto Send?' => 'Auto. Versand?',
|
||
'Automatic deletion of leading, trailing and excessive (repetitive) spaces in customer or vendor names' => 'Automatisches Löschen von voran-, mehrfach wiederholenten oder nachgestellten Leerzeichen im Kunden- oder Lieferantennamen (Bspw.: " Schmidt & Söhne GmbH" -> "Schmidt & Söhne GmbH"',
|
||
'Automatic deletion of leading, trailing and excessive (repetitive) spaces in part description and part notes. Affects also the CSV-Import.' => '',
|
||
'Automatically created invoice for fee and interest for dunning %s' => 'Automatisch erzeugte Rechnung für Gebühren und Zinsen zu Mahnung %s',
|
||
'Available' => 'Verfügbar',
|
||
'Available qty' => 'Lagerbestand',
|
||
... | ... | |
'EB-Wert' => 'EB-Wert',
|
||
'EK' => 'EK',
|
||
'ELSE' => 'Zusatz',
|
||
'ELSTER Export (Taxbird)' => 'ELSTER-Export nach Taxbird',
|
||
'ELSTER Export (Winston)' => 'ELSTER Export nach Winston',
|
||
'ELSTER Export nach Winston' => 'ELSTER Export nach Winston',
|
||
'ELSTER Tax Number' => 'ELSTER-Steuernummer',
|
||
'EQUITY' => 'EIGENTUM',
|
||
'EUER' => 'Einnahmen-/Überschussrechnung',
|
||
... | ... | |
'No.' => 'Position',
|
||
'None' => 'Kein',
|
||
'Normal users cannot log in.' => 'Normale Benutzer können sich nicht anmelden.',
|
||
'Normalize Customer / Vendor names' => 'Normalisierung Kunden- / Lieferantennamen',
|
||
'Normalize part description and part notes' => 'Normalisierung Artikelbeschreibung und Artikellangtext (Bemerkung)',
|
||
'Not Discountable' => 'Nicht rabattierfähig',
|
||
'Not delivered' => 'Nicht geliefert',
|
||
'Not done yet' => 'Noch nicht fertig',
|
||
... | ... | |
'USt-IdNr.' => 'USt-IdNr.',
|
||
'USt-Konto' => 'USt-Konto',
|
||
'UStVA' => 'UStVA',
|
||
'UStVA (PDF-Dokument)' => 'UStVa als PDF-Dokument',
|
||
'UStVa' => 'UStVa',
|
||
'UStVa Einstellungen' => 'UStVa Einstellungen',
|
||
'Unbalanced Ledger' => 'Bilanzfehler',
|
||
... | ... | |
'Workflow sales_order' => 'Workflow Auftrag',
|
||
'Workflow sales_quotation' => 'Workflow Angebot',
|
||
'Write bin to default bin in part?' => 'Diesen Lagerplatz als Standardlagerplatz im Artikel setzen?',
|
||
'Wrong Period' => 'Falscher Zeitraum',
|
||
'Wrong tax keys recorded' => 'Gespeicherte Steuerschlüssel sind falsch',
|
||
'Wrong taxes recorded' => 'Gespeicherte Steuern passen nicht zum Steuerschlüssel',
|
||
'YYYY' => 'JJJJ',
|
sql/Pg-upgrade2/defaults_feature2.pl | ||
---|---|---|
# @tag: defaults_feature2
|
||
# @description: Normalisieren von vc-Namen, als auch part.notes und part.descriptions als Feature konfigurierbar machen
|
||
# @depends: release_3_0_0
|
||
package SL::DBUpgrade2::defaults_feature2;
|
||
|
||
use utf8;
|
||
|
||
use parent qw(SL::DBUpgrade2::Base);
|
||
use strict;
|
||
|
||
sub run {
|
||
my ($self) = @_;
|
||
|
||
# this query will fail if column already exist (new database)
|
||
$self->db_query(qq|ALTER TABLE defaults ADD COLUMN normalize_vc_names boolean DEFAULT true|);
|
||
$self->db_query(qq|ALTER TABLE defaults ADD COLUMN normalize_part_descriptions boolean DEFAULT true|);
|
||
return 1;
|
||
}
|
||
|
||
1;
|
templates/webpages/client_config/_features.html | ||
---|---|---|
<td>[% L.yes_no_tag('defaults.vertreter', SELF.defaults.vertreter) %]</td>
|
||
<td>[% LxERP.t8('Representative for Customer') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="right">[% LxERP.t8('Normalize Customer / Vendor names') %]</td>
|
||
<td> [% L.yes_no_tag('defaults.normalize_vc_names', SELF.defaults.normalize_vc_names) %]</td>
|
||
<td>[% LxERP.t8('Automatic deletion of leading, trailing and excessive (repetitive) spaces in customer or vendor names') %]</td>
|
||
</tr>
|
||
|
||
<tr><td class="listheading" colspan="4">[% LxERP.t8("Parts Master Data") %]</td></tr>
|
||
|
||
... | ... | |
<td> [% L.input_tag('defaults.parts_image_css', SELF.defaults.parts_image_css, style=style) %]</td>
|
||
<td>[% LxERP.t8('Style the picture with the following CSS code') %]</td>
|
||
</tr>
|
||
<!-- tr>
|
||
<td align="right">[% LxERP.t8('Normalize part description and part notes') %]</td>
|
||
<td> [% L.yes_no_tag('defaults.normalize_part_descriptions', SELF.defaults.normalize_part_descriptions) %]</td>
|
||
<td>[% LxERP.t8('Automatic deletion of leading, trailing and excessive (repetitive) spaces in part description and part notes. Affects also the CSV-Import.') %]</td>
|
||
</tr>
|
||
</tr -->
|
||
</table>
|
||
</div>
|
Auch abrufbar als: Unified diff
Validierung eingegebener Kunden- und Lieferantennamen konfigurierbar gemacht
Ferner Konfigurationsvorbereitung für die Umsetzung von Ticket 2011 (Validierung von part.notes und part.descriptions)