上传的图像用于项目: 'CST技术支持'
  1. CST技术支持
  2. SLAL2-1895

对自定义经济补偿年限字段增加逻辑

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202102
    • K-康宏信息-Y2020029
    • 康宏
    • 基础通用功能
    • 隐藏

      for record in self:
      rule_obj = self.env['hr.holiday.rule.function']
      local_time = time.localtime()
      income_work_time = time.strptime(record.hiredate, "%Y-%m-%d")
      value = (time.mktime(local_time) - time.mktime(income_work_time)) / float(365 * 24 * 60 * 60)
      inner_working_age = rule_obj.compatibility_precision_round(value,0.5,'up')
      record['x_jjbcnx'] = inner_working_age

      显示
      for record in self: rule_obj = self.env ['hr.holiday.rule.function'] local_time = time.localtime() income_work_time = time.strptime(record.hiredate, "%Y-%m-%d") value = (time.mktime(local_time) - time.mktime(income_work_time)) / float(365 * 24 * 60 * 60) inner_working_age = rule_obj.compatibility_precision_round(value,0.5,'up') record ['x_jjbcnx'] = inner_working_age

      因系统员工档案自带的公司年限字段逻辑与客户薪资经济补偿金年限的实际需求不符,公司年限字段逻辑是0.5颗粒度,向下进位,客户的补偿金年限逻辑是0.5颗粒度,向上进位,进位规则不一致,所以另外增加一个自定义字段,需要CSC协助在新增字段逻辑写为:0.5颗粒度,向上进位

            wenqiang.liu 刘文强
            sandy.huang 黄燕妃
            表决:
            0 为这个问题表决

              创建日期:
              已更新:
              已解决: