EXPENDING BUDGET TREND
Today i extended further to cater for more trend rules such as shown below.

- Screen Shot 2014-04-03 at 4.56.16 PM.png (24.3 KiB) Viewed 36620 times

- Screen Shot 2014-04-03 at 4.57.00 PM.png (15.02 KiB) Viewed 36620 times
Now we have few more trends to give more versatile revenue forecasts that will form the base amount when doing budget checking with percentages. Below is the code done to handle this. They are not tested as yet.

- Screen Shot 2014-04-03 at 6.32.12 PM.png (289.66 KiB) Viewed 36620 times
To explain further on the trends:
1. Average is the simple yearly average of all the amounts within the Years Forecast range given. It can range up to 99 years! Any figure from 100 onwards will be a exact revenue estimate for the present year to base on. Otherwise the average becomes the revenue estimate.
2. Average+Last is the average added on top of last year's revenue. This will give a projected or higher estimate for this year compared to last year.
3. Progressive is the rate of change from first year till last year within range, and that rate applied to last year's revenue. Now this needs testing as i m not sure i got the formula right (you can see the code snap shot above).
4. Accumulative is adding up all the revenues within the years range stated in the Years Forecast field. Thus this should be used sparingly or for very short range.
5. Year-to-date is the present year (this year) revenue to date. This mean it is most appropriate when used with percentages and it is like a 'startup' company growing along according to what it earned rather than what it did not earn.
Of course these are just control options and I may think of a way where excess expense will not stop the purchasing or GL posting but just flash a pop up warning. (Hopefully because i have yet to know how to do that!).