Revision f3d76748
Von Tamino Steinert vor etwa 2 Monaten hinzugefügt
SL/DB/Order.pm | ||
---|---|---|
81 | 81 |
|
82 | 82 |
__PACKAGE__->before_save('_before_save_set_ord_quo_number'); |
83 | 83 |
__PACKAGE__->before_save('_before_save_create_new_project'); |
84 |
__PACKAGE__->before_save('_valid_periodic_invoice_config');
|
|
84 |
__PACKAGE__->before_save('_before_save_validate_periodic_invoice_config');
|
|
85 | 85 |
__PACKAGE__->before_save('_before_save_remove_empty_custom_shipto'); |
86 | 86 |
__PACKAGE__->before_save('_before_save_set_custom_shipto_module'); |
87 | 87 |
__PACKAGE__->after_save('_after_save_link_records'); |
... | ... | |
126 | 126 |
return 1; |
127 | 127 |
} |
128 | 128 |
|
129 |
sub _valid_periodic_invoice_config {
|
|
129 |
sub _before_save_validate_periodic_invoice_config {
|
|
130 | 130 |
my ($self) = @_; |
131 | 131 |
|
132 | 132 |
if ($self->periodic_invoices_config) { |
... | ... | |
150 | 150 |
if $item_config->start_date && $item_config->end_date |
151 | 151 |
&& $item_config->start_date > $item_config->end_date; |
152 | 152 |
} |
153 |
die $error_string if $error_string;
|
|
153 |
die t8("#1", $error_string) if $error_string;
|
|
154 | 154 |
} |
155 | 155 |
} else { |
156 | 156 |
my @error_pos; |
locale/de/all | ||
---|---|---|
17 | 17 |
' would be set to the state \'paid\'' => ' würden den Status \'bezahlt\' haben', |
18 | 18 |
'"#1" seems to be a faulty list of email addresses. After extracing addresses (#2) too many characters are left.' => '"#1" scheint fehlerhaft zu sein. Es wurden E-Mail Adressen extrahiert (#2), aber es sind noch zu viele Zeichen übrig.', |
19 | 19 |
'"#1" seems to be a faulty list of email addresses. No addresses could be extracted.' => '"#1" scheint fehlerhaft zu sein. Es konnte keine E-Mail Adresse extrahiert werden', |
20 |
'#1' => '#1', |
|
20 | 21 |
'#1 (custom variable)' => '#1 (benutzerdefinierte Variable)', |
21 | 22 |
'#1 MD' => '#1 PT', |
22 | 23 |
'#1 additional part(s)' => '#1 zusätzliche(r) Artikel', |
locale/en/all | ||
---|---|---|
17 | 17 |
' would be set to the state \'paid\'' => '', |
18 | 18 |
'"#1" seems to be a faulty list of email addresses. After extracing addresses (#2) too many characters are left.' => '', |
19 | 19 |
'"#1" seems to be a faulty list of email addresses. No addresses could be extracted.' => '', |
20 |
'#1' => '', |
|
20 | 21 |
'#1 (custom variable)' => '', |
21 | 22 |
'#1 MD' => '', |
22 | 23 |
'#1 additional part(s)' => '', |
Auch abrufbar als: Unified diff
S:D:Order: schmeiße Fehler beim Validieren als t8-String