I have a database of employees with their salary and other perks included. When I make their salary slip each month the amount is calculated based on the basic pay and their perks which includes housing allowance, transportation allowance and couple other allowances. When I make a change on any of the allowances from now onwards the calculation is affected for the previous months as well. How can I prevent this happening. How can the previous months pay slip stay with the previous allowance as it was and the new calculation affects from the current month onwards? Thank you.