B101

Entity TB Validation
Input 1 workflow

Properties source
Sources: prospetto

Code
B101
Description
Entity TB Validation
Web opening
NV
Type flags
Input
Groups
B1 Legal Entity Close

Structure source
Sources: prospetto_xml

Form parameters
3
Dimension Hierarchy Parameter
PERIODO
Period
$PER_P
AZIENDA
Entity;fr=Entité
010
All Entities
03
Choose an Entity
SCENARIO
Scenario
$
Scenarios
SCE_ACT
Scenario for Actuals
Form filters
4 dims
TIP 1
Hierarchy / FST Item Type TGKML
TIP_O fixed
PERIODOPeriod 1
$PER_P
AZIENDAEntity;fr=Entité 1
Hierarchy / FST Item Type TGKML
010 All Entities 03 param
CATEGORIACategory 1
Hierarchy / FST Item Type TGKML
010 Original Data fixed
Income Statement
Template00 · 1 matrix
Income Statement CPM
Rows
CONTOAccount;fr=Compte 22
Hierarchy / FST Item Type TGKML
010 Income Statement - Management View 010 Sales Revenue fixed
010 Income Statement - Management View 015 Discounts & Promotions fixed
010 Income Statement - Management View 020 TOTAL NET SALES fixed
010 Income Statement - Management View 025 Cost of Goods Sold fixed
010 Income Statement - Management View 030 GROSS MARGIN fixed
010 Income Statement - Management View 035 Wages & Salary fixed
010 Income Statement - Management View 040 Payroll Taxes fixed
010 Income Statement - Management View 045 EE Benefits fixed
010 Income Statement - Management View 050 TOTAL EE EXPENSES fixed
010 Income Statement - Management View 055 General & Administrative Expenses fixed
010 Income Statement - Management View 060 Marketing Expenses fixed
010 Income Statement - Management View 065 Travel Expenses fixed
010 Income Statement - Management View 070 Training & Staffing fixed
010 Income Statement - Management View 075 External Services fixed
010 Income Statement - Management View 080 Depreciation & Amortization fixed
010 Income Statement - Management View 085 TOTAL OVERHEAD EXPENSES fixed
010 Income Statement - Management View 090 TOTAL OPERATING EXPENSES fixed
010 Income Statement - Management View 095 OPERATING INCOME fixed
010 Income Statement - Management View 100 Other Expense/Income fixed
010 Income Statement - Management View 105 EARNINGS BEFORE TAXES fixed
010 Income Statement - Management View 110 Income Taxes fixed
010 Income Statement - Management View 115 NET INCOME/LOSS fixed
Cols
SCENARIOScenario 1
Hierarchy / FST Item Type TGKML
$ Scenarios SCE_ACT param
Balance Sheet
Template01 · 1 matrix
Balance Sheet CPM
Rows
CONTOAccount;fr=Compte 1
Hierarchy / FST Item Type TGKML
020 fixed
Cols
SCENARIOScenario 1
Hierarchy / FST Item Type TGKML
$ Scenarios SCE_ACT param

Queries 1 source
Sources: prospetto_xml

Transactional Details
SQL Query00
SELECT "Local_GL_Account",
   "Local_GL_Description",
   "Master_Account",
  "Invoice_Number",
   "Invoice_Date",
   "Customer/Supplier",
   amount
FROM  (
       SELECT campo1 AS "Year",
          campo14 AS "Scenario",
          campo2 AS "Month",
          campo3 AS "Entity",
          campo4 AS "Local_GL_Account",
          campo15 AS "Master_Account",
          campo5 AS "Local_GL_Description",
          campo6 AS "Cost_Center",
          campo7 AS "Product",
          campo11 AS "Customer/Supplier",
          campo9 AS "Invoice_Number",
  				CASE WHEN LENGTH(campo10) > 0 THEN       
  					TO_CHAR(TO_DATE('01011900','MMDDYYYY')+TO_NUMBER(campo10,'99999')*INTERVAL '1 Day', 'MM/DD/YYYY')
  				ELSE ''
  				END AS "Invoice_Date",
          campo11 AS "Supplier",
          CAST (REPLACE(campo12,',','.') AS NUMERIC(20,2)) AS amount
       FROM  map_dati_trasformati
       WHERE cod_mappatura='05'
       AND  cod_import='010'
       AND  campo1='2018'
       AND  campo2='12'
       AND  campo3=${$Entity.code} 
       AND  campo6='CC_500'
       AND  campo7='PD_500'
       AND  campo8='CM_500'
       AND  campo15=${$Account.code}
       AND  campo14= ${$Scenario.code} 
) a
UNION ALL
SELECT 'Total',
   '',
   '',
   '',
   '',
   '',
   SUM(amount) AS amount
FROM  (
       SELECT CAST (REPLACE(campo12,',','.') AS NUMERIC(20,2)) AS amount
       FROM  map_dati_trasformati
       WHERE cod_mappatura='05'
       AND  cod_import='010'
       AND  campo1='2018'
       AND  campo2='12'
       AND  campo3=${$Entity.code} 
       AND  campo6='CC_500'
       AND  campo7='PD_500'
     AND  campo8='CM_500'
     AND  campo15=${$Account.code}
       AND  campo14= ${$Scenario.code} 
) a

Used in Workflows 1 source
Sources: RACCOLTA_AZIENDA_WFM, WFM task list

Workflow Phase Task list Task description
ACT Close & Consolidation Workflow 001 Trial Balance 01 Trial Balance Run TB Report