Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 49

/*CAPTION:Allocate Plan Targets*/

/*STARTCOMPONENT:SCRIPT*/

SET CREATEBLOCKONEQ ON;

SET AGGMISSG ON;

FIX ("Plan","Target",@CHILDREN("403"))

FIX("4110")

"P_000" = @ROUND( ("TD"->"4001"->"P_TP"->{TargetVersion}) *(@MDSHIFT("4001"-


>"Product"->"Actual"->"Working",-2,"Year",))/ (@MDSHIFT("TD"->"4001"->"Product"->"Actual"-
>"Working",-2,"Year",)),2);

ENDFIX

FIX("5110")

"P_000" = @ROUND(("TD"->"P_TP"->{TargetVersion}) *(@MDSHIFT("Product"->"Actual"-


>"Working",-2,"Year",))/ (@MDSHIFT("TD"->"Product"->"Actual"->"Working",-2,"Year",)),2);

ENDFIX

ENDFIX

FIX ("Plan","Target","7110")

FIX(@DESCENDANTS("TD") AND @LEVMBRS("Entity",0))

"P_000" = @ROUND( ("TD"->"OpEx"->"P_TP"->{TargetVersion}) *(@MDSHIFT("OpEx"-


>"Product"->"Actual"->"Working",-2,"Year",))/ (@MDSHIFT("TD"->"OpEx"->"Product"->"Actual"-
>"Working",-2,"Year",)),2);

ENDFIX

ENDFIX

FIX (@IDESCENDANTS("BS"),"Plan")

DATACOPY {TargetVersion} to "Target";

ENDFIX
FIX ("Plan","Target")

CALC DIM ("Account","Period","Entity","Product");

ENDFIX

/*ENDCOMPONENT*/

BALANCE SHEET FORECAST

/*CAPTION:SET commands*/

/*STARTCOMPONENT:SCRIPT*/

SET UPDATECALC OFF ;

SET AGGMISSG ON;

/*SET CREATENONMISSINGBLK ON ;*/

/*ENDCOMPONENT*/

%Template(name:="Copy Data",caption:="Copy Actual to Current


Fcst",application:="",plantype:="",dtps:=("Restriction":=([[Account.@IDESCENDANTS("BS")]],[[Period."Ja
n":&ThisMonth]],[[Year.&CurYr]]),"Source":=[[Scenario."Actual"->Version.&ActVersion->Entity."TD"-
>Product."P_TP"]],"Destination":=[[Scenario.&CurForecast->Version.&CurVersion->Entity."000"-
>Product."P_000"]],"Datacondition":=[[]],"Debug":=[[Debug wizard
OFF]],"Applycalc":=[[]],"ApplycalcMB":=[[]],"Clearfirst":=[[]],"Createblock":=[[Yes]],"Setblockoneq":=[[]],
"SingleDim":=[[]]))

FIX (/*DIM:Scenario*/&CurForecast,/*DIM:Version*/&CurVersion)

LOOP (2)

/*CAPTION:Aggregate*/

/*STARTCOMPONENT:SCRIPT*/

@IDESCENDANTS("BS");

FIX (@IDESCENDANTS("BS"))

CALC DIM ("Period","Entity","Product");

ENDFIX

/*ENDCOMPONENT*/

FIX ( /*DIM:Entity*/"000")

"P_000"(
IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1) AND @ISMBR(&CurYr)) OR (@ISMBR(&QRFYr2)
AND @ISDESC(&QRFPer2) AND @ISMBR(&CurYr)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)
AND @ISMBR(&CurYr)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4) AND @ISMBR(&CurYr)))

%Template(name:="Balance Sheet Opening Balance Template",caption:="CY Balance Sheet


Opening
Bal",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"ScenarioDim
":=[[Scenario]],"VersionDim":=[[Version]],"AccountDim":=[[Account]],"BegBalancePeriod":=[["No
Period"]],"LastPeriod":=[["Dec"]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"BalShtParent":=[["BS"]],"RetEarn":=[["3310"]],"Scenario":=[["Actual"]],"Version":
=[[&ActVersion]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

ENDIF

"P_000"(

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1) AND @ISMBR(&NextYear)) OR


(@ISMBR(&QRFYr2) AND @ISDESC(&QRFPer2) AND @ISMBR(&NextYear)) OR (@ISMBR(&QRFYr3) AND
@ISDESC(&QRFPer3) AND @ISMBR(&NextYear)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4) AND
@ISMBR(&NextYear)))

%Template(name:="Balance Sheet Opening Balance Template",caption:="NY Balance Sheet


Opening
Bal",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"ScenarioDim
":=[[Scenario]],"VersionDim":=[[Version]],"AccountDim":=[[Account]],"BegBalancePeriod":=[["No
Period"]],"LastPeriod":=[["Dec"]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"BalShtParent":=[["BS"]],"RetEarn":=[["3310"]],"Scenario":=[["Forecast"]],"Version
":=[[&CurVersion]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

ENDIF

"P_000"(

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND
@ISDESC(&QRFPer4)))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accounts


Receivable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1210"]],"SrcAcct":=[["4110"]],"DriverAcct":=[["DSO"]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":
=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Bad


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"AccountDim
":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["7730"]],"SrcAcct":=
[["1210"]],"DriverAcct":=[[]],"PctAcct":=[["BadDebtPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombina
tion":=[[]],"DriverCombination":=[[]],"PctCombination":=[[Entity."000"-
>Product."P_000"]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Allowance for Bad


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance - Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1260"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[["7730"]],"Nam
eCombination":=[[Entity."000"-
>Product."P_000"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts


Template",caption:="Inventory",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":
=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1410"]],"SrcAcct":=[["5000"]],"DriverAcct":=[["DaysInv"]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAc
ct":=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Prepaid


Expenses",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"Account
Dim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["1340"]],"SrcAc
ct":=[["7001"]],"DriverAcct":=[[]],"PctAcct":=[["PrepaidPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCom
bination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Land",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance + Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1510"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Land"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"Bal
anceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Buildings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1520"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Building and
Improvements"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination"
:=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Machinery and


Equipment",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1530"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Machinery &
Equipment"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]
],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Furniture and


Fixtures",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1540"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Furniture"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],
"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Vehicles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1550"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Vehicles"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"
BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Computers",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1560"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Computers &
Software"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],
"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Asset


Clearing",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1570"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


