kis专业版单据自定义中打开销售订单,保存时报错:单据头上字段【收货地址】,在单据套打模板中名称存在重复?
服务热线:400-665-0027
新购有特价、金蝶老客户升级金蝶云产品可以享受5折优惠,送手机、送话费,好礼不断!
【问题描述】
专业版单据自定义中打开销售订单,保存时报错:单据头上字段【收货地址】,在单据套打模板中名称存在重复,请更改为其他名称。如下图所示:
【原因分析】
销售订单的套打字段中,收货地址字段存在重复数据导致。
【解决方案】
可参考以下脚本执行处理:
if exists(select 1 from GLNoteCitation a where ftemplateid='S01' and fcitationname='收货地址$' having count(1)>1 )
begin
delete a
from GLNoteCitation a where ftemplateid='S01' and fcitationname='收货地址$' and fid in(
select max(fid) from GLNoteCitation where ftemplateid='S01' and fcitationname='收货地址$')
end

