Revision 1b691ca7
Von Kivitendo Admin vor fast 8 Jahren hinzugefügt
SL/Controller/TopQuickSearch/GLTransaction.pm | ||
---|---|---|
45 | 45 |
my $ars = SL::DB::Manager::Invoice->get_all( query => [ @arfilter ], limit => $limit, sort_by => 'transdate DESC', with_objects => [ 'customer' ]); |
46 | 46 |
my $aps = SL::DB::Manager::PurchaseInvoice->get_all(query => [ @apfilter ], limit => $limit, sort_by => 'transdate DESC', with_objects => [ 'vendor' ]); |
47 | 47 |
|
48 |
# use the sum of all credit amounts as the "amount" of the gl transaction |
|
49 |
foreach my $gl ( @$gls ) { |
|
50 |
$gl->{'amount'} = sum map { $_->amount if $_->amount > 0 } @{$gl->transactions}; |
|
51 |
}; |
|
52 |
|
|
53 | 48 |
my $gldata = [ |
54 | 49 |
map( |
55 | 50 |
{ |
Auch abrufbar als: Unified diff
FiBu Schnellsuche - GL Habensumme entfernt, ist schon in oneline_summary