projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Verkäufer-/Bearbeiter-Drop-Downs in mehreren Masken sortiert anzeigen
[kivitendo-erp.git]
/
bin
/
mozilla
/
am.pl
diff --git
a/bin/mozilla/am.pl
b/bin/mozilla/am.pl
index
c918770
..
e141696
100644
(file)
--- a/
bin/mozilla/am.pl
+++ b/
bin/mozilla/am.pl
@@
-43,6
+43,8
@@
use SL::USTVA;
use SL::Iconv;
use SL::TODO;
use SL::DB::Printer;
use SL::Iconv;
use SL::TODO;
use SL::DB::Printer;
+use SL::DB::Tax;
+use SL::DB::Language;
use CGI;
require "bin/mozilla/common.pl";
use CGI;
require "bin/mozilla/common.pl";
@@
-960,6
+962,7
@@
sub config {
my $locale = $main::locale;
_build_cfg_options('dateformat', qw(mm/dd/yy dd/mm/yy dd.mm.yy yyyy-mm-dd));
my $locale = $main::locale;
_build_cfg_options('dateformat', qw(mm/dd/yy dd/mm/yy dd.mm.yy yyyy-mm-dd));
+ _build_cfg_options('timeformat', qw(hh:mm hh:mm:ss));
_build_cfg_options('numberformat', ('1,000.00', '1000.00', '1.000,00', '1000,00'));
my @formats = ();
_build_cfg_options('numberformat', ('1,000.00', '1000.00', '1.000,00', '1000,00'));
my @formats = ();
@@
-1034,6
+1037,9
@@
sub config {
$form->{title} = $locale->text('Edit Preferences for #1', $form->{login});
$form->header();
$form->{title} = $locale->text('Edit Preferences for #1', $form->{login});
$form->header();
+
+ $form->{full_signature} = $form->create_email_signature();
+
print $form->parse_html_template('am/config');
$main::lxdebug->leave_sub();
print $form->parse_html_template('am/config');
$main::lxdebug->leave_sub();
@@
-1414,6
+1420,7
@@
sub add_tax {
my $parameters_ref = {
# ChartTypeIsAccount => $ChartTypeIsAccount,
my $parameters_ref = {
# ChartTypeIsAccount => $ChartTypeIsAccount,
+ LANGUAGES => SL::DB::Manager::Language->get_all_sorted,
};
# Ausgabe des Templates
};
# Ausgabe des Templates
@@
-1449,6
+1456,8
@@
sub edit_tax {
$form->header();
my $parameters_ref = {
$form->header();
my $parameters_ref = {
+ LANGUAGES => SL::DB::Manager::Language->get_all_sorted,
+ TAX => SL::DB::Manager::Tax->find_by(id => $form->{id}),
};
# Ausgabe des Templates
};
# Ausgabe des Templates
@@
-1527,6
+1536,9
@@
sub save_tax {
$form->error($locale->text('Tax Percent is a number between 0 and 100'));
}
$form->error($locale->text('Tax Percent is a number between 0 and 100'));
}
+ my @translation_keys = grep { $_ =~ '^translation_\d+' } keys %$form;
+ $form->{translations} = { map { $_ =~ '^translation_(\d+)'; $1 => $form->{$_} } @translation_keys };
+
AM->save_tax(\%myconfig, \%$form);
$form->redirect($locale->text('Tax saved!'));
AM->save_tax(\%myconfig, \%$form);
$form->redirect($locale->text('Tax saved!'));