[jira] [Updated] (OFBIZ-5185) Unable to delete rate associated with employee position

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-5185) Unable to delete rate associated with employee position

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-5185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Ishchenko updated OFBIZ-5185:
----------------------------------

    Attachment: OFBIZ-5185_delete_employee_position_rate.patch

Deleting employee position rate involves such flow:

deleteEmplPositionTypeRate->deleteRateAmount

deleteRateAmount expects periodTypeId parameter but deleteEmplPositionTypeRate doesn't have it. So RATE_HOUR is used and deleteRateAmount can't find specific RateAmount to update its ThruDate.

This fix adds parameter periodTypeId to deleteEmplPositionTypeRate method so it can be passed to deleteRateAmount
               

> Unable to delete rate associated with employee position
> -------------------------------------------------------
>
>                 Key: OFBIZ-5185
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5185
>             Project: OFBiz
>          Issue Type: Bug
>          Components: humanres
>    Affects Versions: SVN trunk
>            Reporter: Igor Ishchenko
>         Attachments: OFBIZ-5185_delete_employee_position_rate.patch
>
>
> Prerequisites:
> Valid Employee, Employment, Employee Position.
> No Rates created for Employee Position
> Step to reproduce:
> 1. Go to HR->"Global HR Settings"
> 2. Select "Position Types"
> 3. Search for employment position
> 4. Select employment position
> 5. Go to "Position Type Rate"
> 6. Create new position type rate with some amount and Position Type Id other than "Rate amount per hour"
> 7. Go to employee with selected position, observe that salary is correctly set
> 8. Delete created position type rate
> Actual result:
> Employee still has salary field set to created rate amount
> Expected result:
> Employee salary field should be empty

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira