Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8610cf40

Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt

  • ID 8610cf401997e83c6ab4124988408a5ab0ead2fa
  • Vorgänger d79dde5a
  • Nachfolger 263971ba

Projektbericht - Datumsfelder besser prüfen

Unterschiede anzeigen:

bin/mozilla/rp.pl
468 468
  my $project            = $form->{project_id} ? SL::DB::Project->new(id => $form->{project_id})->load : undef;
469 469
  $form->{projectnumber} = $project ? $project->projectnumber : '';
470 470

  
471
  # make sure todate and fromdate always have a value, even if the date fields
472
  # were left empty or the inputs weren't valid dates/couldn't be parsed
473

  
474
  $project = SL::DB::Project->new() unless $project;  # dummy object for dbh
475
  unless ($::locale->parse_date_to_object($::form->{fromdate})) {
476
    ($form->{fromdate}) = $project->db->dbh->selectrow_array('select min(transdate) from acc_trans');
477
  };
478

  
479
  unless ($::locale->parse_date_to_object($::form->{todate})) {
480
    ($form->{todate})   = $project->db->dbh->selectrow_array('select max(transdate) from acc_trans');
481
  };
482

  
471 483
  $form->{nextsub} = "generate_projects";
472 484
  $form->{title}   = $locale->text('Project Transactions');
473 485
  RP->trial_balance(\%myconfig, \%$form);

Auch abrufbar als: Unified diff