INL Duty and Tariff Analysis

Description

Categories
Enginatics, R12 only
Repository
GitHub
Duty, other charges and taxes per landed cost shipment line, with tariff code, country of origin and supplier, to analyse duty rates and the landed cost uplift on the item value.

The charge types counted as duty are selected in the Duty Charge Type parameter, all other charges are Other Charges. Amounts are the current landed cost allocations in functional currency, Duty Estimated the first calculation. LCM allocates a charge to the shipment lines by the charge type's allocation basis, so an actual duty invoice matched to the shipment is spread over its lines, and the duty rate per line reflects that allocation rather than the customs entry line.

Oracle has no standard HTS field: the tariff code is the item's category in the Tariff Code Category Set, an item category set holding the HTS codes.

SQL 151 lines

Parameters 10

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
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)
Country of OriginLOV
nvl(rsl.country_of_origin_code,plla.country_of_origin_code) in (select ftv.territory_code from fnd_territories_vl ftv where ftv.territory_short_name=:country_of_origin)
Duty Charge TypeLOV
x.charge_type=:duty_charge_type
Tariff Code Category SetLOV
Tariff CodeLOV
y.tariff_code=:tariff_code