INL Landed Cost Estimated vs Actual

Description

Categories
Enginatics, R12 only
Repository
GitHub
Landed cost per Landed Cost Management shipment line and cost component (item price, each charge type and each tax), comparing the estimate with the current landed cost.

Estimated Amount is the allocation of the shipment's first landed cost calculation (adjustment 0) and Current Amount the allocation of its latest adjustment, both in functional currency. A component without a matched AP invoice still carries its estimate; an estimate changed in the Shipment Workbench after submission shows as a variance without a match.

LCM allocates a charge to the shipment lines by the charge type's allocation basis, so Current Amount per line can differ from Matched Amount, which is the amount distributed to that receipt line on the AP invoice. The shipment totals agree.

SQL 157 lines

Parameters 11

ParameterTypeList of values SQL
Operating UnitLOV
ish.org_id in (select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:operating_unit)
Organization CodeLOV
ish.organization_id in (select mp.organization_id from mtl_parameters mp where mp.organization_code=:organization_code)
Shipment Date FromDate
ish.ship_date>=:shipment_date_from
Shipment Date ToDate
ish.ship_date<:shipment_date_to+1
Shipment NumberLOV
ish.ship_num=:shipment_number
SupplierLOV
isl.ship_line_group_id in (select islg.ship_line_group_id from inl_ship_line_groups islg, ap_suppliers aps where islg.party_id=aps.party_id and aps.vendor_name=:supplier)
ItemLOV
isl.inventory_item_id in (select msiv.inventory_item_id from mtl_system_items_vl msiv where ish.organization_id=msiv.organization_id and msiv.concatenated_segments=:item)
Component TypeLOV
x.component_type=:component_type
Charge TypeLOV
pcfv.name=:charge_type
Charging PartyLOV
hp.party_name=:charging_party
Variances OnlyLOV
round(x.current_amt,2)<>round(x.estimated_amt,2)