CIP",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1580"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Intangibles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1565"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Intangible
Assets"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"B
alanceCombination":=[[]]))
%Template(name:="Accum Deprec Template",caption:="A/D Existing
Assets",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"AccountD
im":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Entity.
"Entity"->Product."Product"]],"AccumDepr":=[["1610"]],"Depreciation":=[["7310"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Buildings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Accoun
tDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Entit
y."Entity"->Product."Product"]],"AccumDepr":=[["1620"]],"Depreciation":=[["7320"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Machinery",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acco
untDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[E
ntity."Entity"->Product."Product"]],"AccumDepr":=[["1630"]],"Depreciation":=[["7330"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Furniture",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Accou
ntDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Ent
ity."Entity"->Product."Product"]],"AccumDepr":=[["1640"]],"Depreciation":=[["7340"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Vehicles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Account
Dim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Entit
y."Entity"->Product."Product"]],"AccumDepr":=[["1650"]],"Depreciation":=[["7350"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Computers",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acco
untDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[E
ntity."Entity"->Product."Product"]],"AccumDepr":=[["1660"]],"Depreciation":=[["7360"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Intangibles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acco
untDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[E
ntity."Entity"->Product."Product"]],"AccumDepr":=[["1665"]],"Depreciation":=[["7365"]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Long Term


Receivables",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1720"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Intercompany


Receivable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1810"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))
%Template(name:="Derive Balance Sheet Accounts Template",caption:="Investment in
Subsidiaries",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1820"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accounts


Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["2210"]],"SrcAcct":=[["5000"]],"DriverAcct":=[["DPO"]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":
=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accrued


Expenses",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"Account
Dim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["2225"]],"SrcAc
ct":=[["6000"]],"DriverAcct":=[[]],"PctAcct":=[["AccrPRPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"NameComb
ination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Intercompany


Payables",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["2370"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["ICPayIncr"]],"SubAcct":=[[]],"
NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Interest


Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["2530"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Income Taxes


Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["2300"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Long Term


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance + Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["2600"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["LTDebtIncr"]],"SubAcct":=[[]],
"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]])
)
%Template(name:="Derive Balance Sheet Accounts Template",caption:="Common
Stock",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["3100"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Paid In


Capital",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["3200"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Retained Earnings Template",caption:="Retained


Earnings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Accoun
tDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Entit
y."Entity"-
>Product."Product"]],"RetEarn":=[["3310"]],"NetInc":=[["NI"]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

/*CAPTION:Clear Cash*/

/*STARTCOMPONENT:SCRIPT*/

"1110" = #missing;

/*ENDCOMPONENT*/

ENDIF

FIX ( /*DIM:Product*/"P_000")

/*CAPTION:Plug Cash*/

/*STARTCOMPONENT:SCRIPT*/

@IDESCENDANTS("BS");

"1110" (

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND
@ISDESC(&QRFPer4)))

IF (@ISUDA("Account","Asset"))
"1110" = "TLOE" - "1001";

ELSE

"1110" = "1001" - "TLOE";

ENDIF

ENDIF

/*ENDCOMPONENT*/

ENDFIX

ENDFIX

/*CAPTION:Aggregate*/

/*STARTCOMPONENT:SCRIPT*/

@IDESCENDANTS("BS");

FIX (@IDESCENDANTS("BS"))

CALC DIM ("Period","Entity","Product");

ENDFIX

/*ENDCOMPONENT*/

ENDLOOP

ENDFIX

BALANCE SHEET PLAN

/*CAPTION:Settings*/

/*STARTCOMPONENT:SCRIPT*/

SET AGGMISSG ON;


SET UPDATECALC OFF;

/*ENDCOMPONENT*/

FIX (/*DIM:Scenario*/"Plan","Revised Plan",/*DIM:Version*/&CurVersion)

LOOP (2)

/*CAPTION:Aggregate*/

/*STARTCOMPONENT:SCRIPT*/

@IDESCENDANTS("BS");

FIX (@IDESCENDANTS("BS"))

CALC DIM ("Period","Entity","Product");

ENDFIX

/*ENDCOMPONENT*/

FIX ( /*DIM:Entity*/"000")

"P_000"(

IF (@ISMBR(&CurYr))

%Template(name:="Balance Sheet Opening Balance Template",caption:="CY Balance Sheet


Opening
Bal",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"ScenarioD
im":=[[Scenario]],"VersionDim":=[[Version]],"AccountDim":=[[Account]],"BegBalancePeriod":=[["No
Period"]],"LastPeriod":=[["Dec"]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"BalShtParent":=[["BS"]],"RetEarn":=[["3310"]],"Scenario":=[["Actual"]],"Versio
n":=[[&ActVersion]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

ENDIF

"P_000"(

IF (@ISMBR(&NextYear))

%Template(name:="Balance Sheet Opening Balance Template",caption:="NY Balance Sheet


Opening
Bal",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"ScenarioD
im":=[[Scenario]],"VersionDim":=[[Version]],"AccountDim":=[[Account]],"BegBalancePeriod":=[["No
Period"]],"LastPeriod":=[["Dec"]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"BalShtParent":=[["BS"]],"RetEarn":=[["3310"]],"Scenario":=[["Plan"]],"Version"
:=[[&CurVersion]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

ENDIF

FIX ( /*DIM:Period*/"Jan":"Dec", /*DIM:Product*/"P_000")

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accounts


Receivable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"
BSAcct":=[["1210"]],"SrcAcct":=[["4110"]],"DriverAcct":=[["DSO"]],"PctAcct":=[[]],"AddAcct":=[[]],"Su
bAcct":=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Allowance for Bad


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance -
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1260"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[["7730"]
],"NameCombination":=[[Entity."000"-
>Product."P_000"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Bad


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"AccountD
im":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["7730"]],"Src
Acct":=[["1210"]],"DriverAcct":=[[]],"PctAcct":=[["BadDebtPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"Na
meCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[Entity."000"-
>Product."P_000"]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts


Template",caption:="Inventory",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Metho
d":=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"
BSAcct":=[["1410"]],"SrcAcct":=[["5000"]],"DriverAcct":=[["DaysInv"]],"PctAcct":=[[]],"AddAcct":=[[]],
"SubAcct":=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Prepaid


Expenses",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"Acco
untDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["1340"]],
"SrcAcct":=[["7001"]],"DriverAcct":=[[]],"PctAcct":=[["PrepaidPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"
NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))
%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-
Land",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1510"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Land"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"
BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Buildings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1520"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Building and
Improvements"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombinati
on":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Machinery and


Equipment",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance
+ Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1530"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Machinery &
Equipment"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":
=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Furniture and


Fixtures",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1540"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Furniture"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=
[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Vehicles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1550"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Vehicles"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[
]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Computers",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance
+ Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1560"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Computers &
Software"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[
[]],"BalanceCombination":=[[]]))
%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Asset
Clearing",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["1570"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


CIP",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["1580"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Intangibles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance
+ Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1565"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Intangible
Assets"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]]
,"BalanceCombination":=[[]]))

%Template(name:="Accum Deprec Template",caption:="A/D Existing


Assets",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Accou
ntDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[
[Entity."Entity"->Product."Product"]],"AccumDepr":=[["1610"]],"Depreciation":=[["7310"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Buildings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acc
ountDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":
=[[Entity."Entity"->Product."Product"]],"AccumDepr":=[["1620"]],"Depreciation":=[["7320"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Machinery",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Ac
countDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination
":=[[Entity."Entity"->Product."Product"]],"AccumDepr":=[["1630"]],"Depreciation":=[["7330"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Furniture",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acc
ountDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":
=[[Entity."Entity"->Product."Product"]],"AccumDepr":=[["1640"]],"Depreciation":=[["7340"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Vehicles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acco
untDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=
[[Entity."Entity"->Product."Product"]],"AccumDepr":=[["1650"]],"Depreciation":=[["7350"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Computers",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"A
ccountDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombinatio
n":=[[Entity."Entity"->Product."Product"]],"AccumDepr":=[["1660"]],"Depreciation":=[["7360"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Intangibles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"A
ccountDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombinatio
n":=[[Entity."Entity"->Product."Product"]],"AccumDepr":=[["1665"]],"Depreciation":=[["7365"]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Long Term


Receivables",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["1720"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Intercompany


Receivable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["1810"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Investment in


Subsidiaries",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["1820"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accounts


Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"
BSAcct":=[["2210"]],"SrcAcct":=[["5000"]],"DriverAcct":=[["DPO"]],"PctAcct":=[[]],"AddAcct":=[[]],"Su
bAcct":=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accrued


Expenses",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"Acco
untDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["2225"]],
"SrcAcct":=[["6000"]],"DriverAcct":=[[]],"PctAcct":=[["AccrPRPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"N
ameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Intercompany


Payables",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["2370"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["ICPayIncr"]],"SubAcct
":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombinat
ion":=[[]]))
%Template(name:="Derive Balance Sheet Accounts Template",caption:="Interest
Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["2530"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Income Taxes


Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["2300"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Long Term


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["2600"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["LTDebtIncr"]],"SubAcc
t":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombina
tion":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Common


Stock",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["3100"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Paid In


Capital",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAc
ct":=[["3200"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"Nam
eCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Retained Earnings Template",caption:="Retained


Earnings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acco
untDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=
[[Entity."Entity"-
>Product."Product"]],"RetEarn":=[["3310"]],"NetInc":=[["NI"]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

%Template(name:="Plug Balance Sheet Template",caption:="Plug Balance


Sheet",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"AccountDim":=[[Account]],"Plu
gAcct":=[["1110"]],"TotAssets":=[["1001"]],"TotLiab":=[["TLOE"]],"ClearPlug":=[[Yes]]))

ENDFIX

ENDFIX

ENDLOOP

/*CAPTION:Aggregate*/
/*STARTCOMPONENT:SCRIPT*/

@IDESCENDANTS("BS");

FIX (@IDESCENDANTS("BS"))

CALC DIM ("Period","Entity","Product");

ENDFIX

/*ENDCOMPONENT*/

ENDFIX

********

/*CAPTION:SET commands*/

/*STARTCOMPONENT:SCRIPT*/

SET UPDATECALC OFF ;

SET AGGMISSG ON;

/*SET CREATENONMISSINGBLK ON ;*/

/*ENDCOMPONENT*/

%Template(name:="Copy Data",caption:="Copy Actual to Current


Fcst",application:="",plantype:="",dtps:=("Restriction":=([[Account.@IDESCENDANTS("BS")]],[[Period."Ja
n":&ThisMonth]],[[Year.&CurYr]]),"Source":=[[Scenario."Actual"->Version.&ActVersion->Entity."TD"-
>Product."P_TP"]],"Destination":=[[Scenario.&CurForecast->Version.&CurVersion->Entity."000"-
>Product."P_000"]],"Datacondition":=[[]],"Debug":=[[Debug wizard
OFF]],"Applycalc":=[[]],"ApplycalcMB":=[[]],"Clearfirst":=[[]],"Createblock":=[[Yes]],"Setblockoneq":=[[]],
"SingleDim":=[[]]))

FIX (/*DIM:Scenario*/&CurForecast,/*DIM:Version*/&CurVersion)

LOOP (2)

/*CAPTION:Aggregate*/

/*STARTCOMPONENT:SCRIPT*/

@IDESCENDANTS("BS");
FIX (@IDESCENDANTS("BS"))

CALC DIM ("Period","Entity","Product");

ENDFIX

/*ENDCOMPONENT*/

FIX ( /*DIM:Entity*/"000")

"P_000"(

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1) AND @ISMBR(&CurYr)) OR (@ISMBR(&QRFYr2)


AND @ISDESC(&QRFPer2) AND @ISMBR(&CurYr)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)
AND @ISMBR(&CurYr)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4) AND @ISMBR(&CurYr)))

%Template(name:="Balance Sheet Opening Balance Template",caption:="CY Balance Sheet


Opening
Bal",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"ScenarioDim
":=[[Scenario]],"VersionDim":=[[Version]],"AccountDim":=[[Account]],"BegBalancePeriod":=[["No
Period"]],"LastPeriod":=[["Dec"]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"BalShtParent":=[["BS"]],"RetEarn":=[["3310"]],"Scenario":=[["Actual"]],"Version":
=[[&ActVersion]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

ENDIF

"P_000"(

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1) AND @ISMBR(&NextYear)) OR


(@ISMBR(&QRFYr2) AND @ISDESC(&QRFPer2) AND @ISMBR(&NextYear)) OR (@ISMBR(&QRFYr3) AND
@ISDESC(&QRFPer3) AND @ISMBR(&NextYear)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4) AND
@ISMBR(&NextYear)))

%Template(name:="Balance Sheet Opening Balance Template",caption:="NY Balance Sheet


Opening
Bal",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"ScenarioDim
":=[[Scenario]],"VersionDim":=[[Version]],"AccountDim":=[[Account]],"BegBalancePeriod":=[["No
Period"]],"LastPeriod":=[["Dec"]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"BalShtParent":=[["BS"]],"RetEarn":=[["3310"]],"Scenario":=[["Forecast"]],"Version
":=[[&CurVersion]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

ENDIF

"P_000"(
IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND
@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND
@ISDESC(&QRFPer4)))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accounts


Receivable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1210"]],"SrcAcct":=[["4110"]],"DriverAcct":=[["DSO"]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":
=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Bad


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"AccountDim
":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["7730"]],"SrcAcct":=
[["1210"]],"DriverAcct":=[[]],"PctAcct":=[["BadDebtPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombina
tion":=[[]],"DriverCombination":=[[]],"PctCombination":=[[Entity."000"-
>Product."P_000"]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Allowance for Bad


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance - Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1260"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[["7730"]],"Nam
eCombination":=[[Entity."000"-
>Product."P_000"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts


Template",caption:="Inventory",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":
=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["1410"]],"SrcAcct":=[["5000"]],"DriverAcct":=[["DaysInv"]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAc
ct":=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Prepaid


Expenses",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"Account
Dim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["1340"]],"SrcAc
ct":=[["7001"]],"DriverAcct":=[[]],"PctAcct":=[["PrepaidPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCom
bination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Land",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance + Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1510"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Land"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"Bal
anceCombination":=[[]]))
%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-
Buildings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1520"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Building and
Improvements"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination"
:=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Machinery and


Equipment",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1530"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Machinery &
Equipment"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]
],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Furniture and


Fixtures",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1540"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Furniture"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],
"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Vehicles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1550"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx:
Vehicles"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"
BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Computers",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1560"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Computers &
Software"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],
"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-Asset


Clearing",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1570"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))
%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-
CIP",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1580"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="PPE-


Intangibles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["1565"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["CapEx: Intangible
Assets"]],"SubAcct":=[[]],"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"B
alanceCombination":=[[]]))

%Template(name:="Accum Deprec Template",caption:="A/D Existing


Assets",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"AccountD
im":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Entity.
"Entity"->Product."Product"]],"AccumDepr":=[["1610"]],"Depreciation":=[["7310"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Buildings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Accoun
tDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Entit
y."Entity"->Product."Product"]],"AccumDepr":=[["1620"]],"Depreciation":=[["7320"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Machinery",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acco
untDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[E
ntity."Entity"->Product."Product"]],"AccumDepr":=[["1630"]],"Depreciation":=[["7330"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Furniture",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Accou
ntDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Ent
ity."Entity"->Product."Product"]],"AccumDepr":=[["1640"]],"Depreciation":=[["7340"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Vehicles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Account
Dim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Entit
y."Entity"->Product."Product"]],"AccumDepr":=[["1650"]],"Depreciation":=[["7350"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Computers",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acco
untDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[E
ntity."Entity"->Product."Product"]],"AccumDepr":=[["1660"]],"Depreciation":=[["7360"]]))

%Template(name:="Accum Deprec Template",caption:="A/D


Intangibles",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Acco
untDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[E
ntity."Entity"->Product."Product"]],"AccumDepr":=[["1665"]],"Depreciation":=[["7365"]]))
%Template(name:="Derive Balance Sheet Accounts Template",caption:="Long Term
Receivables",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1720"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Intercompany


Receivable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1810"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Investment in


Subsidiaries",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["1820"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accounts


Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Days
Outstanding]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSA
cct":=[["2210"]],"SrcAcct":=[["5000"]],"DriverAcct":=[["DPO"]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":
=[[]],"NameCombination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Accrued


Expenses",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Percent]],"Account
Dim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":=[["2225"]],"SrcAc
ct":=[["6000"]],"DriverAcct":=[[]],"PctAcct":=[["AccrPRPct"]],"AddAcct":=[[]],"SubAcct":=[[]],"NameComb
ination":=[[Entity."Entity"-
>Product."Product"]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Intercompany


Payables",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance +
Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["2370"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["ICPayIncr"]],"SubAcct":=[[]],"
NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Interest


Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["2530"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Income Taxes


Payable",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["2300"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Long Term


Debt",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior Balance + Account
Member]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct"
:=[["2600"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[["LTDebtIncr"]],"SubAcct":=[[]],
"NameCombination":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]])
)

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Common


Stock",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["3100"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Derive Balance Sheet Accounts Template",caption:="Paid In


Capital",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"Method":=[[Prior
Balance]],"AccountDim":=[[Account]],"PeriodDim":=[[Period]],"YrTotalPeriod":=[["YearTotal"]],"BSAcct":
=[["3200"]],"SrcAcct":=[[]],"DriverAcct":=[[]],"PctAcct":=[[]],"AddAcct":=[[]],"SubAcct":=[[]],"NameCombi
nation":=[[]],"DriverCombination":=[[]],"PctCombination":=[[]],"BalanceCombination":=[[]]))

%Template(name:="Retained Earnings Template",caption:="Retained


Earnings",application:="Vision",plantype:="Plan1",dtps:=("MyPOV":=(),"PeriodDim":=[[Period]],"Accoun
tDim":=[[Account]],"FirstPeriod":=[["Jan"]],"YrTotalPeriod":=[["YearTotal"]],"NameCombination":=[[Entit
y."Entity"-
>Product."Product"]],"RetEarn":=[["3310"]],"NetInc":=[["NI"]],"CYE":=[[Yes]],"RE_CYE":=[["3320"]]))

/*CAPTION:Clear Cash*/

/*STARTCOMPONENT:SCRIPT*/

"1110" = #missing;

/*ENDCOMPONENT*/

ENDIF

FIX ( /*DIM:Product*/"P_000")

/*CAPTION:Plug Cash*/

/*STARTCOMPONENT:SCRIPT*/

@IDESCENDANTS("BS");
"1110" (

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND
@ISDESC(&QRFPer4)))

