From: Sven Schöling Date: Mon, 28 Nov 2011 16:05:37 +0000 (+0100) Subject: Merge branch 'master' of vc.linet-services.de:public/lx-office-erp X-Git-Tag: release-2.7.0beta1~157 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/b0f652b639cd4d363235e8f9b53e14efc5085e1a?hp=1167841707ec8fe4ac5964830cd292f129e9f98d Merge branch 'master' of vc.linet-services.de:public/lx-office-erp --- diff --git a/SL/RP.pm b/SL/RP.pm index 49dbff603..e0ed0b4ee 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -1307,7 +1307,7 @@ sub get_taxaccounts { FROM chart c, tax t WHERE (c.link LIKE '%CT_tax%') AND (c.id = t.chart_id) ORDER BY c.accno|; - $form->{taxaccounts} = selectall_hashref_quert($form, $dbh, $query); + $form->{taxaccounts} = selectall_hashref_query($form, $dbh, $query); $dbh->disconnect; diff --git a/SL/User.pm b/SL/User.pm index 888d042c4..18bf0697b 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -752,7 +752,7 @@ sub config_vars { my @conf = qw(address admin businessnumber company countrycode currency dateformat dbconnect dbdriver dbhost dbport dboptions dbname dbuser dbpasswd email fax name numberformat password - printer role sid signature stylesheet tel templates vclimit angebote + printer sid signature stylesheet tel templates vclimit angebote bestellungen rechnungen anfragen lieferantenbestellungen einkaufsrechnungen taxnumber co_ustid duns menustyle template_format default_media default_printer_id copies show_form_details favorites diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index a7d4eccd3..33b0c8332 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -321,7 +321,6 @@ sub form_header { $form->{ALL_SALESMEN} = $form->{ALL_EMPLOYEES}; $form->{taxincluded} = ($form->{taxincluded}) ? "checked" : ""; - $form->{is_admin} = $myconfig{role} eq 'admin'; $form->{is_customer} = $form->{db} eq 'customer'; $form->{salesman_label} = sub { $_[0]->{name} ne "" ? $_[0]->{name} : $_[0]->{login} }; $form->{shipto_label} = \&_shipto_label; diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 59b594aac..5df76ed77 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -951,7 +951,7 @@ sub edit_e_mail { subject => $subject, print_options => print_options('inline' => 1), HIDDEN => [ map +{ name => $_, value => $form->{$_} }, @hidden_keys ], - SHOW_BCC => $myconfig{role} eq 'admin' }); + SHOW_BCC => $::auth->assert('email_bcc', 'may fail') }); $main::lxdebug->leave_sub(); } diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index dc1b15384..4bc4673d2 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -120,805 +120,108 @@ sub check_rp_access { } sub report { - $main::lxdebug->enter_sub(); + $::lxdebug->enter_sub; check_rp_access(); - my $form = $main::form; - my %myconfig = %main::myconfig; - my $locale = $main::locale; - my %title = ( - 'balance_sheet' => 'Balance Sheet', - 'income_statement' => 'Income Statement', - 'trial_balance' => 'Trial Balance', - 'ar_aging' => 'Search AR Aging', - 'ap_aging' => 'Search AP Aging', - 'tax_collected' => 'Tax collected', - 'tax_paid' => 'Tax paid', - 'nontaxable_sales' => 'Non-taxable Sales', - 'nontaxable_purchases' => 'Non-taxable Purchases', - 'receipts' => 'Receipts', - 'payments' => 'Payments', - 'projects' => 'Project Transactions', - 'bwa' => 'Business evaluation', + balance_sheet => $::locale->text('Balance Sheet'), + income_statement => $::locale->text('Income Statement'), + trial_balance => $::locale->text('Trial Balance'), + ar_aging => $::locale->text('Search AR Aging'), + ap_aging => $::locale->text('Search AP Aging'), + tax_collected => $::locale->text('Tax collected'), + tax_paid => $::locale->text('Tax paid'), + nontaxable_sales => $::locale->text('Non-taxable Sales'), + nontaxable_purchases => $::locale->text('Non-taxable Purchases'), + receipts => $::locale->text('Receipts'), + payments => $::locale->text('Payments'), + projects => $::locale->text('Project Transactions'), + bwa => $::locale->text('Business evaluation'), ); - $form->{title} = $locale->text($title{ $form->{report} }); - - my $accrual = $::instance_conf->get_accounting_method eq 'cash' ? "" : "checked"; - my $cash = $::instance_conf->get_accounting_method eq 'cash' ? "checked" : ""; - - my $year = (localtime)[5] + 1900; + $::form->{title} = $title{$::form->{report}}; # get departments - $form->all_departments(\%myconfig); - if (@{ $form->{all_departments} || [] }) { - $form->{selectdepartment} = "