Hi All,
One of our scripts calculates different values based on base revenues - discounts, excise, know how fee, unpaid receivables etc.
*XDIM_MEMBERSET TIME = 001.2016
*XDIM_MEMBERSET CATEGORY = BUDGET
*XDIM_MEMBERSET ENTITY = BAS(ENTITY_ALL)
*XDIM_MEMBERSET PRODUCT = BAS(PRODUCT_ALL)
*XDIM_MEMBERSET ACCOUNT = REVENUE_BASE
*WHEN ACCOUNT
*IS REVNEUE_BASE
*REC(FACTOR=([ACCOUNT].[PERC_DISCOUNT_001],[ENTITY].[NO_ENTITY]),ACCOUNT=DISCOUNT_001_VALUE)
*REC(FACTOR=([ACCOUNT].[PERC_DISCOUNT_002],[ENTITY].[NO_ENTITY]),ACCOUNT=DISCOUNT_002_VALUE)
*REC(FACTOR=([ACCOUNT].[PERC_DISCOUNT_900].[ENTITY].[NO_ENTITY]),ACCOUNT=DISCOUNT_900_VALUE)
*REC(FACTOR=([ACCOUNT].[EXCISE_RATE],[PRODUCT].[NO_PRODUCT],[ENTITY].[NO_ENTITY]),ACCOUNT=EXCISE_VALUE)
*REC(FACTOR=([ACCOUNT].[KNOW_HOW_FEE],[PRODUCT].[NO_PRODUCT]),ACCOUNT=KNOW_HOW_VALUE
*ENDWHEN
We would like to calculate values based on values passed by user in executing package box.
Let say, user chose EXCISE_RATE and KNOW_HOW_FEE - we don't want to calculate discounts at all (so existing values will be left in model)
Is it possible to do this using logic script? one of our ideas was change "sides" in script and multiply "factors" per REVENUE_BASE - but it would extend our code a lot... and what's more - it would be allocation, because most of the factors are "one value", and REVENUE_BASE value is per product, entity etc...