IF (@ISUDA("Account","Asset"))

"1110" = "TLOE" - "1001";

ELSE

"1110" = "1001" - "TLOE";

ENDIF

ENDIF

/*ENDCOMPONENT*/

ENDFIX

ENDFIX

/*CAPTION:Aggregate*/

/*STARTCOMPONENT:SCRIPT*/

@IDESCENDANTS("BS");

FIX (@IDESCENDANTS("BS"))

CALC DIM ("Period","Entity","Product");

ENDFIX

/*ENDCOMPONENT*/
ENDLOOP

ENDFIX

%Template(name:="SET
commands",application:="",plantype:="",dtps:=("UPDATECALC":=[[Default]],"AGGMISSING":=[["Consoli
date #MISSING values in the database"]],"CACHE":=[[No changes (Use System
default)]],"CALCPARALLEL":=[[Default]],"CALCTASKDIM":=[[]],"CLEARUPDATESTATUS":=[[Default]],"CRE
ATEBLOCKONEQ":=[[Default]],"CREATEONMISSINGBLK":=[[Default]],"EMPTYMEMBERSETS":=[[Default]],
"FRMLBOTTOMUP":=[[Default]],"FRMLRTDYNAMIC":=[[Default]],"LOCKBLOCK":=[[No changes (use
system default)]],"MSG":=[[Default]],"NOTICE":=[[No changes (Use
default)]],"REMOTECALC":=[[Default]]))

