fixes issue #9013: Salary calculation Error. (#9044)
fixes issue #9013: Salary calculation Error. (#9044)

* fixes issue #9013:
Salary calculation Error.

* adds test case for scenario as in #9013

geekroot/erpnext,geekroot/erpnext,gsnbng/erpnext,indictranstech/erpnext,indictranstech/erpnext,gsnbng/erpnext,indictranstech/erpnext,indictranstech/erpnext,geekroot/erpnext,gsnbng/erpnext,gsnbng/erpnext,Aptitudetech/ERPNext,geekroot/erpnext