use SL::Locale::String qw(t8);
use SL::PriceSource::ALL;
use SL::Template;
+use SL::DBUtils;
__PACKAGE__->run_before('check_auth');
my ($self, %params) = @_;
$::form->{use_templates} = $self->defaults->templates ? 'existing' : 'new';
+ $::form->{use_case} = scalar(grep(/^Switzerland/, (selectrow_query($::form, $::form->get_standard_dbh, 'SELECT coa FROM defaults'))[0]));
$self->edit_form;
}
my $select_eur = q|<option value=""> |. $locale->text('None') .q|</option>\n|;
my %eur;
- if(scalar(grep(/^Switzerland/, (selectrow_query($form, $form->get_standard_dbh, 'SELECT coa FROM defaults'))[0]))) {
+ if ($form->{use_case} = scalar(grep(/^Switzerland/, (selectrow_query($form, $form->get_standard_dbh, 'SELECT coa FROM defaults'))[0]))) {
%eur = (
- 1 => "Umsatzerlöse",
- 2 => "Spenden",
- 3 => "Mitgliederbeiträge",
- 4 => "Finanzerträge",
- 5 => "Ertragsminderungen",
- 6 => "Einkauf",
- 7 => "Löhne und Gehälter",
- 8 => "Sozialversicherungen",
- 9 => "Mieten",
- 10 => "Betriebsversicherungen",
- 11 => "Material- und Warenverluste",
- 12 => "Werbeaufwand",
- 13 => "Werkzeuge, Unterhalt, Betriebsmaterial",
- 14 => "Internet- und Serverhousingkosten",
- 15 => "Arbeitsleistungen externer Firmen",
- 16 => "Bürobedarf, Versandspesen, Telefon",
- 17 => "Sonstige Aufwendungen",
- 18 => "Abschreibungen",
- 19 => "Finanzaufwand",
- 20 => "Aufwandsminderungen",
- 21 => "Betriebliche Steuern",
+ 1 => "Ertrag",
+ 6 => "Aufwand",
);
} else {
%eur = (
module=ap.pl
action=add
-[General Ledger--DATEV - Export Assistent]
-ACCESS=datev_export
-module=datev.pl
-action=export
-
-
-
[General Ledger--Reports]
module=menu.pl
action=report
report=erfolgsrechnung
-[Reports--Income Statement]
-ACCESS=report
-module=rp.pl
-action=report
-report=income_statement
-
-[Reports--BWA]
-ACCESS=report
-module=rp.pl
-action=report
-report=bwa
-
-[Reports--Balance Sheet]
-ACCESS=report
-module=rp.pl
-action=report
-report=balance_sheet
-
-[Reports--UStVa]
-ACCESS=advance_turnover_tax_return
-module=ustva.pl
-action=report
-
[Reports--Projecttransactions]
ACCESS=report
module=rp.pl
module=controller.pl
action=ClientConfig/edit
-[System--UStVa Einstellungen]
-module=ustva.pl
-action=config_step1
-
[System--Edit Dunning]
module=dn.pl
action=edit_config
<th align="left">[% 'EUER' | $T8 %]</th>
<td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
</tr>
+ [% IF use_case == 0 %]
<tr>
<th align="left">[% 'BWA' | $T8 %]</th>
<td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
<th align="left">[% 'Datevautomatik' | $T8 %]</th>
<td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]>[% 'If checked the taxkey will not be exported in the DATEV Export, but only IF chart taxkeys differ from general ledger taxkeys' | $T8 %] </td>
</tr>
+ [% END %]
<tr>
<th align="left">[% 'Folgekonto' | $T8 %]</th>
<td><select name="new_chart_id">[% selectnewaccount %]</select></td>
<li><a href="#ranges_of_numbers">[% LxERP.t8('Ranges of numbers') %]</a></li>
<li><a href="#default_accounts">[% LxERP.t8('Default Accounts') %]</a></li>
<li><a href="#posting_configuration">[% LxERP.t8('Posting Configuration') %]</a></li>
- <li><a href="#datev_check_configuration">[% LxERP.t8('DATEV check configuration') %]</a></li>
+ [% IF use_case == 0 %]
+ <li><a href="#datev_check_configuration">[% LxERP.t8('DATEV check configuration') %]</a></li>
+ [% END %]
<li><a href="#orders_deleteable">[% LxERP.t8('Orders / Delivery Orders deleteable') %]</a></li>
<li><a href="#warehouse">[% LxERP.t8('Warehouse') %]</a></li>
<li><a href="#features">[% LxERP.t8('Features') %]</a></li>