FIX
(/*DIM:Scenario*/&CurForecast,/*DIM:Version*/{Version},/*DIM:Entity*/{Department},/*DIM:Product
*/"P_000")

"7320"(

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND @ISDESC(&QRFPer2))


OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4)))

/*CAPTION:Depreciation*/

/*STARTCOMPONENT:FORMULA*/

"7320" = @XDIMSLN("CapEx: Building and Improvements",0,120,&QRFYr1:&QRFYr4,"Jan":"Dec");

"7330" = @XDIMSLN("CapEx: Machinery & Equipment",0,60,&QRFYr1:&QRFYr4,"Jan":"Dec");

"7340" = @XDIMSLN("CapEx: Furniture",0,36,&QRFYr1:&QRFYr4,"Jan":"Dec");

"7350" = @XDIMSLN("CapEx: Vehicles",0,48,&QRFYr1:&QRFYr4,"Jan":"Dec");

"7360" = @XDIMSLN("CapEx: Computers & Software",0,36,&QRFYr1:&QRFYr4,"Jan":"Dec");

"7365" = @XDIMSLN("CapEx: Intangible Assets",0,60,&QRFYr1:&QRFYr4,"Jan":"Dec");

/*ENDCOMPONENT*/

/*CAPTION:Total Depreciation and Capex*/

/*STARTCOMPONENT:FORMULA*/

"7300";

"Capital Expenditures";

/*ENDCOMPONENT*/

ENDIF
)

ENDFIX

%Template(name:="SET
commands",application:="",plantype:="",dtps:=("UPDATECALC":=[[Default]],"AGGMISSING":=[["Consoli
date #MISSING values in the database"]],"CACHE":=[[No changes (Use System
default)]],"CALCPARALLEL":=[[Default]],"CALCTASKDIM":=[[]],"CLEARUPDATESTATUS":=[[Default]],"CRE
ATEBLOCKONEQ":=[[Default]],"CREATEONMISSINGBLK":=[[Default]],"EMPTYMEMBERSETS":=[[Default]],
"FRMLBOTTOMUP":=[[Default]],"FRMLRTDYNAMIC":=[[Default]],"LOCKBLOCK":=[[No changes (use
system default)]],"MSG":=[[Default]],"NOTICE":=[[No changes (Use
default)]],"REMOTECALC":=[[Default]]))

FIX (/*DIM:Year*/{Year},/*DIM:Scenario*/"Plan",/*DIM:Version*/{Version})

FIX ( /*DIM:Entity*/{Department}, /*DIM:Product*/"P_000")

/*CAPTION:Depreciation*/

/*STARTCOMPONENT:FORMULA*/

"7320" = @SLN("CapEx: Building and Improvements",0,120,"Jan":"Dec");

"7330" = @SLN("CapEx: Machinery & Equipment",0,60,"Jan":"Dec");

"7340" = @SLN("CapEx: Furniture",0,36,"Jan":"Dec");

"7350" = @SLN("CapEx: Vehicles",0,48,"Jan":"Dec");

"7360" = @SLN("CapEx: Computers & Software",0,36,"Jan":"Dec");

"7365" = @SLN("CapEx: Intangible Assets",0,60,"Jan":"Dec");

/*ENDCOMPONENT*/

/*CAPTION:Total Depreciation and Capex*/

/*STARTCOMPONENT:FORMULA*/

"7300";

"Capital Expenditures";

/*ENDCOMPONENT*/

ENDFIX

ENDFIX

CLEAR FACILITIES ALLOCATION

SET AGGMISSG ON;


FIX ("Plan",{Version})

FIX(@IDESCENDANTS("Allocation - Facilities"),@IDESCENDANTS("TD"))

CLEARDATA &NextYear;

ENDFIX

FIX ("110",&NextYear)

CLEARDATA "Allocations Out";

ENDFIX

@IDESCENDANTS("Allocations");

FIX(@IDESCENDANTS("Allocations"))

CALC DIM ("Period","Entity","Product");

ENDFIX

ENDFIX

CLEAR HR ALLOCATION

SET AGGMISSG ON;

FIX ("Plan",{Version})

FIX(@IDESCENDANTS("Allocation - Administrative"),@IDESCENDANTS("TD"))

CLEARDATA &NextYear;

ENDFIX

FIX ("810",&NextYear)

CLEARDATA "Allocations Out";

ENDFIX

@IDESCENDANTS("Allocations");

FIX(@IDESCENDANTS("Allocations"))

CALC DIM ("Period","Entity","Product");

ENDFIX

ENDFIX
FACILITIES ALLOCATION

%Template(name:="SET
commands",application:="",plantype:="",dtps:=("UPDATECALC":=[[Default]],"AGGMISSING":=[[Default]],
"CACHE":=[[No changes (Use System
default)]],"CALCPARALLEL":=[[Default]],"CALCTASKDIM":=[[]],"CLEARUPDATESTATUS":=[[Default]],"CRE
ATEBLOCKONEQ":=[[Default]],"CREATEONMISSINGBLK":=[[Default]],"EMPTYMEMBERSETS":=[[Default]],
"FRMLBOTTOMUP":=[[Default]],"FRMLRTDYNAMIC":=[[Default]],"LOCKBLOCK":=[[HIGH]],"MSG":=[[Defa
ult]],"NOTICE":=[[No changes (Use default)]],"REMOTECALC":=[[Default]]))

