OZF Budget Utilization

Description

Categories
Enginatics, R12 only
Repository
GitHub
Trade Management budget utilization lines, as the utilized, earned and paid checkbooks of a budget: offer accruals, accrual adjustments, off-invoice discounts, chargebacks and referral accruals, with the customer, product and order or transaction they come from.

Utilized, Earned, Paid and Unpaid are in the budget currency. Earned excludes lines that are not posted to GL. Paid is the amount settled by closed claims, or for an off-invoice discount the discount itself, and Unpaid is earned less paid. The accounted columns show the same in the ledger currency, with Paid at the exchange rate of the accrual.

The totals by budget agree with the Utilized, Earned and Paid amounts of OZF Budgets. The template Pivot: by Customer lists the earned, paid and unpaid amounts by customer and offer, as the promotional payments view.

SQL 79 lines

Parameters 7

ParameterTypeList of values SQL
Operating UnitLOV
fuab.org_id in (select hou.organization_id from hr_operating_units hou where hou.name=:operating_unit)
GL Date FromDate
fuab.gl_date>=:gl_date_from
GL Date ToDate
fuab.gl_date<:gl_date_to+1
Budget NameLOV
fav.short_name=:budget_name
Offer CodeLOV
oo.offer_code=:offer_code
CustomerLOV
hp.party_name=:customer_name
Utilization TypeLOV
fuab.utilization_type=xxen_util.lookup_code(:utilization_type,'OZF_UTILIZATION_TYPE',682)