Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5be8f312

Von Jan Büren vor fast 11 Jahren hinzugefügt

Standard-Umlaufvermögen-Konto auch für Debitoren- und Kreditorenbuchung vorbelegen

closes #2385

Unterschiede anzeigen:

bin/mozilla/ap.pl
375 375
  if ( $form->{'paid_'. $form->{paidaccounts}} ) {
376 376
    $form->{paidaccounts}++;
377 377
  }
378

  
379
  # default account for current assets (i.e. 1801 - SKR04)
380
  $form->{accno_arap} = IS->get_standard_accno_current_assets(\%myconfig, \%$form);
381

  
378 382
  for my $i (1 .. $form->{paidaccounts}) {
379 383
    $form->{totalpaid} += $form->{"paid_$i"};
380 384

  
bin/mozilla/ar.pl
409 409
      gldate           => $form->{"gldate_$i"},
410 410
    };
411 411

  
412
  # default account for current assets (i.e. 1801 - SKR04)
413
  $form->{accno_arap} = IS->get_standard_accno_current_assets(\%myconfig, \%$form);
414

  
412 415
    $payment->{selectAR_paid} =
413 416
      NTI($cgi->popup_menu('-name' => "AR_paid_$i",
414 417
                           '-id' => "AR_paid_$i",
415 418
                           '-values' => \@AR_paid_values,
416 419
                           '-labels' => \%chart_labels,
417
                           '-default' => $payment->{AR_paid}));
420
                           '-default' => $form->{accno_arap}));
418 421

  
419 422

  
420 423

  
templates/webpages/ap/form_header.html
285 285
                [% L.date_tag(temp, $temp) %]
286 286
              [% ELSE %]
287 287
                [% $temp | html %]
288
                <input type="hidden" name="[% temp %]" value="[% $temp | html %]">|;
288
                <input type="hidden" name="[% temp %]" value="[% $temp | html %]">
289 289
              [% END %]
290 290
            </td>
291 291

  
......
338 338
            [% temp = "AP_paid_"_ i %]
339 339
            <td align="center">
340 340
              [% IF( changeable ) %]
341
                [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = $temp) %]
341
                [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = accno_arap)  %]
342 342
              [% ELSE %]
343 343
                [% $temp | html %]
344 344
                <input type="hidden" name="[% temp %]" value="[% $temp | html %]">

Auch abrufbar als: Unified diff