Update Entity Models - tblPREmployeeEarning.dblRateAmount

Issue No: EM-759
Created 12/2/2015 7:50:52 PM
Type Task
Priority Major
Status Closed
Resolution Fixed
Fixed Version 15.4
Description To update Entity Employee Earning models with field dblRateAmount.   Add *dblRateAmount* field to entity earning models. If dblAmount is edited or Linked Earning is changed, the value of dblRateAmount is recalculated.   \{ name: 'dblRateAmount', type: 'float', convert: function (val, rec) \{ if(((rec.get('strCalculationType') === 'Overtime') \|\| (rec.get('strCalculationType') === 'Rate Factor')))\{ var link = rec.get('dblEarningLinkAmount') \|\| 0; return link * rec.get('dblAmount'); \} return rec.get('dblAmount'); \} \},     set: function(fieldName, value) \{ this.callParent(arguments); switch (fieldName) \{ case 'dblDefaultHours': \{ this.set('dblHoursToProcess'); break; \} case 'dblAmount': case 'dblEarningLinkAmount': \{ this.set('dblRateAmount'); break; \} \} \},     *dblRateAmount* field should be binded to the Amount column (currently dblCalculatedAmount) on Employee Earning Tab   !pastedImage_d48267_0.png!