X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fca.pl;h=27070bb3f4cfdcfd7efe7b787679f4ff983b9d76;hb=64ec422b1db624af0f606fb485f7f5b0262006b3;hp=dd157e0a9626bf7a71b4b2d64e52a1a336f59d9b;hpb=e055700faea1906bea6c03184ba4516b57cac887;p=kivitendo-erp.git
diff --git a/bin/mozilla/ca.pl b/bin/mozilla/ca.pl
index dd157e0a9..27070bb3f 100644
--- a/bin/mozilla/ca.pl
+++ b/bin/mozilla/ca.pl
@@ -84,7 +84,8 @@ sub chart_of_accounts {
$form->{title} = $locale->text('Chart of Accounts');
- if ($::lx_office_conf{system}->{eur}) {
+ if ( $::instance_conf->get_accounting_method eq 'cash' ) {
+ # $form->{method} can probably be made redundant now that we have get_accounting_method
$form->{method} = "cash";
}
@@ -177,8 +178,8 @@ sub list {
| if $form->{selectdepartment};
- my $accrual = $::lx_office_conf{system}->{eur} ? "" : "checked";
- my $cash = $::lx_office_conf{system}->{eur} ? "checked" : "";
+ my $accrual = $::instance_conf->get_accounting_method eq 'cash' ? "" : "checked";
+ my $cash = $::instance_conf->get_accounting_method eq 'cash' ? "checked" : "";
my $name_1 = "fromdate";
my $id_1 = "fromdate";
@@ -246,7 +247,7 @@ sub list {
$form->{description} =~ s/\"/"/g;
- my $eur = $::lx_office_conf{system}->{eur};
+ my $eur = $::instance_conf->get_accounting_method eq 'cash' ? 1 : 0;
print qq|
@@ -544,7 +545,7 @@ sub list_transactions {
'ustrate' => { 'text' => $locale->text('Satz %'), },
);
- my @hidden_variables = qw(accno fromdate todate description accounttype l_heading subtotal department projectnumber project_id sort);
+ my @hidden_variables = qw(accno fromdate todate description accounttype l_heading subtotal department projectnumber project_id sort method);
my $link = build_std_url('action=list_transactions', grep { $form->{$_} } @hidden_variables);