Revision b341a77d
Von Sven Schöling vor etwa 2 Jahren hinzugefügt
- ID b341a77dd5b58309effb3ae65698ba6bd2d3c56f
- Vorgänger 7fe78e85
SL/DB/PriceRuleItem.pm | ||
---|---|---|
133 | 133 |
: $op eq 'lt' ? t8('Transdate is before #1', $self->value_date_as_date) |
134 | 134 |
: $op eq 'gt' ? t8('Transdate is after #1', $self->value_date_as_date) |
135 | 135 |
: do { die "unknown op $op for type $type" } ) |
136 |
: $type eq 'cvar' ? t8('Custom Variables') . ' ' . $self->custom_variable_configs->description . ' ' . $self->value_text |
|
137 |
# $self->custom_variable_configs->value_col eq 'text_value' ? $self->value_text : 'lu' |
|
136 |
: $type eq 'cvar' ? $self->cvar_rule_description($type, $op) |
|
138 | 137 |
: do { die "unknown type $type" } |
139 | 138 |
} |
140 | 139 |
|
140 |
sub cvar_rule_description { |
|
141 |
my ($self, $type, $op) = @_; |
|
142 |
my $config = $self->cvar_config; |
|
143 |
my $description = $config->description; |
|
144 |
|
|
145 |
t8('Custom Variables (Abbreviation)') . ' ' . ( |
|
146 |
$config->type eq 'select' ? t8("#1 is #2", $description, $self->value_text) |
|
147 |
: $config->type eq 'customer' ? t8("#1 is #2", $description, $self->customer->displayable_name) |
|
148 |
: $config->type eq 'vendor' ? t8("#1 is #2", $description, $self->vendor->displayable_name) |
|
149 |
: $config->type eq 'part' ? t8("#1 is #2", $description, $self->part->displayable_name) |
|
150 |
: $config->type eq 'number' ? ( |
|
151 |
$op eq 'eq' ? t8('#1 equals #2', $description, $self->value_num_as_number) |
|
152 |
: $op eq 'lt' ? t8('#1 less than #2', $description, $self->value_num_as_number) |
|
153 |
: $op eq 'gt' ? t8('#1 more than #2', $description, $self->value_num_as_number) |
|
154 |
: $op eq 'le' ? t8('#1 equal or less than #2', $description, $self->value_num_as_number) |
|
155 |
: $op eq 'ge' ? t8('#1 equal or more than #2', $description, $self->value_num_as_number) |
|
156 |
: do { die "unknown op $op for type ", $config->type } |
|
157 |
) |
|
158 |
: $config->type eq 'date' ? ( |
|
159 |
$op eq 'eq' ? t8('#1 is #2', $description, $self->value_date_as_date) |
|
160 |
: $op eq 'lt' ? t8('#1 is before #2', $description, $self->value_date_as_date) |
|
161 |
: $op eq 'gt' ? t8('#1 is after #2', $description, $self->value_date_as_date) |
|
162 |
: do { die "unknown op $op for type ", $config->type } |
|
163 |
) |
|
164 |
: do { die "unknown type " . $config->type } |
|
165 |
); |
|
166 |
} |
|
167 |
|
|
141 | 168 |
sub validate { |
142 | 169 |
my ($self) = @_; |
143 | 170 |
|
locale/de/all | ||
---|---|---|
20 | 20 |
'#1 additional part(s)' => '#1 zusätzliche(r) Artikel', |
21 | 21 |
'#1 bank transaction bookings undone.' => '#1 Bankbewegung(en) rückgängig gemacht', |
22 | 22 |
'#1 dunnings have been deleted' => '#1 Mahnung(en) wurden gelöscht', |
23 |
'#1 equal or less than #2' => '#1 gleich oder kleiner als #2', |
|
24 |
'#1 equal or more than #2' => '#1 gleich oder größer als #2', |
|
25 |
'#1 equals #2' => '#1 ist #2', |
|
23 | 26 |
'#1 h' => '#1 h', |
24 | 27 |
'#1 invoice(s) saved.' => '#1 Rechnung(en) abgespeichert.', |
28 |
'#1 is #2' => '#1 ist #2', |
|
29 |
'#1 is after #2' => '#1 nach #2', |
|
30 |
'#1 is before #2' => '#1 vor #2', |
|
31 |
'#1 less than #2' => '#1 weniger als #2', |
|
32 |
'#1 more than #2' => '#1 mehr als #2', |
|
25 | 33 |
'#1 prices were updated.' => '#1 Preise wurden aktualisiert.', |
26 | 34 |
'#1 proposal(s) saved.' => '#1 Vorschläge gespeichert.', |
27 | 35 |
'#1 proposal(s) with #2 invoice(s) saved.' => '#1 Vorschlag(e) mit #2 Rechnung(en) abgespeichert', |
... | ... | |
913 | 921 |
'Custom CSV format' => 'Eigenes CSV-Format', |
914 | 922 |
'Custom Variable' => 'Benutzerdefinierte Variable', |
915 | 923 |
'Custom Variables' => 'Benutzerdefinierte Variablen', |
924 |
'Custom Variables (Abbreviation)' => '(BDV)', |
|
916 | 925 |
'Custom data export' => 'Benutzerdefinierter Datenexport', |
917 | 926 |
'Custom shipto' => 'Individuelle Lieferadresse', |
918 | 927 |
'Custom variables for module' => 'Benutzerdefinierte Variablen für Modul', |
Auch abrufbar als: Unified diff
PriceRule: Beschreibungen von CVar Regeln