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

Pro【曼伦】薪资批次审批通知显示对应薪资期间

XMLWord打印

    • M-曼伦-Y2021036
    • PRO
    • manluntest
    • 基础通用功能
    • 隐藏
      # 先设置个默认值
      result = ''
      
      a = env.cr.execute
      # 获取薪资批次的json_data数据
      data = record.get_json_data()
      # 取出data中的批次的值
      batchId = data.get('batchId', False)
      if batchId:
      	a("""select periods.period_name from batches
      	        left join (select id,coalesce(to_char(salary_month,'YYYYMM'), name) as period_name,
                      coalesce(to_char(tax_month, 'YYYYMM'), '0')::int new_tax_month,
                      coalesce(to_char(salary_month,'YYYYMM'),'0')::int new_salary_month from periods) periods
                  on batches.period_id=periods.id where batches.id=%s""",(batchId,))
          res = env.cr.fetchone()
          if res:
            result = res[0]
      
      显示
      # 先设置个默认值 result = '' a = env.cr.execute # 获取薪资批次的json_data数据 data = record.get_json_data() # 取出data中的批次的值 batchId = data.get( 'batchId' , False) if batchId: a("""select periods.period_name from batches left join (select id,coalesce(to_char(salary_month, 'YYYYMM' ), name) as period_name, coalesce(to_char(tax_month, 'YYYYMM' ), '0' ):: int new_tax_month, coalesce(to_char(salary_month, 'YYYYMM' ), '0' ):: int new_salary_month from periods) periods on batches.period_id=periods.id where batches.id=%s""",(batchId,)) res = env.cr.fetchone() if res: result = res[0]

      目前通过get_json_data(),在占位符中已拿出薪资方案名称

      但是通过该方法拿出的数据中未看见薪资期间字段,因此占位符根据该方法无法取出薪资期间字段

      期望占位符可通过其他方式取出薪资期间字段数据

            ling.chen 陈灵娟
            xin.li 李欣
            表决:
            0 为这个问题表决

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

                预估时间:
                初始预估 - 尚未指定
                尚未指定
                剩余:
                剩余的估算 - 0小时
                0小时
                实际工作时间:
                耗费时间 - 1.5小时
                1.5小时