financial and management accounting, Financial Management

the salaries paid in 2004 is rs 500000 outstanding is rs 20000 salaries paid in advance for 2004 is rs 30000 what is the actual salary expenditure for 2004 which accounting principle is involved in this and explain that principle?