基于excel合并报表的预算汇总审批升级


TSYS_DATA_DEFINITION

FTMS TASK_KIND SUM 汇总审批 8 任务种类 S

FTMS BILL_FLAG SUM 汇总审批 9 单据状态 S


预算审批 增加条件 bill_flag in ('sum')

VBILL_TASK 增加 TFORM 表字段 TFORM.FORM_BAK


增加外部数单据号 传入 $G_BILL_IDS 格式为 ‘ID0001’,‘ID0002’


汇总审批

select  bill_no,bill_template_name,bill_department_name,bill_project_name,bill_user_name,bill_submit_user_name,bill_submit_datetime,bill_amount,bill_acc_amount,bill_apply_no,bill_remark,bill_flag_name,bill_current_headship_name,bill_id,task_id   from  vbill_task    where task_kind not in ('JZ') and  BILL_HS_SYSTEM = '$G_HS' and FORM_CODE in ('140724-1')  and   bill_flag  in ('sum')    and   task_type <> 'c'   and   task_status = 'n' order by bill_no desc


汇总已审批

select  bill_no,bill_template_name,bill_remark,bill_department_name,bill_project_name,bill_user_name,bill_submit_datetime,bill_amount,bill_acc_amount,bill_strick_amount,bill_flag_name,bill_current_headship_name,bill_id,task_id  from VBILL_TASK  where      form_code in ('140724-1') and task_type <> 'c'    and   task_status <> 'n'  and   task_last_user = '$g_user' order by bill_no desc

wKioL1R1Ip6BXP_sAAMZCBiHCLw478.jpg

本文出自 “德润软件开发” 博客,谢绝转载!

你可能感兴趣的:(Excel,where,预算,种类)