%Template(name:="Allocate -
Simple",application:="",plantype:="",dtps:=("POV":=([[Period.@IDESCENDANTS("YearTotal")]],[[Year.&N
extYear]],[[Scenario."Plan"]],[[Version.{Version}]],[[Product."P_000"]]),"Source":=[[Account."OpEx
before Allocations"-
>Entity."110"]],"pct":=[[100]],"AllocDim":=[[Entity]],"allocationRange1":=[["TD"]],"DestAllSource":=[[Acc
ount."Allocation -
Facilities"]],"DestDimSource":=[[Account]],"DestDimPov":=[[]],"Driver":=[[Account."Square
Feet"]],"Alloc_method":=[[Allocate using a driver]],"Spread_method2":=[[]],"Recalc_driver":=[[Re-
aggregate driver]],"agg_after":=[[Yes]],"clear_before":=[[No]],"Decimals":=[[]],"Rounding
Method":=[[No
Rounding]],"RoundingMB":=[[]],"OffsetFromSource":=[[]],"OffsetFromPOV":=[[]],"OffsetMBfromAllocDi
m":=[[]],"ClearOffset":=[[No]],"RankFromSource":=[[]],"RankFromPov":=[[]],"Debug":=[[Debug wizard
OFF]],"SparseDimForRank":=[[]],"SparseDimForRank_NewPOV":=[[]],"CreateBlock":=[[No]],"Offset_Opp
":=[[Yes]]))

/*CAPTION:Allocation Out*/

/*STARTCOMPONENT:SCRIPT*/

FIX (@IDESCENDANTS("YearTotal"),&NextYear,"Plan",{Version},"P_000")

FIX ("110")

"Allocations Out" = "OpEx before Allocations" * (100/100);

ENDFIX

ENDFIX

/*ENDCOMPONENT*/

HR ALLOCATION
%Template(name:="Allocate -
Simple",application:="",plantype:="",dtps:=("POV":=([[Period.@IDESCENDANTS("YearTotal")]],[[Year.&N
extYear]],[[Scenario."Plan"]],[[Version.{Version}]],[[Product."P_000"]]),"Source":=[[Account."OpEx
before Allocations"-
>Entity."810"]],"pct":=[[100]],"AllocDim":=[[Entity]],"allocationRange1":=[["TD"]],"DestAllSource":=[[Acc
ount."Allocation -
Administrative"]],"DestDimSource":=[[Account]],"DestDimPov":=[[]],"Driver":=[[Account."9000"]],"Alloc
_method":=[[Allocate using a driver]],"Spread_method2":=[[]],"Recalc_driver":=[[Re-aggregate
driver]],"agg_after":=[[Yes]],"clear_before":=[[No]],"Decimals":=[[]],"Rounding Method":=[[No
Rounding]],"RoundingMB":=[[]],"OffsetFromSource":=[[]],"OffsetFromPOV":=[[]],"OffsetMBfromAllocDi
m":=[[]],"ClearOffset":=[[No]],"RankFromSource":=[[]],"RankFromPov":=[[]],"Debug":=[[Debug wizard
OFF]],"SparseDimForRank":=[[]],"SparseDimForRank_NewPOV":=[[]],"CreateBlock":=[[No]],"Offset_Opp
":=[[Yes]]))

/*CAPTION:Allocation Out*/

/*STARTCOMPONENT:SCRIPT*/

FIX (@IDESCENDANTS("YearTotal"),&NextYear,"Plan",{Version},"P_000")

FIX ("810")

"Allocations Out" = "OpEx before Allocations" * (100/100);

ENDFIX

ENDFIX

/*ENDCOMPONENT*/

INCOME STATEMENT FORECAST

FIX (/*DIM:Scenario*/&CurForecast,/*DIM:Version*/&CurVersion)

/*CAPTION:Rollup Plan*/

/*STARTCOMPONENT:SCRIPT*/

SET UPDATECALC OFF;

SET AGGMISSG ON;

@IDESCENDANTS("NI");
CALC DIM ("Account","Period","Entity","Product");

("ASP" = @ROUND("4110" / "Units",2);

"COS Rate" = @ROUND("5110" / "Units",2);)

/*ENDCOMPONENT*/

ENDFIX

INCOME STATEMENT PLAN

FIX (/*DIM:Year*/&NextYear,/*DIM:Version*/&CurVersion)

FIX ( /*DIM:Scenario*/"Plan","Adj Plan")

/*CAPTION:Rollup Plan*/

/*STARTCOMPONENT:SCRIPT*/

SET UPDATECALC OFF;

SET AGGMISSG ON;

CALC DIM ("Account","Period","Entity","Product");

("ASP" = @ROUND("4110" / "Units",2);

"COS Rate" = @ROUND("5110" / "Units",2);

"Gross Margin %" = @ROUND("GP" / "4001",2);)

/*ENDCOMPONENT*/

ENDFIX

FIX ( /*DIM:Account*/@IDESCENDANTS("NI"))

/*CAPTION:Revised Plan*/

/*STARTCOMPONENT:FORMULA*/

"Revised Plan" = "Plan" + "Adj Plan";

/*ENDCOMPONENT*/
ENDFIX

ENDFIX

OPERATING EXPENSE ADJ PLAN

SET AGGMISSG ON;

FIX ("Adj Plan",&NextYear,"P_000",@RELATIVE("7001",0),@CHILDREN("403"))

&CurVersion (

IF ("Driver Rate"->"BegBalance" != #missing)

&CurVersion = "Driver Volume"->"Plan" * "Driver Rate"->"BegBalance";

ENDIF

ENDFIX

FIX (@IDESCENDANTS("OpEx"),&CurVersion);

"Adj Plan";

"Revised Plan" = "Plan" + "Adj Plan";

ENDFIX

FIX ("Adj Plan","Revised Plan",&CurVersion)

@IDESCENDANTS("OpEx");

ENDFIX

OPERATING EXPENSE FORECAST

SET UPDATECALC OFF;

SET AGGMISSG ON;

FIX (&CurForecast,"P_000",@CHILDREN("403"))

"Sales Calls";

"5800" (
IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND
@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4)
AND @ISDESC(&QRFPer4)))

"5800" = @ROUND("9000" * "Average Salaries",2);

"6100" = @ROUND("5800" * "Employee Benefits %",2);

ENDIF

FIX (@RELATIVE("7001",0))

/*Driver: 1 = % of Revenue, 2 = Units, 3 = Headcount Hours, 4 = Sales Calls, 5 = Trips, 6 = Square


Feet, 7 = Input or Blank */

/*Method: 1 = Last Year Actual, 2 = Current Year Plan, 3 = Current Year Forecast */

"Driver Volume" (

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4)
AND @ISDESC(&QRFPer4)))

IF ("Driver"->"No Year"->"BegBalance" ==1)

"Driver Volume" = "4001"->"P_TP1"->&CurVersion;

ELSEIF ("Driver"->"No Year"->"BegBalance" ==2)

"Driver Volume" = "Units"->"P_TP1"->&CurVersion;

ELSEIF ("Driver"->"No Year"->"BegBalance" ==3)

"Driver Volume" = "9000"->&CurVersion * 2080/12;

ELSEIF ("Driver"->"No Year"->"BegBalance" ==4)

"Driver Volume" = "Sales Calls"->"BegBalance"->&CurVersion->&QRFYr4/12;

ELSEIF ("Driver"->"No Year"->"BegBalance" ==5)

"Driver Volume" = "Trips"->&CurVersion;

ELSEIF ("Driver"->"No Year"->"BegBalance" ==6)

"Driver Volume" = "Square Feet"->&CurVersion/12;

