灵当CRM

 找回密码
 立即注册
查看: 4337|回复: 0

服务合同和派工单的相关信息设置中如何显示费用报销单?

[复制链接]

1661

主题

1710

帖子

5万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
59645
 楼主| 发表于 2020-12-4 17:56:55 | 显示全部楼层 |阅读模式
服务合同和派工单的相关信息设置中如何显示费用报销单


打开navicat工具,新建查询,运行下面的sql语句
navicat数据库管理工具可以从官网 https://71mis.com/download/tools/ 下载,下载好后解压




select tabid into @tabid from ld_tab where name='project';
select max(relation_id) into @relation_id from ld_relatedlists;
update ld_relatedlists_seq set id=@relation_id+1  
where not exists (select 1 from ld_relatedlists  where tabid=@tabid and related_tabid=67)
and exists(select * from ld_option_module where tabid=67 and option_tabid=@tabid);

insert into ld_relatedlists(relation_id,tabid,related_tabid,`name`,sequence,label,presence,actions,type,related_coltable)
select @relation_id+1,@tabid,67,'get_expense',11,'Expense',1,'add','datacategory_sql','expensedetail.entitytypeid' from dual
where not exists (select 1 from ld_relatedlists  where tabid=@tabid and related_tabid=67) and exists(select * from ld_option_module where tabid=67 and option_tabid=@tabid);
delimiter;
select tabid into @tabid from ld_tab where name='projecttask';
select max(relation_id) into @relation_id from ld_relatedlists;
update ld_relatedlists_seq set id=@relation_id+1  where not exists (select 1 from ld_relatedlists  where tabid=@tabid and related_tabid=67) and exists(select * from ld_option_module where tabid=67 and option_tabid=@tabid);

insert into ld_relatedlists(relation_id,tabid,related_tabid,`name`,sequence,label,presence,actions,type,related_coltable)
select @relation_id+1,@tabid,67,'get_expense',12,'Expense',1,'add','datacategory_sql','expensedetail.entitytypeid' from dual
where not exists (select 1 from ld_relatedlists  where tabid=@tabid and related_tabid=67)
and exists(select * from ld_option_module where tabid=67 and option_tabid=@tabid);
delimiter;





服务合同和派工单相关信息设置显示费用报销单.sql (1.55 KB, 下载次数: 542)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

灵当CRM

GMT+8, 2024-4-19 22:35 , Processed in 0.053806 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2008-2022, Tencent Cloud.

沪ICP备08110973号-2

快速回复 返回顶部 返回列表