Revision af2f24b8
Von Jan Büren vor fast 11 Jahren hinzugefügt
SL/Controller/CustomerVendor.pm | ||
---|---|---|
865 | 865 |
sub normalize_name { |
866 | 866 |
my ($self) = @_; |
867 | 867 |
|
868 |
# check if feature is enabled (select normalize_vc_names from defaults) |
|
869 |
return unless ($::instance_conf->get_normalize_vc_names); |
|
870 |
|
|
868 | 871 |
return unless $self->{cv}; |
869 | 872 |
my $name = $self->{cv}->name; |
870 | 873 |
$name =~ s/\s+$//; |
SL/DB/MetaSetup/Default.pm | ||
---|---|---|
55 | 55 |
language_id => { type => 'integer' }, |
56 | 56 |
max_future_booking_interval => { type => 'integer', default => 360 }, |
57 | 57 |
mtime => { type => 'timestamp' }, |
58 |
# normalize_part_descriptions => { type => 'boolean', default => 'true' }, |
|
59 |
normalize_vc_names => { type => 'boolean', default => 'true' }, |
|
58 | 60 |
parts_image_css => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' }, |
59 | 61 |
parts_listing_image => { type => 'boolean', default => 'true' }, |
60 | 62 |
parts_show_image => { type => 'boolean', default => 'true' }, |
locale/de/all | ||
---|---|---|
256 | 256 |
'Authentification database creation' => 'Anlegen der Datenbank zur Benutzerauthentifizierung', |
257 | 257 |
'Authentification tables creation' => 'Anlegen der Tabellen zur Benutzerauthentifizierung', |
258 | 258 |
'Auto Send?' => 'Auto. Versand?', |
259 |
'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"', |
|
260 |
'Automatic deletion of leading, trailing and excessive (repetitive) spaces in part description and part notes. Affects also the CSV-Import.' => '', |
|
259 | 261 |
'Automatically created invoice for fee and interest for dunning %s' => 'Automatisch erzeugte Rechnung für Gebühren und Zinsen zu Mahnung %s', |
260 | 262 |
'Available' => 'Verfügbar', |
261 | 263 |
'Available qty' => 'Lagerbestand', |
... | ... | |
792 | 794 |
'EB-Wert' => 'EB-Wert', |
793 | 795 |
'EK' => 'EK', |
794 | 796 |
'ELSE' => 'Zusatz', |
795 |
'ELSTER Export (Taxbird)' => 'ELSTER-Export nach Taxbird', |
|
796 |
'ELSTER Export (Winston)' => 'ELSTER Export nach Winston', |
|
797 |
'ELSTER Export nach Winston' => 'ELSTER Export nach Winston', |
|
798 | 797 |
'ELSTER Tax Number' => 'ELSTER-Steuernummer', |
799 | 798 |
'EQUITY' => 'EIGENTUM', |
800 | 799 |
'EUER' => 'Einnahmen-/Überschussrechnung', |
... | ... | |
1414 | 1413 |
'No.' => 'Position', |
1415 | 1414 |
'None' => 'Kein', |
1416 | 1415 |
'Normal users cannot log in.' => 'Normale Benutzer können sich nicht anmelden.', |
1416 |
'Normalize Customer / Vendor names' => 'Normalisierung Kunden- / Lieferantennamen', |
|
1417 |
'Normalize part description and part notes' => 'Normalisierung Artikelbeschreibung und Artikellangtext (Bemerkung)', |
|
1417 | 1418 |
'Not Discountable' => 'Nicht rabattierfähig', |
1418 | 1419 |
'Not delivered' => 'Nicht geliefert', |
1419 | 1420 |
'Not done yet' => 'Noch nicht fertig', |
... | ... | |
2405 | 2406 |
'USt-IdNr.' => 'USt-IdNr.', |
2406 | 2407 |
'USt-Konto' => 'USt-Konto', |
2407 | 2408 |
'UStVA' => 'UStVA', |
2408 |
'UStVA (PDF-Dokument)' => 'UStVa als PDF-Dokument', |
|
2409 | 2409 |
'UStVa' => 'UStVa', |
2410 | 2410 |
'UStVa Einstellungen' => 'UStVa Einstellungen', |
2411 | 2411 |
'Unbalanced Ledger' => 'Bilanzfehler', |
... | ... | |
2518 | 2518 |
'Workflow sales_order' => 'Workflow Auftrag', |
2519 | 2519 |
'Workflow sales_quotation' => 'Workflow Angebot', |
2520 | 2520 |
'Write bin to default bin in part?' => 'Diesen Lagerplatz als Standardlagerplatz im Artikel setzen?', |
2521 |
'Wrong Period' => 'Falscher Zeitraum', |
|
2522 | 2521 |
'Wrong tax keys recorded' => 'Gespeicherte Steuerschlüssel sind falsch', |
2523 | 2522 |
'Wrong taxes recorded' => 'Gespeicherte Steuern passen nicht zum Steuerschlüssel', |
2524 | 2523 |
'YYYY' => 'JJJJ', |
sql/Pg-upgrade2/defaults_feature2.pl | ||
---|---|---|
1 |
# @tag: defaults_feature2 |
|
2 |
# @description: Normalisieren von vc-Namen, als auch part.notes und part.descriptions als Feature konfigurierbar machen |
|
3 |
# @depends: release_3_0_0 |
|
4 |
package SL::DBUpgrade2::defaults_feature2; |
|
5 |
|
|
6 |
use utf8; |
|
7 |
|
|
8 |
use parent qw(SL::DBUpgrade2::Base); |
|
9 |
use strict; |
|
10 |
|
|
11 |
sub run { |
|
12 |
my ($self) = @_; |
|
13 |
|
|
14 |
# this query will fail if column already exist (new database) |
|
15 |
$self->db_query(qq|ALTER TABLE defaults ADD COLUMN normalize_vc_names boolean DEFAULT true|); |
|
16 |
$self->db_query(qq|ALTER TABLE defaults ADD COLUMN normalize_part_descriptions boolean DEFAULT true|); |
|
17 |
return 1; |
|
18 |
} |
|
19 |
|
|
20 |
1; |
templates/webpages/client_config/_features.html | ||
---|---|---|
21 | 21 |
<td>[% L.yes_no_tag('defaults.vertreter', SELF.defaults.vertreter) %]</td> |
22 | 22 |
<td>[% LxERP.t8('Representative for Customer') %]</td> |
23 | 23 |
</tr> |
24 |
<tr> |
|
25 |
<td align="right">[% LxERP.t8('Normalize Customer / Vendor names') %]</td> |
|
26 |
<td> [% L.yes_no_tag('defaults.normalize_vc_names', SELF.defaults.normalize_vc_names) %]</td> |
|
27 |
<td>[% LxERP.t8('Automatic deletion of leading, trailing and excessive (repetitive) spaces in customer or vendor names') %]</td> |
|
28 |
</tr> |
|
24 | 29 |
|
25 | 30 |
<tr><td class="listheading" colspan="4">[% LxERP.t8("Parts Master Data") %]</td></tr> |
26 | 31 |
|
... | ... | |
39 | 44 |
<td> [% L.input_tag('defaults.parts_image_css', SELF.defaults.parts_image_css, style=style) %]</td> |
40 | 45 |
<td>[% LxERP.t8('Style the picture with the following CSS code') %]</td> |
41 | 46 |
</tr> |
47 |
<!-- tr> |
|
48 |
<td align="right">[% LxERP.t8('Normalize part description and part notes') %]</td> |
|
49 |
<td> [% L.yes_no_tag('defaults.normalize_part_descriptions', SELF.defaults.normalize_part_descriptions) %]</td> |
|
50 |
<td>[% LxERP.t8('Automatic deletion of leading, trailing and excessive (repetitive) spaces in part description and part notes. Affects also the CSV-Import.') %]</td> |
|
51 |
</tr> |
|
52 |
</tr --> |
|
42 | 53 |
</table> |
43 | 54 |
</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)