ELSEIF (("Driver"->"No Year"->"BegBalance" ==7 OR "Driver"->"No Year" == #missing) AND


"Method"->"BegBalance" == 1)

"Driver Volume" = "Actual"->&ActVersion->&LastYr;


ELSEIF (("Driver"->"No Year"->"BegBalance" ==7 OR "Driver"->"No Year" == #missing) AND
"Method"->"BegBalance" == 2)

"Driver Volume" = "Plan"->&PlanVersion->&CurYr;

ELSEIF (("Driver"->"No Year"->"BegBalance" ==7 OR "Driver"->"No Year" == #missing) AND


"Method"->"BegBalance" == 3)

"Driver Volume" = "Forecast"->&ForVersion->&CurYr;

ENDIF

ENDIF

ENDFIX

ENDFIX

FIX (&CurForecast,"P_000",@CHILDREN("403"))

FIX (@RELATIVE("7001",0))

"Driver Rate" (

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4)
AND @ISDESC(&QRFPer4)))

IF ("Driver"->"BegBalance"->"No Year" == 7)

&CurVersion = "Driver Volume";

ELSE

&CurVersion = "Driver Volume" * "Driver Rate"->"BegBalance"->"No Year";

ENDIF

ENDIF

ENDFIX

ENDFIX

FIX (&CurForecast,&CurVersion,"P_000","Trips","Square Feet","9000")

"403";
ENDFIX

FIX (&CurForecast,&CurVersion,"P_000",@ICHILDREN("403"))

@IDESCENDANTS("OpEx");

ENDFIX

FIX (&CurForecast,"P_000","403")

"Average Salaries" = "5800" / "9000";

"Employee Benefits %" = "6100" / "5800";

ENDFIX

OPERATING EXPENSE PLAN

SET UPDATECALC OFF;

SET AGGMISSG ON;

FIX ("Plan",&NextYear,"P_000",@CHILDREN("403"))

"5800" = @ROUND("9000" * "Average Salaries",2);

"6100" = @ROUND("5800" * "Employee Benefits %",2);

"Sales Calls";

ENDFIX

FIX ("Plan",&CurVersion,&NextYear,@ICHILDREN("403"))

@IDESCENDANTS("OpEx");

ENDFIX

FIX ("Plan",&CurVersion,&NextYear)

FIX(@IDESCENDANTS("OpEx"),"Trips","Square Feet","9000","Average Salaries")


CALC DIM ("Entity");

ENDFIX

("Average Salaries" = @ROUND("5800" / "9000",2);

"Employee Benefits %" = @ROUND("6100" / "5800",2);)

ENDFIX

/* Driver: 1 = % of Revenue, 2 = Units, 3 = Headcount Hours, 4 = Sales Calls, 5 = Trips, 6 = Square Feet,
7 = Input or Blank */

/*Method: 1 = Last Year Actual, 2 = Current Year Plan, 3 = Current Year Forecast */

FIX ("Plan",&NextYear,"P_000")

FIX (@RELATIVE("7001",0),@CHILDREN("403"))

"Driver Volume" (

IF (@ISMBR(@Relative("YearTotal",0)))

IF ("Driver"->"BegBalance" ==1)

"Driver Volume" = "4001"->"P_TP1"->&CurVersion;

ELSEIF ("Driver"->"BegBalance" ==2)

"Driver Volume" = "Units"->"P_TP1"->&CurVersion;

ELSEIF ("Driver"->"BegBalance" ==3)

"Driver Volume" = "9000"->&CurVersion * 2080/12;

ELSEIF ("Driver"->"BegBalance" ==4)

"Driver Volume" = "Sales Calls"->"BegBalance"->&CurVersion/12;

ELSEIF ("Driver"->"BegBalance" ==5)

"Driver Volume" = "Trips"->&CurVersion;

ELSEIF ("Driver"->"BegBalance" ==6)

"Driver Volume" = "Square Feet"->&CurVersion/12;

ELSEIF (("Driver"->"BegBalance" ==7 OR "Driver" == #missing) AND "Method"->"BegBalance" ==


1)

"Driver Volume" = "Actual"->&ActVersion->&LastYr;

ELSEIF (("Driver"->"BegBalance" ==7 OR "Driver" == #missing) AND "Method"->"BegBalance" ==


2)
"Driver Volume" = "Plan"->&PlanVersion->&CurYr;

ELSEIF (("Driver"->"BegBalance" ==7 OR "Driver" == #missing) AND "Method"->"BegBalance" ==


3)

"Driver Volume" = "Forecast"->&ForVersion->&CurYr;

ENDIF

ENDIF

ENDFIX

ENDFIX

FIX ("Actual",&LastYr,"P_000")

FIX (@RELATIVE("7001",0),@CHILDREN("403"))

"Driver Volume" (

IF (@ISMBR(@Relative("YearTotal",0)))

IF ("Driver"->"Plan"->&NextYear->"BegBalance" ==1)

"Driver Volume" = "4001"->"P_TP1"->&ActVersion;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==2)

"Driver Volume" = "Units"->"P_TP1"->&ActVersion;;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==3)

"Driver Volume" = "9000"->&ActVersion * 2080/12;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==4)

"Driver Volume" = "Sales Calls"->"BegBalance"->&ActVersion/12;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==5)

"Driver Volume" = "Trips"->&ActVersion;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==6)

"Driver Volume" = "Square Feet"->&ActVersion/12;

ENDIF

ENDIF

)
"Driver Rate" (

IF (@ISMBR("BegBalance"))

IF ("Driver Volume"->"YearTotal" != #missing)

"Driver Rate" = &ActVersion->"YearTotal" / "Driver Volume"->"YearTotal";

ENDIF

ENDIF

ENDFIX

ENDFIX

FIX ("Plan",&CurYr,"P_000")

FIX (@RELATIVE("7001",0),@CHILDREN("403"))

"Driver Volume" (

IF (@ISMBR(@Relative("YearTotal",0)))

IF ("Driver"->"Plan"->&NextYear->"BegBalance" ==1)

"Driver Volume" = "4001"->"P_TP1"->&PlanVersion;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==2)

"Driver Volume" = "Units"->"P_TP1"->&PlanVersion;;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==3)

"Driver Volume" = "9000"->&PlanVersion * 2080/12;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==4)

"Driver Volume" = "Sales Calls"->"BegBalance"->&PlanVersion/12;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==5)

"Driver Volume" = "Trips"->&PlanVersion;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==6)

"Driver Volume" = "Square Feet"->&PlanVersion/12;

ENDIF

ENDIF

)
"Driver Rate" (

IF (@ISMBR("BegBalance"))

IF ("Driver Volume"->"YearTotal" != #missing)

"Driver Rate" = &PlanVersion->"YearTotal" / "Driver Volume"->"YearTotal";

ENDIF

ENDIF

ENDFIX

ENDFIX

FIX ("Forecast",&CurYr,"P_000")

FIX (@RELATIVE("7001",0),@CHILDREN("403"))

"Driver Volume" (

IF (@ISMBR(@Relative("YearTotal",0)))

IF ("Driver"->"Plan"->&NextYear->"BegBalance" ==1)

"Driver Volume" = "4001"->"P_TP1"->&ForVersion;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==2)

"Driver Volume" = "Units"->"P_TP1"->&ForVersion;;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==3)

"Driver Volume" = "9000"->&ForVersion * 2080/12;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==4)

"Driver Volume" = "Sales Calls"->"BegBalance"->&ForVersion/12;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==5)

"Driver Volume" = "Trips"->&ForVersion;

ELSEIF ("Driver"->"Plan"->&NextYear->"BegBalance" ==6)

"Driver Volume" = "Square Feet"->&ForVersion/12;

ENDIF

ENDIF

)
"Driver Rate" (

IF (@ISMBR("BegBalance"))

IF ("Driver Volume"->"YearTotal" != #missing)

"Driver Rate" = &ForVersion->"YearTotal" / "Driver Volume"->"YearTotal";

ENDIF

ENDIF

ENDFIX

ENDFIX

FIX ("Plan",&NextYear,"P_000")

FIX (@RELATIVE("7001",0),@CHILDREN("403"))

"Driver Rate" (

IF (@ISMBR("BegBalance"))

IF ("Driver" == 1)

"Driver Rate" = "Rate Pct";

ELSEIF (("Driver" == 7 OR "Driver" == #missing) AND "Method" != #missing)

"Driver Rate" = 1 +"Rate Pct";

ELSEIF ("Method" == 1)

"Driver Rate" = @MDSHIFT("Driver Rate"->"Actual",-2,"Year",) * (1 + "Rate Pct"-


>"BegBalance");

ELSEIF ("Method" == 2)

"Driver Rate" = @MDSHIFT("Driver Rate"->"Plan",-1,"Year",) * (1 + "Rate Pct"->"BegBalance");

ELSEIF ("Method" == 3)

"Driver Rate" = @MDSHIFT("Driver Rate"->"Forecast",-1,"Year",) * (1 + "Rate Pct"-


>"BegBalance");

ENDIF

ENDIF

)
&CurVersion = "Driver Volume" * "Driver Rate"->"BegBalance";

ENDFIX

ENDFIX

FIX ("Plan","Adj Plan","Revised Plan",&CurVersion,&NextYear,@ICHILDREN("403"))

@IDESCENDANTS("OpEx");

ENDFIX

FIX (&CurVersion,&NextYear);

"Revised Plan" = "Plan" + "Adj Plan";

ENDFIX

OPERATING EXP DRIVERS

SET UPDATECALC OFF;

SET AGGMISSG ON;

FIX ("Plan",&NextYear,@CHILDREN("403"),"BegBalance","P_000")

"Method" (

IF ("Actual"->&ActVersion->&LastYr->"YearTotal" == #missing AND NOT @ISMBR("7110"))

"Method" = #missing;

"Driver" = #missing;

"Rate Pct" = #missing;

ELSE

"Method" = "No Entity"->"Method";

"Driver" = "No Entity"->"Driver";

"Rate Pct" = "No Entity"->"Rate Pct";

ENDIF

ENDFIX
REVENUE FORECAST

%Template(name:="SET commands",application:="",plantype:="",dtps:=("UPDATECALC":=[[Calculates
all data blocks]],"AGGMISSING":=[["Consolidate #MISSING values in the database"]],"CACHE":=[[No
changes (Use System
default)]],"CALCPARALLEL":=[[Default]],"CALCTASKDIM":=[[]],"CLEARUPDATESTATUS":=[[Default]],"C
REATEBLOCKONEQ":=[[Default]],"CREATEONMISSINGBLK":=[[Default]],"EMPTYMEMBERSETS":=[[Def
ault]],"FRMLBOTTOMUP":=[[Default]],"FRMLRTDYNAMIC":=[[Default]],"LOCKBLOCK":=[[No changes
(use system default)]],"MSG":=[[Default]],"NOTICE":=[[No changes (Use
default)]],"REMOTECALC":=[[Default]]))

FIX (/*DIM:Scenario*/&CurForecast,/*DIM:Version*/{Version},/*DIM:Entity*/{Department})

FIX ( /*DIM:Product*/@CHILDREN("P_TP1"),@CHILDREN("P_TP2"))

"4110"(

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4)
AND @ISDESC(&QRFPer4)))

/*CAPTION:Revenue*/

/*STARTCOMPONENT:FORMULA*/

"4110" = @ROUND("Units" * "ASP",2);

/*ENDCOMPONENT*/

ENDIF

/*STARTCOMPONENT:FORMULA*/

"4001";

/*ENDCOMPONENT*/

"5110"(

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4)
AND @ISDESC(&QRFPer4)))

/*CAPTION:Cost of Sales*/

/*STARTCOMPONENT:FORMULA*/

"5110" = @ROUND("4110" * (1 - "Gross Margin %"),2);

/*ENDCOMPONENT*/
ENDIF

/*CAPTION:Gross Profit*/

/*STARTCOMPONENT:FORMULA*/

@IDESCENDANTS("GP");

/*ENDCOMPONENT*/

ENDFIX

FIX ( /*DIM:Account*/"Units",@IDESCENDANTS("GP"))

/*CAPTION:Rollup Product*/

/*STARTCOMPONENT:SCRIPT*/

CALC DIM ("Product");

/*ENDCOMPONENT*/

ENDFIX

ENDFIX

FIX (/*DIM:Scenario*/&CurForecast,/*DIM:Version*/{Version},/*DIM:Entity*/{Department})

/*CAPTION:Backcalc ASP*/

/*STARTCOMPONENT:FORMULA*/

"ASP" = @ROUND("4110" / "Units",2);

"COS Rate" = @ROUND("5110" / "Units",2);

/*ENDCOMPONENT*/

/*CAPTION:Backcalc GP%*/

/*STARTCOMPONENT:FORMULA*/

"Gross Margin %" = @ROUND("GP" / "4001",2);

/*ENDCOMPONENT*/

/*CAPTION:Sales Calls*/

/*STARTCOMPONENT:FORMULA*/

"Sales Calls"(

IF (@ISMBR(&QRFYr4) AND @ISMBR("BegBalance"))

"Sales Calls" = "Units"->"P_TP1"->"Rolling" / "Avg Order Size" / "Close Rate" * "Travel %";
ENDIF

/*ENDCOMPONENT*/

ENDFIX

REVENUE FORECAST – SERVICES

%Template(name:="SET commands",application:="",plantype:="",dtps:=("UPDATECALC":=[[Calculates
all data blocks]],"AGGMISSING":=[[Default]],"CACHE":=[[No changes (Use System
default)]],"CALCPARALLEL":=[[Default]],"CALCTASKDIM":=[[]],"CLEARUPDATESTATUS":=[[Default]],"C
REATEBLOCKONEQ":=[[Default]],"CREATEONMISSINGBLK":=[[OFF]],"EMPTYMEMBERSETS":=[[Default
]],"FRMLBOTTOMUP":=[[Default]],"FRMLRTDYNAMIC":=[[Default]],"LOCKBLOCK":=[[No changes (use
system default)]],"MSG":=[[Default]],"NOTICE":=[[No changes (Use
default)]],"REMOTECALC":=[[Default]]))

FIX (/*DIM:Scenario*/&CurForecast,/*DIM:Version*/&CurVersion)

FIX ( /*DIM:Product*/@CHILDREN("P_TP3"))

{Department}(

@CALCMODE(TOPDOWN);

IF(@ISMBR("4120"))

IF (("BegBalance"->&QRFYr1->"Pct" <> #missing) AND ((@ISMBR(&QRFYr1) AND


@ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND @ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3)
AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4))))

/*CAPTION:Support*/

/*STARTCOMPONENT:FORMULA*/

"4120" = @ROUND("4110"->"P_TP1" * "BegBalance"->&QRFYr1->"Pct",2);

/*ENDCOMPONENT*/

ENDIF

ENDIF

{Department}(

@CALCMODE(TOPDOWN);

IF(@ISMBR("4130"))
IF (("BegBalance"->&QRFYr1->"Pct" <> #missing) AND ((@ISMBR(&QRFYr1) AND
@ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND @ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3)
AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4))))

/*CAPTION:Consulting*/

/*STARTCOMPONENT:FORMULA*/

"4130" = @ROUND("4110"->"P_TP1" * "BegBalance"->&QRFYr1->"Pct",2);

/*ENDCOMPONENT*/

ENDIF

ENDIF

{Department}(

@CALCMODE(TOPDOWN);

IF(@ISMBR("4140"))

IF (("BegBalance"->&QRFYr1->"Pct" <> #missing) AND ((@ISMBR(&QRFYr1) AND


@ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND @ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3)
AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4))))

/*CAPTION:Training*/

/*STARTCOMPONENT:FORMULA*/

"4140" = @ROUND("4110"->"P_TP1" * "BegBalance"->&QRFYr1->"Pct",2);

/*ENDCOMPONENT*/

ENDIF

ENDIF

{Department}(

@CALCMODE(TOPDOWN);

IF(@ISMBR("4150"))

IF (("BegBalance"->&QRFYr1->"Pct" <> #missing) AND ((@ISMBR(&QRFYr1) AND


@ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND @ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3)
AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4) AND @ISDESC(&QRFPer4))))

/*CAPTION:Misc Revenue*/

/*STARTCOMPONENT:FORMULA*/
"4150" = @ROUND("4110"->"P_TP1" * "BegBalance"->&QRFYr1->"Pct",2);

/*ENDCOMPONENT*/

ENDIF

ENDIF

/*CAPTION:Total Revenue*/

/*STARTCOMPONENT:FORMULA*/

"4001";

/*ENDCOMPONENT*/

ENDFIX

