コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
14563 ビュー

I am new for OpenERP 7 Please help me... my doubt is i creating salary rule for unpaid leave for the following code "result=-(contract.wage/31)*worked_days.Unpaid.number_of_days"is working but it is not calculating in the net salary amount.. how to calculate it. my entry is correct or not experts use my openerp demo db username sridhartestopenerp@gmail.com password openerpmass please check it and tell the answer soon...

Regards Sridharan G Chennai

アバター
破棄

@sridhar finally solved Vote me Up if helped you ... http://help.openerp.com/question/16131/unpaid-leaves-deduction-not-working/

最善の回答

all you need is to change sequence of salary rule (Loss .. ) to be less than Net salary rule sequence and Gross see the not on

http: //doc.openerp.com/v7.0/book/4/4_11_HR/4_11_HR_payroll.html#salary-rule-categories

I can not post right like please modify it and see ,

Note: Sequence

Sequence plays a major role in the calculation and appearance of payslip lines. For example, a sequence defined on a rule calculating the Gross should always be greater than the sequence’s given on Allowance’s rules, else it won’t be considered in the calculation of Gross value.

アバター
破棄
著作者

Thank you Maath, now it is working correctly. sequence number is a problem. now solved.

@sridhar My pleasure that my effort helped you , can you select my answer as the solution

著作者

Very thankful for your help...

@sridhar Thanks , But why do not tic my answer as the solution and vote up my answer ?

著作者

Mr. Maath one more problem is there, if that employee didn't put any leave for a particular month this Loss of pay concept didn't work. i need if employee get leave means Lop calculation otherwise it is not needed. I think i need to change in Condition is changed to Python Expression its correct.

@sridhar you need to post new question about the condition when to apply this rule , of course you need to put python code to check total leave for employee . Please send me the link of your question after post it.

著作者

Error! Wrong python condition defined for salary rule this link, i cant post a link this a title of the error solve it please.

@sridhar , I am too now have the same error ! even when calculate for new month (Next month) there is wrong result (Sum (all of leave )) we need to Sum of leave for that month only

@sridhar , But when I create Payslips Batch the operation completed without any error! can you try that and then writ new question here so we will find some one solve this problem .

著作者

i can't do further process please do my demo database sridhartestopenerp@gmail.com password openerpmass db kgsridhar put one entry i will understand please do.

@sridhar I will do Are you ready ?

著作者

u put entry i will see now...

著作者

create one new employee or existing employee...

@sridhar No, You can do it just create new Payslips Batch

著作者

ok i put entry...

著作者

Error only comming...

Finally I solved the problem Vote me up if helped http://help.openerp.com/question/16131/unpaid-leaves-deduction-not-working/

関連投稿 返信 ビュー 活動
0
5月 22
3102
1
5月 22
2626
1
1月 22
2328
1
10月 21
14823
2
1月 24
14947