Revision ee30d4e8
Von Jan Büren vor fast 11 Jahren hinzugefügt
SL/RP.pm | ||
---|---|---|
1 |
#=====================================================================
|
|
1 |
===================================================================== |
|
2 | 2 |
# LX-Office ERP |
3 | 3 |
# Copyright (C) 2004 |
4 | 4 |
# Based on SQL-Ledger Version 2.1.9 |
... | ... | |
91 | 91 |
}; |
92 | 92 |
|
93 | 93 |
my ($query, $startdate, $last_ob, $mindate); |
94 |
$query = qq|select max(transdate) from acc_trans where ob_transaction is true and transdate <= ?|;
|
|
94 |
$query = qq|select max(transdate) from acc_trans where ob_transaction is true and transdate <= ?|; |
|
95 | 95 |
($last_ob) = selectrow_query($::form, $dbh, $query, $::locale->format_date(\%::myconfig, $asofdate)); |
96 | 96 |
$last_ob = $::locale->parse_date_to_object(\%::myconfig, $last_ob) if $last_ob; |
97 |
|
|
98 |
$query = qq|select min(transdate) from acc_trans|;
|
|
97 |
|
|
98 |
$query = qq|select min(transdate) from acc_trans|; |
|
99 | 99 |
($mindate) = selectrow_query($::form, $dbh, $query); |
100 | 100 |
$mindate = $::locale->parse_date_to_object(\%::myconfig, $mindate); |
101 | 101 |
|
... | ... | |
132 | 132 |
|
133 | 133 |
return $::locale->format_date(\%::myconfig, $mindate); |
134 | 134 |
}; |
135 |
|
|
136 |
};
|
|
135 |
|
|
136 |
}; |
|
137 | 137 |
|
138 | 138 |
sub balance_sheet { |
139 | 139 |
$main::lxdebug->enter_sub(); |
... | ... | |
150 | 150 |
$form->{period} = $form->{this_period} = conv_dateq($form->{asofdate}); |
151 | 151 |
} |
152 | 152 |
|
153 |
# get starting date for calculating balance
|
|
153 |
# get starting date for calculating balance |
|
154 | 154 |
$form->{this_startdate} = get_balance_starting_date($form->{asofdate}); |
155 | 155 |
|
156 | 156 |
get_accounts($dbh, $last_period, $form->{this_startdate}, $form->{asofdate}, $form, \@categories); |
Auch abrufbar als: Unified diff
remove whitespace RP.pm