X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/56041df395cc2d8971f822c54f4e48743cc4f22b..6277aefffea29c8aa6f684bd86c55cdc6366f32f:/bin/mozilla/am.pl diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index c9b5f549f..60814f2dc 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -575,12 +575,11 @@ sub list_account { $ca->{link} .= qq|[| . $link . qq|] |; } - $ca->{startdate} =~ s/,/
/og; - $ca->{tk_ustva} =~ s/,/
/og; - - $ca->{taxkey_id} =~ s/,/
/og; - $ca->{taxdescription} =~ s/,/
/og; - + $ca->{startdate} =~ s/,/
/og; + $ca->{tk_ustva} =~ s/,/
/og; + $ca->{taxkey} =~ s/,/
/og; + $ca->{taxaccount} =~ s/,/
/og; + $ca->{taxdescription} =~ s/,/
/og; $ca->{datevautomatik} = ($ca->{datevautomatik}) ? $locale->text('On'):q{}; $ca->{category} = ($ca->{category} eq 'A') ? $locale->text('Account Category A') @@ -2326,6 +2325,10 @@ sub add_payment { $form->{terms_netto} = 0; $form->{terms_skonto} = 0; $form->{percent_skonto} = 0; + my @languages = AM->language(\%myconfig, $form, 1); + map({ $_->{"language"} = $_->{"description"}; + $_->{"language_id"} = $_->{"id"}; } @languages); + $form->{"TRANSLATION"} = \@languages; &payment_header; &form_footer; @@ -2337,7 +2340,7 @@ sub edit_payment { $form->{title} = "Edit"; - AM->get_payment(\%myconfig, \%$form); + AM->get_payment(\%myconfig, $form); $form->{percent_skonto} = $form->format_amount(\%myconfig, $form->{percent_skonto} * 100); @@ -2453,7 +2456,7 @@ sub list_payment { build_std_url("action=edit_payment", "id=$ref->{id}", "callback=$callback") . qq|">| . H($ref->{description}) . qq||; $column_data{description_long} = - qq|| . H($ref->{description_long}) . qq||; + qq|| . H($ref->{description_long}) . qq||; $column_data{terms_netto} = qq|$ref->{terms_netto}|; $column_data{terms_skonto} = @@ -2537,6 +2540,22 @@ sub payment_header { | . $locale->text('Long Description') . qq| +|; + + foreach my $language (@{ $form->{"TRANSLATION"} }) { + print qq| + + | . + sprintf($locale->text('Translation (%s)'), + $language->{"language"}) + . qq| + + +|; + } + + print qq| | . $locale->text('Netto Terms') . qq| @@ -2552,7 +2571,38 @@ sub payment_header {
-|; + +

| . $locale->text("You can use the following strings in the long " . + "description and all translations. They will be " . + "replaced by their actual values by Lx-Office " . + "before they're output.") +. qq|

+ +|; $lxdebug->leave_sub(); }