/
SQL code behind Canned Project Budget Report

SQL code behind Canned Project Budget Report

Description of Issue

Client wants the sql code behind the Project Budget Report for a custom report

Context
  • All versions of Enterprise ERP

  • SaaS, Tyler-hosted clients

  • OnPrem, Self-hosted clients

  • Project Budget

Cause

The code to report is derived

Resolution

The following will is the query behind the report:

SELECT
 a_project
, mt_seg2
, mt_seg3
 , mt_seg4
 , SUM(mt_original_bud)   as Original
 , SUM(mt_transfer_in) + SUM(mt_transfer_out) as NetBudget
 , SUM(mt_original_bud) +  SUM(mt_transfer_in) + SUM(mt_transfer_out) as Revised
 , SUM(mt_actual_amount) + SUM(mt_unpaid_amount) as Actuals
 , SUM(mt_unpaid_amount)
 , SUM(mt_encumb) as Encumbrances 
 , SUM(mt_req_amount) as Requisitions 
 , (SUM(mt_original_bud) +  SUM(mt_transfer_in) + SUM(mt_transfer_out)) - (SUM(mt_actual_amount) + SUM(mt_unpaid_amount)) -  SUM(mt_encumb)-SUM(mt_req_amount) as Available
FROM pa_monthly_amounts 
WHERE
mt_start_date >= @DTStart
AND mt_end_date <=@DTEnd
GROUP BY a_project , mt_seg2 , mt_seg3  , mt_seg4

Additional Information










Related content

Database view containing budget information from the Project Budget Report
Database view containing budget information from the Project Budget Report
More like this
Database view that stores budget amounts for Multi-Year Life-to-Date accounts
Database view that stores budget amounts for Multi-Year Life-to-Date accounts
More like this
Database view containing total amount taken in garnishments for an employee
Database view containing total amount taken in garnishments for an employee
More like this
Calculating Available FTE per position for custom report
Calculating Available FTE per position for custom report
More like this
SSRS Reporting views that can be used for Project Ledger amounts
SSRS Reporting views that can be used for Project Ledger amounts
More like this
List of GL accounts and their associated Rollup Code
List of GL accounts and their associated Rollup Code
More like this