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

惠灵顿,e表单-课外辅导津贴-总津贴字段逻辑新增

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202009
    • Y-易路产品-
    • 基础通用功能
    • 隐藏

      for record in self:
      if record.x_fd_2019_0033 == 'x_fd_2019_00331':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*165
      elif record.x_fd_2019_0033 == 'x_fd_2019_00332':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*110
      elif record.x_fd_2019_0033 == 'x_fd_2019_00333':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*440
      elif record.x_fd_2019_0033 == 'x_fd_2019_00334':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*380
      elif record.x_fd_2019_0033 == 'x_fd_2019_00335':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*320
      elif record.x_fd_2019_0033 == 'x_fd_2019_00336':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*780
      elif record.x_fd_2019_0033 == 'x_fd_2019_00337':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*320
      elif record.x_fd_2019_0033 == 'x_fd_2019_00338':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*250
      elif record.x_fd_2019_0033 == 'x_fd_2019_00339':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*440
      elif record.x_fd_2019_0033 == 'x_fd_2019_003310':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*380
      elif record.x_fd_2019_0033 == 'x_fd_2019_003311':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*320
      elif record.x_fd_2019_0033 == 'x_fd_2019_003312':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*44
      elif record.x_fd_2019_0033 == 'x_fd_2019_003313':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*500
      elif record.x_fd_2019_0033 == 'x_fd_2019_003314':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*300
      elif record.x_fd_2019_0033 == 'x_fd_2019_003315':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*150
      elif record.x_fd_2019_0033 == 'x_fd_2019_003316':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*50
      elif record.x_fd_2019_0033 == 'x_fd_2019_003317':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*200
      elif record.x_fd_2019_0033 == 'x_fd_2019_003318':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*143
      elif record.x_fd_2019_0033 == 'x_fd_2019_003319':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*80
      elif record.x_fd_2019_0033 == 'x_fd_2019_003320':
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*54
      else:
      record['x_fd_2019_0035'] = record.x_fd_2019_0010*0

      显示
      for record in self: if record.x_fd_2019_0033 == 'x_fd_2019_00331': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*165 elif record.x_fd_2019_0033 == 'x_fd_2019_00332': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*110 elif record.x_fd_2019_0033 == 'x_fd_2019_00333': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*440 elif record.x_fd_2019_0033 == 'x_fd_2019_00334': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*380 elif record.x_fd_2019_0033 == 'x_fd_2019_00335': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*320 elif record.x_fd_2019_0033 == 'x_fd_2019_00336': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*780 elif record.x_fd_2019_0033 == 'x_fd_2019_00337': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*320 elif record.x_fd_2019_0033 == 'x_fd_2019_00338': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*250 elif record.x_fd_2019_0033 == 'x_fd_2019_00339': record ['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*440 elif record.x_fd_2019_0033 == 'x_fd_2019_003310': record ['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*380 elif record.x_fd_2019_0033 == 'x_fd_2019_003311': record ['x_fd_2019_0035'] = record.x_fd_2019_0010/7.00*320 elif record.x_fd_2019_0033 == 'x_fd_2019_003312': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*44 elif record.x_fd_2019_0033 == 'x_fd_2019_003313': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*500 elif record.x_fd_2019_0033 == 'x_fd_2019_003314': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*300 elif record.x_fd_2019_0033 == 'x_fd_2019_003315': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*150 elif record.x_fd_2019_0033 == 'x_fd_2019_003316': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*50 elif record.x_fd_2019_0033 == 'x_fd_2019_003317': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*200 elif record.x_fd_2019_0033 == 'x_fd_2019_003318': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*143 elif record.x_fd_2019_0033 == 'x_fd_2019_003319': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*80 elif record.x_fd_2019_0033 == 'x_fd_2019_003320': record ['x_fd_2019_0035'] = record.x_fd_2019_0010*54 else: record ['x_fd_2019_0035'] = record.x_fd_2019_0010*0

      员工提出课外津贴申请,选择课程津贴类型,填写课程小时数,e表单中可自动计算出总津贴金额。
      现在增加了9个课程津贴类型,需要修改总津贴金额函数,把不同津贴类型的单价补充进去。课程津贴类型及单价见附件

        1. Copy of HR System Import.xlsx
          9 kB
          Yara
        2. image.png
          126 kB
          Yara
        3. image.png
          48 kB
          Yara
        4. image.png
          79 kB
          Yara

            wenqiang.liu 刘文强
            yara.chen Yara
            表决:
            0 为这个问题表决

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