CAC Intercompany SO Shipping Transaction vs. Invoice Price

Description

Categories
Enginatics
Repository
GitHub
Report to compare the transaction item cost from the selling internal org to the invoice sales price the selling internal organization is charging the internal receiving organization.

/* +=============================================================================+
-- | Copyright 2017 - 2022 Douglas Volz Consulting, Inc. |
-- | All rights reserved. |
-- | Permission to use this code is granted provided the original author is |
-- | acknowledged. No warranties, express or otherwise is included in this |
-- | permission. |
-- +=============================================================================+
-- |
-- | Original Author: Douglas Volz ([email protected])
-- |
-- | Program Name: xxx_verify_so_price_vs_cost_txn.sql
-- |
-- | Parameters:
-- | p_trx_date_from -- starting shipping transaction date, mandatory
-- | p_trx_date_to -- ending shipping transaction date, mandatory
-- |
-- | Description:
-- | Report to compare the transaction item cost from the selling internal org
-- | to the invoice sales price the selling internal organization is charging the
-- | receiving organization.
-- |
-- | Version Modified on Modified by Description
-- | ======= =========== ============== =========================================
-- | 1.0 01 May 2017 Douglas Volz Initial Coding
-- | 1.1 03 Sep 2019 Douglas Volz Add Ledger, Operating Unit, Item Type, Status
-- | and item categories for cost and inventory.
-- | 1.2 27 Jan 2020 Douglas Volz Added Ledger, Operating Unit and Org Code
-- | parameters.
-- | 1.3 09 Jul 2022 Douglas Volz Changes for multi-language lookup values.
-- | 1.4 23 Oct 2026 Andy Haack Rebuilt to the Blitz Report SQL standards.
-- +=============================================================================+*/

SQL 86 lines

Parameters 6

ParameterTypeList of values SQL
Transaction Date FromDate
mmt.transaction_date>=:p_trx_date_from
Transaction Date ToDate
mmt.transaction_date<:p_trx_date_to+1
Category Set 1LOV
select xxen_util.item_category_columns(p_category_set_name=>'<parameter_value>',p_table_alias=>'x') sql_text from dual
Category Set 2LOV
select xxen_util.item_category_columns(p_category_set_name=>'<parameter_value>',p_table_alias=>'x') sql_text from dual
Category Set 3LOV
select xxen_util.item_category_columns(p_category_set_name=>'<parameter_value>',p_table_alias=>'x') sql_text from dual
LedgerLOV
gl.name=:p_ledger