CSI Counter Readings

Description

Categories
Enginatics, R12 only
Repository
GitHub
Counter and meter readings, one row per reading, with the item instance or maintainable asset and the service contract the counter belongs to.

Reading Change is the net reading minus the net reading of the counter's previous enabled reading, so it shows the usage since the last reading, also across resets and adjustments. It is blank for the first reading of a counter.

Work Order is the maintenance work order on whose completion the reading was recorded. Contract Number lists the contract of a counter attached to a contract line, or the contracts whose usage lines cover the counter.

SQL 85 lines

Parameters 9

ParameterTypeList of values SQL
Counter UsageLOV
msiv.eam_item_type in (1,3)
Reading Date FromDate
ccr.value_timestamp>=:reading_date_from
Reading Date ToDate
ccr.value_timestamp<:reading_date_to+1
Organization CodeLOV
mp.organization_code=:organization_code
ItemLOV
msiv.concatenated_segments=:item
Instance NumberChar
cii.instance_number=:instance_number
CounterLOV
ccv.name=:counter
Contract NumberChar
(okhab.contract_number=:contract_number or to_char(ccr.counter_id) in (select oki.object1_id1 from okc_k_items oki, okc_k_headers_all_b okhab2 where oki.jtot_object1_code='OKX_COUNTER' and oki.dnz_chr_id=okhab2.id and okhab2.contract_number=:contract_number))
Exclude DisabledLOV
nvl(ccr.disabled_flag,'N')='N'