Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
We are looking for in addition to the payslip totals for the given pay period, Year to date totals for the given deductions. What would be the best way of going about this on the reports? Could it be done by just modifing the report or would it require changes to the python module code as well?
Originally posted by Mustufa Rangwala on OpenERP community list
To calculate YTD Income you can use sum method on available objects in your expression.
sum() method available for three objects/variables i.e.payslip, worked_days, inputs.
They are : payslip.sum(code, from_date, to_date) worked_days.sum(code, from_date, to_date), inputs.sum(code, from_date, to_date)
Where Code is Salary rule code and Dates are begin and Ending Date (Start Period and Current Period dates.)
For example: If you want to sum all gross amount between Jan to Dec 2012. You can just create one salary rule with expression payslip.sum('GROSS', 01/01/2012, 31/12/2012).
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/11/13, 11:25 AM|
|Seen: 4462 times|
|Last updated: 12/30/15, 3:39 PM|