my $form = Form->new;
$form->{$self->nr_key()} = $self->order->number;
+ $form->{cusordnumber} = $self->order->cusordnumber;
$form->{formname} = $self->type;
$form->{type} = $self->type;
$form->{language} = '_' . $self->order->language->template_code if $self->order->language;
$form->{language_id} = $self->order->language->id if $self->order->language;
- $form->{cusordnumber} = $self->order->cusordnumber;
$form->{format} = 'pdf';
$email_form->{subject} = $form->generate_email_subject();
return $formname_translations{$formname};
}
+sub get_cusordnumber_translation {
+ $main::lxdebug->enter_sub();
+ my ($self, $formname) = @_;
+
+ $formname ||= $self->{formname};
+
+ $self->{recipient_locale} ||= Locale->lang_to_locale($self->{language});
+ local $::locale = Locale->new($self->{recipient_locale});
+
+
+ $main::lxdebug->leave_sub();
+ return $main::locale->text('Your Order');
+}
+
sub get_number_prefix_for_type {
$main::lxdebug->enter_sub();
my ($self) = @_;
$subject .= " " . $self->{"${prefix}number"}
}
+ if ($self->{cusordnumber}) {
+ $subject = $self->get_cusordnumber_translation() . ' ' . $self->{cusordnumber} . ' / ' . $subject;
+ }
+
$main::lxdebug->leave_sub();
return $subject;
}
language_id: $('#language_id').val(),
media: 'email',
ordnumber: $('#ordnumber').val(),
+ cusordnumber: $('#cusordnumber').val(),
rowcount: $('#rowcount').val(),
quonumber: $('#quonumber').val(),
type: $('#type').val(),
'You should create a backup of the database before proceeding because the backup might not be reversible.' => 'Sie sollten eine Sicherungskopie der Datenbank erstellen, bevor Sie fortfahren, da die Aktualisierung unter Umständen nicht umkehrbar ist.',
'You\'re not editing a file.' => 'Sie bearbeiten momentan keine Datei.',
'You\'ve already chosen the following limitations:' => 'Sie haben bereits die folgenden Einschränkungen vorgenommen:',
+ 'Your Order' => 'Ihre Bestellung',
'Your PostgreSQL installationen does not use Unicode as its encoding. This is not supported anymore.' => 'Ihre PostgreSQL-Installation benutzt ein anderes Encoding als Unicode. Dies wird nicht mehr unterstützt.',
'Your Reference' => 'Ihr Zeichen',
'Your TODO list' => 'Ihre Aufgabenliste',
'You should create a backup of the database before proceeding because the backup might not be reversible.' => '',
'You\'re not editing a file.' => '',
'You\'ve already chosen the following limitations:' => '',
+ 'Your Order' => '',
'Your PostgreSQL installationen does not use Unicode as its encoding. This is not supported anymore.' => '',
'Your Reference' => '',
'Your TODO list' => '',