Lines 76-82
WHERE
Link Here
|
76 |
(quantity > quantityreceived OR quantityreceived IS NULL) |
76 |
(quantity > quantityreceived OR quantityreceived IS NULL) |
77 |
GROUP BY aqorders.biblionumber, aqorders.basketno, aqorders.ordernumber, |
77 |
GROUP BY aqorders.biblionumber, aqorders.basketno, aqorders.ordernumber, |
78 |
tleft, |
78 |
tleft, |
79 |
ecost, budgetdate, entrydate, |
79 |
ecost_tax_included, budgetdate, entrydate, |
80 |
aqbasket.booksellerid, |
80 |
aqbasket.booksellerid, |
81 |
aqbooksellers.name, |
81 |
aqbooksellers.name, |
82 |
itype, |
82 |
itype, |
Lines 106-112
while ( my $data = $sth->fetchrow_hashref ) {
Link Here
|
106 |
} |
106 |
} |
107 |
} |
107 |
} |
108 |
|
108 |
|
109 |
my $adjustments = Koha::Acquisition::Invoice::Adjustments->search({budget_id => $fund_id, closedate => undef, encumber_open => 1 }, { join => 'invoiceid' } ); |
109 |
my $adjustments = Koha::Acquisition::Invoice::Adjustments->search({budget_id => $fund_id, closedate => undef, encumber_open => 1 }, { prefetch => 'invoiceid' } ); |
110 |
while ( my $adj = $adjustments->next ){ |
110 |
while ( my $adj = $adjustments->next ){ |
111 |
$total += $adj->adjustment; |
111 |
$total += $adj->adjustment; |
112 |
} |
112 |
} |