Revision 8610cf40
Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt
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
Projektbericht - Datumsfelder besser prüfen