From: G. Richardson Date: Tue, 13 Mar 2012 15:38:38 +0000 (+0100) Subject: Merge branch 'master' of vc.linet-services.de:public/lx-office-erp X-Git-Tag: release-3.0.0beta1~346 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/5ae567349e69719bd1df8bf93166d2c47a18ee85?hp=390183ffd8019550ce7626a533f3f2ce5c3bc3ea Merge branch 'master' of vc.linet-services.de:public/lx-office-erp --- diff --git a/SL/Form.pm b/SL/Form.pm index 32675d8ce..050614d56 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -464,7 +464,12 @@ sub get_stylesheet_for_user { my $css_path = 'css'; if (my $user_style = $::myconfig{stylesheet}) { $user_style =~ s/\.css$//; # nuke trailing .css, this is a remnand of pre 2.7.0 stylesheet handling - $css_path = "$css_path/$user_style" if -d "$css_path/$user_style"; + if (-d "$css_path/$user_style" && + -f "$css_path/$user_style/main.css") { + $css_path = "$css_path/$user_style"; + } else { + $css_path = "$css_path/lx-office-erp"; + } } else { $css_path = "$css_path/lx-office-erp"; } @@ -2540,13 +2545,17 @@ sub all_vc { $table = $table eq "customer" ? "customer" : "vendor"; - my $query = qq|SELECT count(*) FROM $table WHERE NOT obsolete|; + # build selection list + # Hotfix für Bug 1837 - Besser wäre es alte Buchungsbelege + # OHNE Auswahlliste (reines Textfeld) zu laden. Hilft aber auch + # nicht für veränderbare Belege (oe, do, ...) + my $obsolete = "WHERE NOT obsolete" unless $self->{id}; + my $query = qq|SELECT count(*) FROM $table $obsolete|; my ($count) = selectrow_query($self, $dbh, $query); - # build selection list - if ($count <= $myconfig->{vclimit}) { + if ($count < $myconfig->{vclimit}) { $query = qq|SELECT id, name, salesman_id - FROM $table WHERE NOT obsolete + FROM $table $obsolete ORDER BY name|; $self->{"all_$table"} = selectall_hashref_query($self, $dbh, $query); } diff --git a/bin/mozilla/ca.pl b/bin/mozilla/ca.pl index fcff5cf33..af6c6c824 100644 --- a/bin/mozilla/ca.pl +++ b/bin/mozilla/ca.pl @@ -359,7 +359,7 @@ sub list_transactions { $form->{callback} = $link . '&sort=' . E($form->{sort}); - my %column_alignment = map { $_ => 'right' } qw(debit credit); + my %column_alignment = map { $_ => 'right' } qw(debit credit balance); my @custom_headers = (); # Zeile 1: diff --git a/templates/webpages/amcvar/render_inputs.html b/templates/webpages/amcvar/render_inputs.html index f4f1c63c7..a69101bf0 100644 --- a/templates/webpages/amcvar/render_inputs.html +++ b/templates/webpages/amcvar/render_inputs.html @@ -31,7 +31,7 @@