AP Expense Policy Violations

Description

Categories
Enginatics
Repository
GitHub
Expense report policy violations showing violation type, allowable amount, exceeded amount and expense line details for each violation. Based on Oracle iExpense policy enforcement.

SQL 62 lines

Parameters 8

ParameterTypeList of values SQL
LedgerLOV
gl.name=:ledger and
hou.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type='OU')
Operating UnitLOV
hou.name=:operating_unit
EmployeeLOV
ppx.full_name=:employee
Expense StatusLOV
aerha.expense_status_code=xxen_util.lookup_code(:expense_status,'EXPENSE REPORT STATUS',200)
Violation TypeLOV
apva.violation_type=xxen_util.lookup_code(:violation_type,'OIE_POL_VIOLATION_TYPES',200)
Expense Date FromDate
trunc(aerha.week_end_date)>=:expense_date_from
Expense Date ToDate
trunc(aerha.week_end_date)<=:expense_date_to
Expense CategoryLOV
aerla.category_code=:expense_category