Revision 61056f4b
Von Sven Schöling vor etwa 2 Jahren hinzugefügt
SL/DB/PriceRuleItem.pm | ||
---|---|---|
: $op eq 'lt' ? t8('Transdate is before #1', $self->value_date_as_date)
|
||
: $op eq 'gt' ? t8('Transdate is after #1', $self->value_date_as_date)
|
||
: do { die "unknown op $op for type $type" } )
|
||
: $type eq 'cvar' ? t8('Custom Variables') . ' ' . $self->custom_variable_configs->description . ' ' . $self->value_text
|
||
# $self->custom_variable_configs->value_col eq 'text_value' ? $self->value_text : 'lu'
|
||
: $type eq 'cvar' ? $self->cvar_rule_description($type, $op)
|
||
: do { die "unknown type $type" }
|
||
}
|
||
|
||
sub cvar_rule_description {
|
||
my ($self, $type, $op) = @_;
|
||
my $config = $self->cvar_config;
|
||
my $description = $config->description;
|
||
|
||
t8('Custom Variables (Abbreviation)') . ' ' . (
|
||
$config->type eq 'select' ? t8("#1 is #2", $description, $self->value_text)
|
||
: $config->type eq 'customer' ? t8("#1 is #2", $description, $self->customer->displayable_name)
|
||
: $config->type eq 'vendor' ? t8("#1 is #2", $description, $self->vendor->displayable_name)
|
||
: $config->type eq 'part' ? t8("#1 is #2", $description, $self->part->displayable_name)
|
||
: $config->type eq 'number' ? (
|
||
$op eq 'eq' ? t8('#1 equals #2', $description, $self->value_num_as_number)
|
||
: $op eq 'lt' ? t8('#1 less than #2', $description, $self->value_num_as_number)
|
||
: $op eq 'gt' ? t8('#1 more than #2', $description, $self->value_num_as_number)
|
||
: $op eq 'le' ? t8('#1 equal or less than #2', $description, $self->value_num_as_number)
|
||
: $op eq 'ge' ? t8('#1 equal or more than #2', $description, $self->value_num_as_number)
|
||
: do { die "unknown op $op for type ", $config->type }
|
||
)
|
||
: $config->type eq 'date' ? (
|
||
$op eq 'eq' ? t8('#1 is #2', $description, $self->value_date_as_date)
|
||
: $op eq 'lt' ? t8('#1 is before #2', $description, $self->value_date_as_date)
|
||
: $op eq 'gt' ? t8('#1 is after #2', $description, $self->value_date_as_date)
|
||
: do { die "unknown op $op for type ", $config->type }
|
||
)
|
||
: do { die "unknown type " . $config->type }
|
||
);
|
||
}
|
||
|
||
sub validate {
|
||
my ($self) = @_;
|
||
|
locale/de/all | ||
---|---|---|
'#1 additional part(s)' => '#1 zusätzliche(r) Artikel',
|
||
'#1 bank transaction bookings undone.' => '#1 Bankbewegung(en) rückgängig gemacht',
|
||
'#1 dunnings have been deleted' => '#1 Mahnung(en) wurden gelöscht',
|
||
'#1 equal or less than #2' => '#1 gleich oder kleiner als #2',
|
||
'#1 equal or more than #2' => '#1 gleich oder größer als #2',
|
||
'#1 equals #2' => '#1 ist #2',
|
||
'#1 h' => '#1 h',
|
||
'#1 invoice(s) saved.' => '#1 Rechnung(en) abgespeichert.',
|
||
'#1 is #2' => '#1 ist #2',
|
||
'#1 is after #2' => '#1 nach #2',
|
||
'#1 is before #2' => '#1 vor #2',
|
||
'#1 less than #2' => '#1 weniger als #2',
|
||
'#1 more than #2' => '#1 mehr als #2',
|
||
'#1 prices were updated.' => '#1 Preise wurden aktualisiert.',
|
||
'#1 proposal(s) saved.' => '#1 Vorschläge gespeichert.',
|
||
'#1 proposal(s) with #2 invoice(s) saved.' => '#1 Vorschlag(e) mit #2 Rechnung(en) abgespeichert',
|
||
... | ... | |
'Custom CSV format' => 'Eigenes CSV-Format',
|
||
'Custom Variable' => 'Benutzerdefinierte Variable',
|
||
'Custom Variables' => 'Benutzerdefinierte Variablen',
|
||
'Custom Variables (Abbreviation)' => '(BDV)',
|
||
'Custom data export' => 'Benutzerdefinierter Datenexport',
|
||
'Custom shipto' => 'Individuelle Lieferadresse',
|
||
'Custom variables for module' => 'Benutzerdefinierte Variablen für Modul',
|
Auch abrufbar als: Unified diff
PriceRule: Beschreibungen von CVar Regeln