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

【康得新】,调岗调薪流程(员工异动),需要根据最后审批的日期进行判断更新生效日期

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: High High
    • 202103
    • 202103
    • K-康得新-Y2020026
    • 康得新生产
    • 基础通用功能
    • 隐藏

      代码:

      today = datetime.datetime.now()
      the_month = today.month
      the_year = today.year
      the_day = 1
      if today.day > 15:
      if the_month==12:
      the_month=1
      the_year += 1
      the_day = datetime.datetime(the_year,the_month,the_day).strftime('%Y-%m-%d')
      current_approve_instance.write({
      'transfer_date': the_day
      })

      显示
      代码: today = datetime.datetime.now() the_month = today.month the_year = today.year the_day = 1 if today.day > 15: if the_month==12: the_month=1 the_year += 1 the_day = datetime.datetime(the_year,the_month,the_day).strftime('%Y-%m-%d') current_approve_instance.write({ 'transfer_date': the_day })

      康得新生产站,调岗调薪流程(员工异动)
      需要根据最后一步审批的日期进行判断并更新生效日期字段。
      如果最后一步审批的日期小于等于15号,则生效日期更新为最后一步审批日期当月1号,
      如果最后一步审批的日期大于15号,则生效日期更新为最后一步审批日期次月1号。

            grant.yang 杨光磊
            yuy 俞龑
            表决:
            0 为这个问题表决

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