FORMAT==100
SKIPCHECK;

#******************************************************
# Check if rules apply to this scenario
#******************************************************
#[]=N:
#  IF(ATTRS('Version', !Version, 'Link to Drivers') @= 'Y',
#    CONTINUE,
#    STET
#  );

['Actual']=STET;

['Last Yr Inc Amt']=N:
  DB('GL','Local', 'Budget Approved',ATTRS('FiscalYear', !FiscalYear, 'Prev'),'Total Year',!Department,!Region,!Account, 'Total Amount')
  * ['Last Yr Inc %'];

['Full Year Entry']=N:
  IF(['Last Yr Inc Amt'] <> 0,
    DB('GL','Local','Budget Approved',ATTRS('FiscalYear', !FiscalYear, 'Prev'),'Total Year',!Department,!Region,!Account,'Total Amount')
    + ['Last Yr Inc Amt'],
    STET
  );

['Last Yr Inc %']=C:0;

FEEDERS;

['Last Yr Inc %'] =>
  ['Last Yr Inc Amt'];

['Last Yr Inc %'] =>
  ['Full Year Entry'];

['Full Year Entry']=>
  DB('GL','Local',!Version,!FiscalYear,'Total Year',!Department,!Region,!Account,'Total Amount');
