Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a1706448

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID a1706448cfa94e9bb45c0d58663ebfc6584a2773
  • Vorgänger f4d29b45
  • Nachfolger 47713b33

Form: setze 'transdate' nicht in der From beim Verknüpfen mit Steuer

Unterschiede anzeigen:

SL/Form.pm
2613 2613
    # get date
2614 2614
    $query =
2615 2615
       qq|SELECT
2616
            current_date AS transdate, d.closedto, d.revtrans,
2616
            d.closedto, d.revtrans,
2617 2617
            (SELECT cu.name FROM currencies cu WHERE cu.id=d.currency_id) AS defaultcurrency,
2618 2618
            (SELECT c.accno FROM chart c WHERE d.fxgain_accno_id = c.id) AS fxgain_accno,
2619 2619
            (SELECT c.accno FROM chart c WHERE d.fxloss_accno_id = c.id) AS fxloss_accno,
......
2627 2627
    $self->lastname_used($dbh, $myconfig, $table, $module) unless ($self->{"$self->{vc}_id"});
2628 2628
    $self->{currency} = $self->{defaultcurrency}           unless $self->{currency};
2629 2629
    $self->{exchangerate} =
2630
      $self->check_exchangerate($myconfig, $self->{currency}, $self->{transdate}, $fld);
2630
      $self->check_exchangerate($myconfig, $self->{currency}, $self->current_date(), $fld);
2631 2631
  }
2632 2632

  
2633 2633
  $main::lxdebug->leave_sub();
bin/mozilla/ap.pl
256 256
  $form->{callback} = "ap.pl?action=add" unless $form->{callback};
257 257

  
258 258
  AP->get_transdate(\%myconfig, $form);
259
  $form->{initial_transdate} = $form->{transdate};
260 259
  create_links(dont_save => 1);
261
  $form->{transdate} = $form->{initial_transdate};
262 260

  
263 261
  if ($form->{vendor_id}) {
264 262
    my $vendor = SL::DB::Vendor->load_cached($form->{vendor_id});
......
422 420
  $form->{creditremaining_plus} = ($form->{creditremaining} =~ /-/) ? "0" : "1";
423 421

  
424 422
  $form->get_lists("charts"    => { "key"       => "ALL_CHARTS",
425
                                    "transdate" => $form->{transdate} },
423
                                    "transdate" => $form->{transdate} || $form->current_date, },
426 424
                  );
427 425

  
428 426
  map(
bin/mozilla/ar.pl
262 262
  $form->{callback} = "ar.pl?action=add" unless $form->{callback};
263 263

  
264 264
  AR->get_transdate(\%myconfig, $form);
265
  $form->{initial_transdate} = $form->{transdate};
266 265
  create_links(dont_save => 1);
267
  $form->{transdate} = $form->{initial_transdate};
268 266

  
269 267
  if ($form->{customer_id}) {
270 268
    my $last_used_ar_chart = SL::DB::Customer->load_cached($form->{customer_id})->last_used_ar_chart;

Auch abrufbar als: Unified diff