Skip to content

Commit

Permalink
Finance: fix bulk exporting invoice fees for Pending invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed Jun 30, 2024
1 parent ae03c82 commit de5cd2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ v28.0.00
User Admin: added the names of users who made changes to the User Status Log

Bug Fixes
Finance: fixed bulk exporting invoice fees for Pending invoices
Form Groups: fixed Year Group Summary list when looking at non-current school years
Timetable: fixed permission checking before displaying user status info in View Timetables list

Expand Down
4 changes: 2 additions & 2 deletions modules/Finance/invoices_manage_processBulkExportContents.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@
$fees = [];
$dataTotal=array("gibbonFinanceInvoiceID"=>$row["gibbonFinanceInvoiceID"]);
if ($row["status"]=="Pending") {
$sqlTotal="SELECT gibbonFinanceInvoiceFee.fee AS fee, gibbonFinanceFee.fee AS fee2, gibbonFinanceInvoiceFee.name, gibbonFinanceFeeCategory.name as category
$sqlTotal="SELECT gibbonFinanceInvoiceFee.fee AS fee, gibbonFinanceFee.fee AS fee2, gibbonFinanceFee.name, gibbonFinanceFeeCategory.name as category
FROM gibbonFinanceInvoiceFee
LEFT JOIN gibbonFinanceFee ON (gibbonFinanceInvoiceFee.gibbonFinanceFeeID=gibbonFinanceFee.gibbonFinanceFeeID)
LEFT JOIN gibbonFinanceFeeCategory ON (gibbonFinanceFeeCategory.gibbonFinanceFeeCategoryID=gibbonFinanceInvoiceFee.gibbonFinanceFeeCategoryID)
LEFT JOIN gibbonFinanceFeeCategory ON (gibbonFinanceFeeCategory.gibbonFinanceFeeCategoryID=gibbonFinanceFee.gibbonFinanceFeeCategoryID)
WHERE gibbonFinanceInvoiceID=:gibbonFinanceInvoiceID" ;
}
else {
Expand Down

0 comments on commit de5cd2f

Please sign in to comment.