X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Frp.pl;h=cc272249df3874a5aa2944e48af3b96c83b43c82;hb=6bad0469c4f5bb92830f77cf7675e76730e79ae4;hp=0106afdaaaebe15eababc796b86c48a04ff97075;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index 0106afdaa..cc272249d 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -32,15 +32,18 @@ #====================================================================== # # module for preparing Income Statement and Balance Sheet -# +# #====================================================================== -require "$form->{path}/arap.pl"; +require "bin/mozilla/arap.pl"; +require "bin/mozilla/common.pl"; use SL::PE; use SL::RP; +use SL::USTVA; 1; + # end of main # this is for our long dates @@ -87,147 +90,160 @@ use SL::RP; sub report { $lxdebug->enter_sub(); - %title = ( 'balance_sheet' => 'Balance Sheet', - 'income_statement' => 'Income Statement', - 'trial_balance' => 'Trial Balance', - 'ar_aging' => 'AR Aging', - 'ap_aging' => 'Offene Verbindlichkeiten', - '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' => 'Betriebswirtschaftliche Auswertung', - 'ustva' => 'Umsatzsteuervoranmeldung', - ); - - $form->{title} = $locale->text($title{$form->{report}}); - - $accrual = ($eur) ? "" : "checked"; - $cash = ($eur) ? "checked" : ""; - - ($null,$null,$null,$null,$null,$year,$null,$null,$null) = localtime(); - $year += 1900; - + %title = ('balance_sheet' => 'Balance Sheet', + 'income_statement' => 'Income Statement', + 'trial_balance' => 'Trial Balance', + 'ar_aging' => 'AR Aging', + 'ap_aging' => 'Offene Verbindlichkeiten', + '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' => 'Betriebswirtschaftliche Auswertung', + 'ustva' => 'Umsatzsteuervoranmeldung',); + + $form->{title} = $locale->text($title{ $form->{report} }); + + $accrual = ($eur) ? "" : "checked"; + $cash = ($eur) ? "checked" : ""; + + $year = (localtime)[5] + 1900; + # get departments $form->all_departments(\%myconfig); if (@{ $form->{all_departments} }) { $form->{selectdepartment} = "