projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Druckvorlagen: Das aktuelle Datum in template_meta zur Verfügung gestellt.
[kivitendo-erp.git]
/
bin
/
mozilla
/
ct.pl
diff --git
a/bin/mozilla/ct.pl
b/bin/mozilla/ct.pl
index
33b0c83
..
de0a436
100644
(file)
--- a/
bin/mozilla/ct.pl
+++ b/
bin/mozilla/ct.pl
@@
-313,8
+313,9
@@
sub form_header {
my %myconfig = %main::myconfig;
my $locale = $main::locale;
my %myconfig = %main::myconfig;
my $locale = $main::locale;
- $form->get_lists(employees => "ALL_EMPLOYEES",
- taxzones => "ALL_TAXZONES");
+ $form->get_lists(employees => "ALL_EMPLOYEES",
+ taxzones => "ALL_TAXZONES",
+ currencies => "ALL_CURRENCIES");
$form->get_pricegroup(\%myconfig, { all => 1 });
$form->get_lists(customers => { key => "ALL_SALESMAN_CUSTOMERS", business_is_salesman => 1 }) if $::lx_office_conf{features}->{vertreter};
$form->get_pricegroup(\%myconfig, { all => 1 });
$form->get_lists(customers => { key => "ALL_SALESMAN_CUSTOMERS", business_is_salesman => 1 }) if $::lx_office_conf{features}->{vertreter};
@@
-345,6
+346,12
@@
sub form_header {
}
}
}
}
+ if (!$form->{'id'}) {
+ $form->{'currency'} = $form->get_default_currency(\%myconfig);
+ } else {
+ $form->{currency} = $form->{curr};
+ }
+
$form->{CUSTOM_VARIABLES} = CVar->get_custom_variables('module' => 'CT', 'trans_id' => $form->{id});
CVar->render_inputs('variables' => $form->{CUSTOM_VARIABLES}) if (scalar @{ $form->{CUSTOM_VARIABLES} });
$form->{CUSTOM_VARIABLES} = CVar->get_custom_variables('module' => 'CT', 'trans_id' => $form->{id});
CVar->render_inputs('variables' => $form->{CUSTOM_VARIABLES}) if (scalar @{ $form->{CUSTOM_VARIABLES} });