Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b6fe2e66

Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt

  • ID b6fe2e661e43652aa94637335064792f99a6f43e
  • Vorgänger bd383c2f
  • Nachfolger d21c6872

featured form-objects visible/unvisible

Unterschiede anzeigen:

SL/Controller/ClientConfig.pm
30 30
  my ($self, %params) = @_;
31 31

  
32 32
  $::form->{use_templates} = $self->defaults->templates ? 'existing' : 'new';
33
  $::form->{feature_datev} = $self->defaults->feature_datev;
33 34
  $self->edit_form;
34 35
}
35 36

  
bin/mozilla/am.pl
45 45
use SL::DB::Printer;
46 46
use SL::DB::Tax;
47 47
use SL::DB::Language;
48
use SL::DB::Default;
48 49
use CGI;
49 50

  
50 51
require "bin/mozilla/common.pl";
......
87 88

  
88 89
  my $form     = $main::form;
89 90
  my %myconfig = %main::myconfig;
91
  my $defaults = SL::DB::Default->get;
90 92

  
91 93
  $main::auth->assert('config');
92 94

  
93 95
  $form->{title} = "Edit";
96
  $form->{feature_balance} = $defaults->feature_balance;
97
  $form->{feature_datev} = $defaults->feature_datev;
98
  $form->{feature_erfolgsrechnung} = $defaults->feature_erfolgsrechnung;
99
  $form->{feature_eurechnung} = $defaults->feature_eurechnung;
100
  $form->{feature_ustva} = $defaults->feature_ustva;
101

  
94 102
  AM->get_account(\%myconfig, \%$form);
95 103

  
96 104
  foreach my $item (split(/:/, $form->{link})) {
templates/webpages/am/edit_accounts.html
217 217
              <tr>
218 218
                <th align="left">[% 'Taxkey' | $T8 %]</th>
219 219
                <th align="left">[% 'valid from' | $T8 %]</th>
220
                <th align="left">[% 'pos_ustva' | $T8 %]</th>
220
                [% IF feature_ustva %]
221
                  <th align="left">[% 'pos_ustva' | $T8 %]</th>
222
                [% END %]
221 223
                <th align="left">[% 'delete' | $T8 %] ? </th>
222 224
              </tr>
223 225
[% FOREACH tk = ACCOUNT_TAXKEYS %]
......
227 229
                <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
228 230
                <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
229 231
                <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
230
                <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
232
                [% IF feature_ustva %]
233
                  <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
234
                [% END %]
231 235
                <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
232 236
                class="checkbox" value="delete"></td>
233 237
    [% ELSE %]
234 238
                <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
235 239
                <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
236 240
                <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
237
                <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
241
                [% IF feature_ustva %]
242
                  <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
243
                [% END %]
238 244
                <td>&nbsp;</td>
239 245
    [% END %]
240 246
              </tr>
......
247 253
<fieldset class="DEPENDS ON charttype BEING A">
248 254
  <legend>[% 'Report and misc. Preferences' | $T8 %]</legend>
249 255
  <table>
250
        <tr>
251
          <th align="left">[% 'EUER' | $T8 %]</th>
252
          <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
253
        </tr>
254
        <tr>
255
          <th align="left">[% 'Erfolgsrechnung' | $T8 %]</th>
256
          <td colspan="3"><select name="pos_er">[% select_er %]</select></td>
257
        </tr>
258
        <tr>
259
          <th align="left">[% 'BWA' | $T8 %]</th>
260
          <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
261
        </tr>
262
        <!-- Diese Steuerfunktion hat keine Auswirkung in der Bilanz und wird erstmal deaktiviert. -->
263
        <!-- tr>
264
          <th align="left">[% 'Bilanz' | $T8 %]</th>
265
          <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
266
        </tr -->
267
        <tr>
268
          <th align="left">[% 'Datevautomatik' | $T8 %]</th>
269
          <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>
270
        </tr>
256
        [% IF feature_erfolgsrechnung %]
257
          <tr>
258
            <th align="left">[% 'Erfolgsrechnung' | $T8 %]</th>
259
            <td colspan="3"><select name="pos_er">[% select_er %]</select></td>
260
          </tr>
261
        [% END %]
262
        [% IF feature_eurechnung %]
263
          <tr>
264
            <th align="left">[% 'EUER' | $T8 %]</th>
265
            <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
266
          </tr>
267
          <tr>
268
            <th align="left">[% 'BWA' | $T8 %]</th>
269
            <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
270
          </tr>
271
        [% END %]
272
        [% IF feature_balance %]
273
          <!-- Diese Steuerfunktion hat keine Auswirkung in der Bilanz und wird erstmal deaktiviert. -->
274
          <!-- tr>
275
            <th align="left">[% 'Bilanz' | $T8 %]</th>
276
            <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
277
          </tr -->
278
        [% END %]
279
        [% IF feature_datev %]
280
          <tr>
281
            <th align="left">[% 'Datevautomatik' | $T8 %]</th>
282
            <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>
283
          </tr>
284
        [% END %]
271 285
        <tr>
272 286
          <th align="left">[% 'Folgekonto' | $T8 %]</th>
273 287
          <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
templates/webpages/client_config/form.html
58 58
   <li><a href="#ranges_of_numbers">[% LxERP.t8('Ranges of numbers') %]</a></li>
59 59
   <li><a href="#default_accounts">[% LxERP.t8('Default Accounts') %]</a></li>
60 60
   <li><a href="#posting_configuration">[% LxERP.t8('Posting Configuration') %]</a></li>
61
   <li><a href="#datev_check_configuration">[% LxERP.t8('DATEV check configuration') %]</a></li>
61
   [% IF FORM.feature_datev %]
62
     <li><a href="#datev_check_configuration">[% LxERP.t8('DATEV check configuration') %]</a></li>
63
   [% END %]
62 64
   <li><a href="#orders_deleteable">[% LxERP.t8('Orders / Delivery Orders deleteable') %]</a></li>
63 65
   <li><a href="#warehouse">[% LxERP.t8('Warehouse') %]</a></li>
64 66
   <li><a href="#features">[% LxERP.t8('Features') %]</a></li>

Auch abrufbar als: Unified diff