FIX ( /*DIM:Product*/@CHILDREN("P_TP3"))

{Department}(

@CALCMODE(TOPDOWN);

IF(@ISMBR("5110"))

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4)
AND @ISDESC(&QRFPer4)))

/*CAPTION:Cost of Sales*/

/*STARTCOMPONENT:FORMULA*/

"5110" = @ROUND("4001" * "5110"->"BegBalance"->&QRFYr1->"Pct",2);

/*ENDCOMPONENT*/

ENDIF

ENDIF

/*CAPTION:Gross Profit*/

/*STARTCOMPONENT:FORMULA*/

@IDESCENDANTS("GP");

/*ENDCOMPONENT*/

ENDFIX
FIX ( /*DIM:Account*/@IDESCENDANTS("GP"))

/*CAPTION:Rollup Product*/

/*STARTCOMPONENT:SCRIPT*/

CALC DIM ("Product","Entity");

/*ENDCOMPONENT*/

ENDFIX

ENDFIX

REVENUE PLAN – PRODUCT

%Template(name:="SET commands",application:="",plantype:="",dtps:=("UPDATECALC":=[[Calculates
all data blocks]],"AGGMISSING":=[["Consolidate #MISSING values in the database"]],"CACHE":=[[No
changes (Use System
default)]],"CALCPARALLEL":=[[Default]],"CALCTASKDIM":=[[]],"CLEARUPDATESTATUS":=[[Default]],"C
REATEBLOCKONEQ":=[[Default]],"CREATEONMISSINGBLK":=[[Default]],"EMPTYMEMBERSETS":=[[Def
ault]],"FRMLBOTTOMUP":=[[Default]],"FRMLRTDYNAMIC":=[[Default]],"LOCKBLOCK":=[[No changes
(use system default)]],"MSG":=[[Default]],"NOTICE":=[[No changes (Use
default)]],"REMOTECALC":=[[Default]]))

/*CAPTION:Departmental Revenue Calc*/

FIX (/*DIM:Year*/{Year},/*DIM:Scenario*/"Plan",/*DIM:Version*/&CurVersion)

FIX ( /*DIM:Period*/"Jan":"Dec")

FIX ( /*DIM:Entity*/{Department})

FIX ( /*DIM:Product*/@CHILDREN("P_TP1"),@CHILDREN("P_TP2"))

/*CAPTION:Units*/

/*STARTCOMPONENT:FORMULA*/

"Units" = @ROUND("Units",0);

/*ENDCOMPONENT*/

/*CAPTION:Revenue*/

/*STARTCOMPONENT:FORMULA*/

"4110" = @ROUND("Units" * "ASP",2);

/*ENDCOMPONENT*/

/*STARTCOMPONENT:FORMULA*/
"4001";

/*ENDCOMPONENT*/

/*CAPTION:Cost of Sales*/

/*STARTCOMPONENT:FORMULA*/

"5110" = @ROUND("4110" * (1 - "Gross Margin %"),2);

/*ENDCOMPONENT*/

/*CAPTION:Gross Profit*/

/*STARTCOMPONENT:FORMULA*/

@IDESCENDANTS("GP");

/*ENDCOMPONENT*/

ENDFIX

FIX ( /*DIM:Account*/"Units",@IDESCENDANTS("GP"))

/*CAPTION:Rollup Product*/

/*STARTCOMPONENT:SCRIPT*/

CALC DIM ("Product");

/*ENDCOMPONENT*/

ENDFIX

ENDFIX

FIX ( /*DIM:Product*/@ICHILDREN("P_TP1"),@ICHILDREN("P_TP2"),"Total Product")

/*CAPTION:Backcalc ASP*/

/*STARTCOMPONENT:FORMULA*/

"ASP" = @ROUND("4110" / "Units",2);

/*ENDCOMPONENT*/

/*CAPTION:Backcalc GP%*/

/*STARTCOMPONENT:FORMULA*/

"Gross Margin %" = @ROUND("GP" / "4001",2);

/*ENDCOMPONENT*/

ENDFIX

ENDFIX
/*CAPTION:Sales Calls*/

/*STARTCOMPONENT:FORMULA*/

"Sales Calls";

/*ENDCOMPONENT*/

ENDFIX

REVENUE PLAN – SERVICE

SET UPDATECALC OFF ;

SET AGGMISSG ON;

SET CREATENONMISSINGBLK ON ;

FIX ({Year},"Plan",&CurVersion)

FIX ({Department})

FIX (@CHILDREN("P_TP3"))

"4120" = @ROUND("4110"->"P_TP1" * "BegBalance"->"Pct",2);

"4130" = @ROUND("4110"->"P_TP1" * "BegBalance"->"Pct",2);

"4140" = @ROUND("4110"->"P_TP1" * "BegBalance"->"Pct",2);

"4150" = @ROUND("4110"->"P_TP1" * "BegBalance"->"Pct",2);

"4001";

ENDFIX

FIX (@CHILDREN("P_TP3"))

"5110" = @ROUND("4001" * "5110"->"BegBalance"->"Pct",2);

@IDESCENDANTS("GP");

ENDFIX

ENDFIX

FIX (@IDESCENDANTS("GP"))

CALC DIM ("Product","Entity");

ENDFIX

ENDFIX
SALARY FORECAST

%Template(name:="SET commands",application:="",plantype:="",dtps:=("UPDATECALC":=[[Calculates
all data blocks]],"AGGMISSING":=[["Consolidate #MISSING values in the database"]],"CACHE":=[[No
changes (Use System
default)]],"CALCPARALLEL":=[[Default]],"CALCTASKDIM":=[[]],"CLEARUPDATESTATUS":=[[Default]],"C
REATEBLOCKONEQ":=[[Default]],"CREATEONMISSINGBLK":=[[Default]],"EMPTYMEMBERSETS":=[[Def
ault]],"FRMLBOTTOMUP":=[[Default]],"FRMLRTDYNAMIC":=[[Default]],"LOCKBLOCK":=[[No changes
(use system default)]],"MSG":=[[Default]],"NOTICE":=[[No changes (Use
default)]],"REMOTECALC":=[[Default]]))

FIX
(/*DIM:Scenario*/&CurForecast,/*DIM:Version*/{Version},/*DIM:Entity*/{Department},/*DIM:Prod
uct*/"P_000")

"5800"(

IF ((@ISMBR(&QRFYr1) AND @ISDESC(&QRFPer1)) OR (@ISMBR(&QRFYr2) AND


@ISDESC(&QRFPer2)) OR (@ISMBR(&QRFYr3) AND @ISDESC(&QRFPer3)) OR (@ISMBR(&QRFYr4)
AND @ISDESC(&QRFPer4)))

/*CAPTION:Salaries*/

/*STARTCOMPONENT:FORMULA*/

"5800" = @ROUND("9000" * "Average Salaries",2);

/*ENDCOMPONENT*/

/*CAPTION:Employee Benefits*/

/*STARTCOMPONENT:FORMULA*/

"6100" = @ROUND("5800" * "Employee Benefits %",2);

/*ENDCOMPONENT*/

ENDIF

/*CAPTION:Employee Expenses*/

/*STARTCOMPONENT:FORMULA*/

"6000";

/*ENDCOMPONENT*/
ENDFIX

SALARY PLAN

FIX (/*DIM:Year*/{Year},/*DIM:Scenario*/"Plan",/*DIM:Version*/{Version})

FIX ( /*DIM:Entity*/{Department}, /*DIM:Product*/"P_000")

/*CAPTION:Salaries*/

/*STARTCOMPONENT:FORMULA*/

"5800" = @ROUND("9000" * "Average Salaries",2);

/*ENDCOMPONENT*/

/*CAPTION:Employee Benefits*/

/*STARTCOMPONENT:FORMULA*/

"6100" = @ROUND("5800" * "Employee Benefits %",2);

/*ENDCOMPONENT*/

/*CAPTION:Employee Expenses*/

/*STARTCOMPONENT:FORMULA*/

"6000";

/*ENDCOMPONENT*/

ENDFIX

ENDFIX

You might also like