你好 我U8刚装好 连不上服务器
2019-1-30 18:6:0 用友T1小编你好 我U8刚装好 连不上服务器
你好 我U8刚装好 连不上服务器[]1.检查服务器的机器名和IP是否改变
2.若是服务器本机登陆,服务器直接输入127.0.0.1进行登陆
3.应用服务器配置中删除数据源重新增加一条数据源--你好 我这台是应用客户端@墨西哥春卷:服务器本机可以登陆只有客户端不能登陆,请参考以下进行排查:
1.客户端PING服务器看网络是否畅通
2.网络是通的客户端的Hosts文件中添加服务器的IP地址和机器名
3.检查客户端和服务器是否补丁更新一致
排查思路:http://www.kuaiji66.com/service/shiyongjiqiao/changjiefu207_3751.html
如果您的问题还没有解决,可以到 T+搜索>>上找一下答案
相关阅读
- 主机可以登录,, 但是客户端 局域网的登陆提示错误如下:2019-1-30 18:6:0
- 你好 服务器能登录 但客户端登录不了 hosts文件也已修改2019-1-30 18:6:0
- 您好,昨天下午T3突然不能用了,服务器端能正常登入,但是客户端点击图标后,无登入界面跳出,再次点击快捷图标就提示“门户已运行”,客户端无法登入,请问是什么问题?2019-1-30 18:6:0
- 我在电脑中安装了T3软件,用台式机作为服务器,另外2台笔记本作为客户端,台式机子和笔记本都在单位局域网中,但安装好后,单位局域网中别的机子可以通过审计大师,新纪元审计软件搜索到帐套并能导出帐套,应如何在服务器设置2019-1-30 18:6:0
- t3 标准版 服务端正常使用 计算机更改过名字 客户端连接不上服务器 ip可以ping通 host文件进行了修改 注册表的计算机名字也修改了 还是无法找到服务器 请问还有哪里有问题呢 ?-怎么解决呢2019-1-30 18:6:0
- T3 登录服务器时提示:发送请求错误,不能登录到服务器,有几种原因呀2019-1-30 18:6:0
- t3客户端 一直显示门户已运行, 每个客户端都是2019-1-30 18:6:0
- T3客户端,连接服务器的时候提示如图。HOSTS已配,防火墙已关闭。2019-1-30 18:6:0
- 安装10.9提示4.0安装失败2019-1-30 18:6:0
- 客户使用的是T3 10.9,服务器端操作系统是win7 64位,数据库按装的是SQL 2005,服务器端可以正常登陆和操作,其它客户登陆不上去,局域网是通的,也可以查找到服务器主机名,共享文件也可以打开。但是,客户端登陆时提示“错误:不能发送请求” 不能连接到服务器,没有安装T3产品或者数据服务没有启动。2019-1-30 18:6:0
最新信息
- 计算机名字更改了。hots配置了。ping的通。就是链接不上。什么原因
- 两台客户端,一个可以正常使用,另一个能ping通,当时不能使用
- 客户端 登录界面 选择服务器名 时 一直卡着。怎么解决呢
- 客户端是win7的64位的系统,配置host文件是在什么文件家里面?
- 客户端登陆不到提示端口不通。然后我将防火墙关闭,然后添加端口。依然提示如此。请问要怎么解决
- 客户端连接服务器的时候报错,是什么原因?
- 客户端连不上服务器。2005数据库
- 买的是T3 多站点的,现在服务器已安装成功,但我在客户端电脑安装的时候,在客户端电脑只安装了T3。没有安装数据库,提示我连接不上服务器。之后我安装的数据库,又提示我,“帐套是以前版本的数据,要用系统管理升级,”这怎么解决,到底该如何在客户端安装T3
- 工程师你好!- 我的电脑是服务器,我的1个同事利用局域网上T3系统,现在问题是她打开t3系统显示系统已运行,无法打开账套,我公司使用本系统就我们两个,这是何原因啊?麻烦给解决一谢谢!
- 你好,T3系统管理可以打开并设置,但T3主系统打开没反映,报错-不能找到UFSystem或Account表库,可能是安装没有正常完成,或没有进行初始化,请运行行系统管理进行安装后的初始化。望协助,谢谢
工作圈,同一个公司,已经有一个帐套01开通了工作圈,现在02帐套也想开通工作圈,在开通时自动都转到了01帐套的工作圈,如何开通02帐套的工作圈,谢谢! 工作圈,同一个公司,已经有一个帐套01开通了工作圈,现在02帐套也想开通工作圈,在开通时自动都转到了01帐套的工作圈,如何开通02帐套的工作圈,谢谢![]
您是用的同一个工作圈账号开通的吧,开通后在工作圈中可以切换不同账套的圈子,如图用同一和不同工作圈账号开通都是转到了01帐套,感觉就像02帐套没有和工作圈对接成功一样,手机上点T+审批 显示没有找到对应的帐套进入工作圈 下拉选不到02账套吗能选择到,但点T+审批时,就显示 没找到对应的帐套, 选择01时,点T+审批正常这个操作员有02账套审批的权限吗?@畅捷服务陈玲: 好像没有、帐套审批是 在那里审批您需要在账套中,点击系统管理——用户权限,选择操作员或所在的组进行授权。@畅捷服务陈玲: 是这个界面吗、里面没有关于帐套。或者工作圈开通权限设置您要审核什么单据,在单据对应的授权详情里勾上审核按钮即是。@畅捷服务陈玲: 你说的帐套审批什么的、没有、 即使用管理员用户去开通02帐套的工作圈,他还是跳转到了01的工作圈里@畅捷服务陈玲: 现在就是无论用哪个用户来开通02帐套的工作圈、都会自动跑到了01帐套里、 02帐套的工作圈开不起来02账套是通过01账套的备份数据恢复进来的吗?@畅捷服务陈玲: 是的、 估计问题在这,这个怎么解决如果是直接备份恢复的账套,只有一个账套可以开通工作圈。@畅捷服务陈玲: 哦、明白了、非常感谢不客气。[/微笑]
当下,很多企业开始线上线下两条腿拓展市场,不知道U8+在这方面有没有合适的解决方案? 当下,很多企业开始线上线下两条腿拓展市场,不知道U8+在这方面有没有合适的解决方案?
您说的很对,当下,越来越多的企业开始重视电子商务的应用,企业开始线上线下两条腿拓展市场,为满足传统生产企业通过电商平台销售产品管理需要,U8+通过构筑“电商订单中心”,为企业提供多渠道的B2C销售平台,具体应用方案如下:
1)?支持多电商营销:U8+电商订单中心与U8销售、库存、收付等业务紧密衔接和订单完美集成,帮助企业实现了电商订单与U8业务的一体化应用。企业可以同时在多家商务平台进行线上销售,加快了订单处理节奏,实现了准确及时发货,更好支撑前端的销售。?
2)?统一的基础信息管理:U8+电商订单中心的基础信息,包括店铺档案、商品档案、快递公司等基础档案信息,与U8基础数据进行统一管理,有效减少了企业基础信息的重复录入和差错率。
3)?订单处理效率大幅提升:U8+电商中心可定时从电商平台下载订单,或者根据条件手工下载,提供正常订单免审,异常订单客服、财务审核,生效同步销售订单;可以根据发货单仓库拣、发货扫描处理业务,从而做到快速发货,及时送货,提高客户满意度。
4)?财务对帐更加方便:U8+支持电商订单的财务审核、以及开票。支持导入支付宝等第三方支付平台的收付明细数据,并据此进行对账,核对结果生成应收模块的收款单。对于订单收款、货到付款两种收款方式下已经收款到账的数据,自动生成应收模块的收款单后,自动与商城的应收账款进行核销。
- t6客户端连接不到服务器,在客户端那直接输服务器ip地址也不行,提示连接不到数据库,会不会装了sql2005的缘故,要哪里设置下允许网络访问?防火墙都关了的,以前装sql2000没这问题的
- t6客户端之前都能登录,今天打开双击,没有任何反应。没有报错也没有任何界面。重启电脑也不能登录。请问是什么原因?
- 安装10.9提示4.0安装失败
- 你好 我U8刚装好 连不上服务器
- 你好老师,正常登录的时候提示这个窗口是怎么回事呢
- 你好,为什么T3客户端会提示 检测到用友通服务没有启动,怎么处理,
- 由于电脑硬盘直接损毁,现需重新安装T3普软件,安装好后连接不上服务器,也不知道怎么重新登录,麻烦解决下这个问题。
- 这是什么问题,为什么连接不到服务器
- 这是什么原因?软件用一会就会弹出
- 你好,请问,我在登录客户端时选不到服务器,客户端能ping通服务器,服务器和客户端的防火墙都是关闭的,host也配置了,怎么处理谢谢
哪些凭证是业务模块生成 哪些凭证是业务模块生成
问题号: | 40496 |
---|---|
适用产品: | T十系列 |
软件版本: | T+ 11.5 |
软件模块: | 总账-凭证 |
问题名称: | 哪些凭证是业务模块生成 |
问题现象: | 如何查看到哪些凭证是业务模块制单生成的? |
问题原因: | 见问题答案 |
关键字: | 凭证来源 |
解决方案: | <P>在凭证管理中通过“来源类型”进行查询。</P> <P>点击“总账”—“凭证”—“凭证管理”,打开之后,点击“滤设”将“来源类型”勾上显示,然后通过来源类型为业务进行查询即可。</P> |
行业: | 通用 |
补丁编号: | |
解决状态: | 最终解决方案 |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
送餐业务该征增值税还是营业税 送餐业务该征增值税还是营业税
【问题】
随着人们工作节奏的加快,不少机关及企事业单位都相继推出了干部、职工午间免费工作餐以提高工作效率。其中,部分单位的工作餐由相应的快餐企业或个人递送。在这种送餐业务中,是该征收,还是该征收呢?
【解答】
根据《国家总局关于饮食业征收流转税问题的通知》(国税发[1996]202号)的规定,是否征收营业税主要是看送餐企业是否是饮食业人。而在《国家税务总局关于餐饮公司送餐业务有收问题的批复》(国税函[2009]233号)中,这一规定进一步得到明确:百胜餐饮(广东)有限公司主要经营中西餐饮服务,制作餐厅食品及冷热饮料,其设立非独立核算分支机构从事“必胜宅急送”业务,提供餐饮食品的送餐服务,其营业范围、食品制作工艺、操作流程及原材料成本构成与传统餐饮服务基本相同。因此,对该公司取得的餐饮食品送餐收入不征收增值税,应征收营业税。
- 10.6.1客户端访问不了服务器,互相能PING通,并且在一个网段下,同时防火墙也关闭了,杀毒软件也关闭了。远程访问服务也是打开的,防火墙接入回应也打开了
- Win7 64位系统安装T3标准版客户端连接不上服务器怎么解决?客户端,服务器都是win7 64位系统
- 为什么T3在局域网内无法联机呢?主机分机全部关闭防火墙退出杀毒软件了,登陆客户端的T3提示T3已停止。。。。。
- 提示服务没开启??
- T3-财务通普及版 10.8plus 1-系统重启后出现问题-打开服务器的系统管理时提示:不能登录到服务器:主机名failed:不能发送请求。-打开T3服务器上的客户端提示:程序检测到“用友通”服务没有开启,请问是否开启?-如果点开启,那系统管理和客户端就又可以正常使用了,但是没回系统重启后都有这问题
- T310.2plus 数据库是S2000 客户端无法访问到服务器, 服务器里面T3能正常运行 。开机时未填数据库口令或者数据库口令填错了。
- T3如何配置客户端
- t3客户端总是连接不上服务器,在同一个局域网,也都关了防火墙,也固定了ip地址,拼ip地址和计算机名都能拼通,就是连接不到服务器,是怎么回事?
- T3新装客户端,找不到服务器电脑名称。同一个局域网内。
- T3普及,提示如下
纳税人如何办理申报纳税 _0纳税人如何办理申报纳税
国税发[2000]211号文规定,车购税具体征管程序暂比照车购费的有关规定执行,因此申报缴税与申报缴费的程序基本一致。具体说,纳税人要带齐车辆价格证明、纳税人身份证明以及其他资料,到车辆注册地原车购费稽征机构填写车购税申报审核表,经审核批准后到指定地点缴纳车购税,代征部门开具由交通部统一印制的车购税收据,核发国家税务总局统一印制的车购税完税证明,并加盖“车辆购置税征税专用章”或“车辆购置税免税专用章”。纳税人取得完税证明后,即可将副本交公安车管部门办理登记注册手续。
向个人贷款的利息能否税前扣除 向个人贷款的利息能否税前扣除
问题:向个人贷款的利息能否税前扣除?
解答:根据《国家总局关于企业向自然人借款的利息支出税前扣除问题的通知》(国税函〔2009〕777号)规定:企业向股东或其他与企业有关联关系的自然人借款的利息支出,应根据《中华人民共和国企业所得》(以下简称税法)第四十六条及《部、国家税务总局关于企业关联方利息支出税前扣除标准有收政策问题的通知》(财税〔2008〕121号)规定的条件,计算企业所得税扣除额。
- 你好,请问,我在登录客户端时选不到服务器,客户端能ping通服务器,服务器和客户端的防火墙都是关闭的,host也配置了,怎么处理谢谢
- 分机连接不到主机,如何配置Hotos文件(主机IP:192.168.1.202 主机名称:YY),SQL2005的协议也打开了,防火墙关闭了。
- 请问一下,T6的人事系统连不上服务器(不同网段,但是可以ping通,防火墙,日期格式都好的),应该怎么设置?
- 我在电脑中安装了T3软件,用台式机作为服务器,另外2台笔记本作为客户端,台式机子和笔记本都在单位局域网中,但安装好后,单位局域网中别的机子可以通过审计大师,新纪元审计软件搜索到帐套并能导出帐套,应如何在服务器设置
- 重新安装的T3后(是把过去T3卸载安装的没有备份),在SQL里把原路径账套Admin-ZT001里的MDF文件做了附加,在SQL企业管理里有数据库ZT001但打开T3文件却没有ZT001账套。请问如果设置可以打开T3软件也显示原账套ZT001-
- 系统重装后,原来的帐套没有了怎么办?
- 刚才我问的还是不具体,我是原来的7个账套,没有做任何备份,只有看到账套安装目录下的数据库和相应年份的数据表,怎样恢复成账套?
- T3在恢复实体文件之后有一个账套不显示, 实体已经恢复在数据库 system看不到 这个要在数据库里面添加年度吗
- 有记账宝2g的程序包吗?
- 出现客户端版本低,是否升级?是直接升级的吗,数据会出现问题的吗
有没有深圳同城会啊 有没有深圳同城会啊[]
QQ群号:101134126@凡人不烦:我加了,还没同意@羡:嗯,会长看到了应该就给你回信息了讲堂可以下载的吗@羡:可以,安装优酷,登录,搜索畅捷通会计家园,就可以下载了[/握手][/玫瑰]
- 不能连接到服务器,可能是没有安装用友产品或数据服务没有启动
- 主机登陆软件正常服务也开启了,防火墙也没开,但是客户端总是提示不能与主机进行连接是为什么呢?服务器数据库重新安装了,且重新恢复的帐套,这个会有影响吗?客户端重新安装也不行,配置hosts文件也不行。。还有其他可能性吗?急急急~~~~
- 你好,我们的T3服务器因为网络原因,修改了IP地址,普通客户机登录的时候还是识别的是以前的IP地址,服务器连接不上,该如何处理,服务器能ping 通
- 你好,软件总是说连不到服务器
- 求解????????????????????????????????????
- 10.8普及启动系统管理报错
- 数据库001账套2015年度文件质疑,我把所有文件备份了一下,再打开数据库,ufsystem、ufsub也显示质疑,源文件也附加不上去了,怎么办
- 重装系统,账套没备份,但是数据库备份了,现在怎么恢复之前的数据库?谢谢
- 重新附加数据库时提示这个
- T3系统坏,只有元SQL数据,没有备份,如何快速恢复
亲们帮我看下 我的预收账款和应收不对,这两个跟我这个余额表的发生根本就是不对的 亲们帮我看下 我的预收账款和应收不对,这两个跟我这个余额表的发生根本就是不对的
应收账款和预收账款,应付账款和预付账款取数是根据借贷方余额取数的,不是直接取的科目余额这个要看报表的公式怎么设置的了。有的为了不出现负数,将应收账款的贷方余额转到预收账款了,要看公式是什么样的。在数据页。F(x)里。直接删掉最后一行公式就行。应收账款资产负债表期末=应收借方+预收的借方 这两个借方都是本月的月不是发生额?@.............1466154029:资产负债表取的都是余额,不是发生额。@.............1466154029:在这里 直接修改公式,取得就是科目余额表上的余额@服务社区闫新华:我怎么才能看到我报表的性质跟我总账的行业性质可一样?在哪里可以看到@.............1466154029:总账-设置-选项-其他里看帐套的行业性质,然后在报表里选择对应行业里的模板@.............1466154029:我来试试你把公式里的借字删了,应该就可以@服务社区闫新华:这个报表是之前会计搞的 我现在知道我的总账的行业性质 我想看报表的行业性质是不是选错了 因为报表我改了很多次了 所以想看报表的行业性质你公式里应收借款用的是1122的科目编码,行业性质要么是小企业会计准则(2013),要么是2007新会计准则。@.............1466154029:点击文件下面的模板调整,可以看出模板是哪个行业的。
- T3客户端不能连到服务器,显示无法连接到服务器可能是没有安装软件什么的 ,host改过了-客户端上要有用友通的服务吗
- T3客户端连接不上主机,主机ping客户端计算机名字和IP都可以,客户端只能ping主机的IP地址,ping主机的计算机名字的话是不通
- T3普及版客户端登陆不上,分机PING主机的IP地址PING 不通,我还需要做什么设置呢
- 点系统注册 提示不能登陆到服务器 请检查G3-管理服务是否已启动 数据库和G3的服务是启动了的 hotos文件也修改了
- 用户为主机,其他2台机器无法使用 请问怎么设置SQL 服务器
- 登陆系统管理时提示这个怎么解决
- 请问我的电脑重装了系统,暢捷票据通之前的数据怎么恢复,谢谢
- 您好,我在这里找了一下怎么没有工贸宝11.1的版本啊、能发个链接我吗 有点急 谢谢了
- 你好,因为我的电脑没有光驱,无法使用T1-商贸宝批发零售版光盘。 请问该在哪里下载使用呢?
- 早上系统进不去 显示初要始化失败 现在说客户端版本过低
T1零售批发普及版销售单打印行数怎么设置 T1零售批发普及版销售单打印行数怎么设置[]
点击打印后倒三角,进入打印报表设计,双击细项数据四个字,输入固定打印行数,勾选自动追加空行即可
最后点击文件,另存为样式保存下
用友U8.61加载数据后自定义字段便看不见了U8.61加载数据后自定义字段便看不见了
U8.61-加载数据后自定义字段便看不见了
自动编号: | 16656 | 产品版本: | U8.61 |
产品模块: | 分销 | 所属行业: | 通用 |
适用产品: | 分销861 | 关 键 字: | 自定义字段 |
问题名称: | 加载数据后自定义字段便看不见了 | ||
问题现象: | 销售出库单设置表体自定义项(选择进入查询字典、加入列表);销售出库明细表增加查询列;业务销售发货、销售出库自定义字段可以使用,在查询时界面打开时可以看到自定义字段,加载数据后自定义字段便看不见了。 | ||
原因分析: | 设置问题,没有在分组汇总设置“启用” | ||
解决方案: | 使用问题:没有设置分组汇总 要想在销售出库明细表中显示,要在“查询自定义--选中表单--查询列--分组汇总,分别修改“按商品自由项展开”和“不按商品自由项展开”,把新增加的字段设置为“启用”即可了。 温馨提示:如果您的问题还没有解决,欢迎进入用友云基地。 |
- 你好 服务器能登录 但客户端登录不了 hosts文件也已修改
- 登陆时显示不能链接服务器cwserver
- 站点访问不了主机
- 连接不到服务器,怎么回事啊?
- T3数据恢复成功了,登录软件提示如下:
- T3标准版10.9,服务器是WIN10 32位,数据库2008,两台客户端一台可以用,另一台64位WIN7无法连接服务器,telnet服务器名 1433通,telnet服务器IP地址 1433不通,请问如何解决
- Win7 64位系统安装T3标准版客户端连接不上服务器怎么解决?客户端,服务器都是win7 64位系统
- 子系统提示无法连接到服务器
- 请问-我的客户端一直打开说已运行,然后就提示连接不上服务器?
- 补丁 在那里下载啊 都没找到 社区
审批中,审批流程是否可以后台设置审批人、知会人? 审批中,审批流程是否可以后台设置审批人、知会人?[]
您好,请稍等。正在联系工作圈工程师 [/微笑]
@畅捷云服务没法设置固定的审批流,不然跟传统OA一样了,目前审批流程是会记忆上次的操作的,下次会自动添加审批人知会人[/咖啡]
用友U8 销售系统中进销存统计表与销售毛利分析不一致。正常时进销存统计表中的销售数量、销售金额应分别与销售毛利分析中的本期数量、毛利变动扩影响分析售价影响一致,但在用户处11月份不一致用友U8 销售系统中进销存统计表与销售毛利分析不一致。正常时进销存统计表中的销售数量、销售金额应分别与销售毛利分析中的本期数量、毛利变动扩影响分析/售价影响一致,但在用户处11月份不一致。
问题原因:软件设计问题,Sa_moveSRMDetail存储过程其日期过滤条件的判断为大于起始日期。 解决方法:查询其他账表并与此两张表对比,发现销售毛利分析中数据是正确的,而进销存统计表数据不对。用SQL跟踪发现进销存统计表是调用存储过程Sa_moveSRMDetail进行数据查询的,仔细分析Sa_moveSRMDetail存储过程,发现其日期过滤条件的判断为大于起始日期,小于等于结束日期,也就是起始日期这一天给舍弃了,导致统计数据不对,改成大于等于起始日期后查询正确。if exists(select * from sysobjects where name='sa_MoveSRMDetail' and type='P')drop PROCEDURE sa_MoveSRMDetailgo-- U821版-- 2003.12.5-- 南京用友 丁德安-- 销售系统中进销存统计表的销售数量、销售收入不等于销售毛利分析中的本期数量和售价影响-- 经分析后发现是起始日期判断条件为'>',应为'>='CREATE PROCEDURE sa_MoveSRMDetail ( @chrtablename varchar (50) = null , @chrWhere varchar (255 ) = null , @chrStartDate varchar(20) = null , @chrendDate varchar(20) = null , @chrChecker varchar(40) = null , @chrDep varchar(50) = null , @chrWareHouse varchar(20) ) ASdeclare @chrsql varchar(4000) declare @chrCost varchar(40) declare @chrSaleDate varchar (50)-- 删除临时表 if exists (select name from tempdb..sysobjects where name ='tmp_srm') drop table tempdb..tmp_srm --删除进销存明细账--1 组织期初数据 --1.1 计算所有发出成本 if exists (select name from tempdb..sysobjects where name ='tmp_srmcost' ) drop table tempdb..tmp_srmcost --删除成本明细 --从成本明细账中取得销售成本和其他出库成本 set @chrsql= ' Select dkeepdate as ddate , cVouType AS cvoutype,cInvcode, cAccDep ,ia_subsidiary.cDepCode, bMoneyFlag, bSale, iMonth , Warehouse.cWhValueStyle AS cWhValueStyle , ia_subsidiary.cWhcode , iAOutQuantity , case when (cWhvaluestyle=''计划价法''or cWhvalueStyle=''售价法'') and bMoneyFlag=1 then isnull(iAOutPrice,0)- isnull(iDebitDifCost,0) + isnull(iCreditDifCost,0) else isnull ( iAOutPrice,0 ) end as iAOutPrice into tempdb..tmp_srmcost from ia_subsidiary inner join warehouse on ia_subsidiary.cwhcode = warehouse.cwhcodewhere brdflag = 0 ' if ltrim(rtrim(@chrwhere )) <> '' and not ( @chrwhere is null ) set @chrsql = @chrsql + ' and ' + @chrwhere if ltrim(rtrim(@chrdep )) <> '' and not ( @chrdep is null ) set @chrsql = @chrsql + ' and cAccdep ' + @chrdep if ltrim(rtrim(@chrenddate )) <> '' and not (@chrenddate is null ) set @chrsql = @chrsql + ' and dkeepdate<='''+ @chrenddate +''''if ltrim(rtrim(@chrWareHouse)) <> '' and not (@chrWareHouse is null ) set @chrsql = @chrsql +' and ia_subsidiary.cwhcode='''+ ltrim(rtrim(@chrWareHouse)) +''''exec (@chrsql )--计算非自填成本 set @chrCost=(SELECT cValue FROM AccInformation WHERE (cSysID = 'ia') AND (cName = 'cvaluestyle')) if @chrCost ='按部门核算'begin update tempdb..tmp_srmcost set tempdb..tmp_srmcost.iAOutPrice=case when (tempdb..tmp_srmcost.cWhvalueStyle='售价法' ) then tempdb..tmp_srmcost.iAoutPrice*(1 - isnull(ia_summary.iDifRate,0)) else tempdb..tmp_srmcost.iAoutPrice*(1 + isnull(ia_summary.iDifRate,0)) end from tempdb..tmp_srmcost inner join ia_summary on tempdb..tmp_srmcost.iMonth = ia_summary.iMonth and tempdb..tmp_srmcost.cDepCode = ia_summary.cDepCode and tempdb..tmp_srmcost.cInvCode = ia_summary.cInvCode where (tempdb..tmp_srmcost.cWhvaluestyle='计划价法'or tempdb..tmp_srmcost.cWhvalueStyle='售价法') and tempdb..tmp_srmcost.bMoneyFlag=0 and tempdb..tmp_srmcost.bSale<> 1 endelse begin update tempdb..tmp_srmcost set tempdb..tmp_srmcost.iAOutPrice=case when (tempdb..tmp_srmcost.cWhvalueStyle='售价法' ) then tempdb..tmp_srmcost.iAoutPrice*(1 - isnull(ia_summary.iDifRate,0)) else tempdb..tmp_srmcost.iAoutPrice*(1 + isnull(ia_summary.iDifRate,0)) end from tempdb..tmp_srmcost inner join ia_summary on tempdb..tmp_srmcost.iMonth = ia_summary.iMonth and tempdb..tmp_srmcost.cWhCode = ia_summary.cWhCode and tempdb..tmp_srmcost.cInvCode = ia_summary.cInvCode where (tempdb..tmp_srmcost.cWhvaluestyle='计划价法'or tempdb..tmp_srmcost.cWhvalueStyle='售价法') and tempdb..tmp_srmcost.bMoneyFlag=0 and tempdb..tmp_srmcost.bSale<> 1 end--完成成本计算所有的出库成本保存在临时文件 tempdb..tmp_srccost中 --1.3计算期初入库金额 --创建临时表tmp_srm保存查询统计的临时结果 --临时表结构 存货编号 ,部门编号 ,期初数量,期初金额,采购数量,采购金额 -- 暂诂数量,暂诂金额,其他入库数量,其他入库金额,销售数量 -- 销售金额,其他出库数量,其他出库金额,调拨数量,调拨金额 -- 收入金额,出库数量,成本 set @chrsql = 'Select cInvCode , caccdep ,iAinQuantity as qc_iQuantity , (iAinPrice + isnull( iDebitDifCost,0) -isnull(iCreditDifCost,0) ) as qc_imoney ,(iAinPrice - iAinPrice) as iQuantityCG , (iAinPrice - iAinPrice) as iMoneyCG , (iAinPrice - iAinPrice) as iQuantityZG, (iAinPrice - iAinPrice) as iMoneyZG , (iAinPrice - iAinPrice) as iQuantityQTRK , (iAinPrice - iAinPrice) as iMoneyQTRK , (iAinPrice - iAinPrice) as iQuantityXS , (iAinPrice - iAinPrice) as iMoneyXS , (iAinPrice - iAinPrice) as iQuantityQTCK , (iAinPrice - iAinPrice) as iMoneyQTCK , (iAinPrice - iAinPrice) as iQuantityDB , (iAinPrice - iAinPrice) as iMoneyDB ,(iAinPrice - iAinPrice) as iMoneySR , (iAinPrice - iAinPrice) as iQuantityCK , (iAinPrice - iAinPrice) as iMoneyCB ,cwhcode into tempdb..tmp_srm from ia_subsidiary 'if ltrim(rtrim(@chrstartdate)) = '' or @chrstartdate is null begin --无期初日期时只计算上年结转 set @chrsql = @chrsql + ' where iMonth=0 and brdflag = 1 and cVoutype <>''33'' 'end else begin--有期初日期时的情况 set @chrsql = @chrsql + ' where brdflag = 1 and ( (iMonth = 0 and cVoutype <>''33'' ) or dkeepdate <='''+@chrstartdate +''' and ( cVoutype in (''01'',''24'',''30'',''08'',''20'',''22'',''10'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) ) ) 'end --加入日期和部门条件 if ltrim(rtrim(@chrwhere )) <> '' and not (@chrwhere is null ) set @chrsql = @chrsql + ' and ' + @chrwhere if ltrim(rtrim(@chrdep )) <> '' and not ( @chrdep is null ) set @chrsql = @chrsql + ' and cAccdep ' + @chrdep --加入仓库条件 if ltrim(rtrim(@chrWareHouse)) <> '' and not (@chrWareHouse is null ) set @chrsql = @chrsql +' and ia_subsidiary.cwhcode='''+ ltrim(rtrim(@chrWareHouse)) +''''exec ( @chrsql )--1.2 生成期初出库成本 if ltrim(rtrim(@chrstartdate)) <> '' and not ( @chrstartdate is null ) begin --如果无期初日期不应该计算期初发出内容 set @chrsql = 'insert into tempdb..tmp_srm Select cInvCode , caccdep ,- iAoutQuantity as qc_iQuantity , - iAoutPrice as qc_imoney ,0 as iQuantityCG , 0 as iMoneyCG , 0 as iQuantityZG, 0 as iMoneyZG , 0 as iQuantityQTRK , 0 as iMoneyQTRK , 0 as iQuantityXS , 0 as iMoneyXS , 0 as iQuantityQTCK , 0 as iMoneyQTCK , 0 as iQuantityDB , 0 as iMoneyDB ,0 as iMoneySR , 0 as iQuantityCK , 0 as iMoneyCB , cWhcode from tempdb..tmp_srmcost where cvoutype in (''09'',''11'',''21'',''26'',''27'',''28'',''29'',''32'') 'set @chrsql = @chrsql + ' and ddate <=''' + @chrstartdate + '''' exec(@chrsql )end --完成期初数据的准备 --2 组织本期数据 --2.1 统计本期采购入库数据:采购入库数量,采购入库金额,暂诂入库数量,暂诂入库金额,其它入库数量,其他入库金额set @chrsql = 'insert into tempdb..tmp_srm Select cInvCode , caccdep ,0 as qc_iQuantity ,0 as qc_imoney ,case when cvoutype in(''01'',''24'',''30'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) then iAinQuantity else 0end iQuantityCG , case when cvoutype in(''01'',''24'',''30'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) then iAinPrice + isnull( iDebitDifCost,0) -isnull(iCreditDifCost,0) else 0end as iMoneyCG , case when ( cvoutype = ''01'' and bflag = 1 ) or cvoutype in(''24'',''30'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) then iAinQuantity else 0end as iQuantityZG, case when ( cvoutype = ''01'' and bflag = 1 ) or cvoutype in(''24'',''30'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) then iAinPrice + isnull( iDebitDifCost,0) -isnull(iCreditDifCost,0) else 0end as iMoneyZG , case when cVoutype in (''08'',''20'',''22'',''10'') then iAinQuantity else 0 end as iQuantityQTRK , case when cVoutype in (''08'',''20'',''22'',''10'') then iAinPrice + isnull( iDebitDifCost,0) -isnull(iCreditDifCost,0) else 0 end as iMoneyQTRK , 0 as iQuantityXS , 0 as iMoneyXS , 0 as iQuantityQTCK , 0 as iMoneyQTCK , 0 as iQuantityDB , 0 as iMoneyDB ,0 as iMoneySR , 0 as iQuantityCK , 0 as iMoneyCB , cWhcode from ia_subsidiary Where bRdflag = 1 and iMonth > 0 and ( cVoutype in (''01'',''24'',''30'',''08'',''20'',''22'',''10'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) ) '--追加开始日期条件 if ltrim(rtrim(@chrstartdate)) <> '' and not ( @chrstartdate is null ) set @chrsql = @chrsql + ' and dkeepdate>''' + @chrstartdate + ''''--追加结束日期条件 if ltrim(rtrim(@chrenddate)) <> ''and not ( @chrenddate is null ) set @chrsql = @chrsql + ' and dkeepdate<=''' + @chrenddate + ''''--追加其他条件 if ltrim(rtrim(@chrwhere)) <> '' and not @chrwhere is null set @chrsql = @chrsql + ' and ' + @chrwhere if ltrim(rtrim(@chrdep )) <> '' and not ( @chrdep is null ) set @chrsql = @chrsql + ' and cAccdep ' + @chrdep --加入仓库条件 if ltrim(rtrim(@chrWareHouse)) <> '' and not (@chrWareHouse is null ) set @chrsql = @chrsql +' and ia_subsidiary.cwhcode='''+ ltrim(rtrim(@chrWareHouse)) +''''exec(@chrsql ) --end 本期采购部分计算结束 --2.3 统计本期销售数量,销售金额,销售调拨数量,销售调拨金额 -- 取得销售系统启用日期 set @chrsaledate = (select isnull(cValue,'1900-01-01') from accinformation where cSysid='Sa' and cName='dStartDate' ) if @chrsaledate <> '' begin if len(ltrim(rtrim(@chrsaledate))) <= 8 set @chrsaledate = convert(varchar(10),convert(smalldatetime,@chrsaledate,2),121)set @chrsaleDate = ' and SalebillVouch.dDate>=''' + @chrsaledate + ''''end --计算本期销售数据 set @chrsql = 'insert into tempdb..tmp_srm Select cInvCode , cdepcode as caccdep ,0 as qc_iQuantity , 0 as qc_imoney ,0 as iQuantityCG , 0 as iMoneyCG , 0 as iQuantityZG, 0 as iMoneyZG , 0 as iQuantityQTRK , 0 as iMoneyQTRK , iQuantity as iQuantityXS , iNatSum as iMoneyXS , 0 as iQuantityQTCK , 0 as iMoneyQTCK , case when cvouchtype = ''28'' then iQuantity else 0 end as iQuantityDB , case when cvouchtype =''28'' then iNatMoney else 0 end as iMoneyDB ,iNatMoney as iMoneySR , 0 as iQuantityCK , 0 as iMoneyCB , Salebillvouchs.cWhcode From Salebillvouchs inner join Salebillvouch on salebillvouchs.sbvid = salebillvouch.sbvid where isnull(Salebillvouch.cinvalider ,'''')='''' ' + @chrsaledate --增加审核条件 if ltrim(rtrim(@chrchecker)) <> '' and not (@chrchecker is null ) set @chrsql = @chrsql + ' and ' + @chrchecker --增加开始日期条件 if ltrim(rtrim(@chrstartdate)) <> '' and not (@chrstartdate is null ) -- 2003.12.5 丁德安--set @chrsql = @chrsql + ' and ddate >''' + @chrstartdate + ''''set @chrsql = @chrsql + ' and ddate >=''' + @chrstartdate + ''''--增加结束日期条件 if ltrim(rtrim(@chrenddate )) <> '' and not (@chrenddate is null )set @chrsql = @chrsql + ' and ddate <=''' + @chrenddate + '''' --增加一般条件 if ltrim(rtrim(@chrwhere)) <> '' and not (@chrwhere is null )set @chrsql = @chrsql + ' and ' + @chrwhere if ltrim(rtrim(@chrdep )) <> '' and not ( @chrdep is null ) set @chrsql = @chrsql + ' and cdepCode ' + @chrdep --加入仓库条件 if ltrim(rtrim(@chrWareHouse)) <> '' and not (@chrWareHouse is null ) set @chrsql = @chrsql +' and Salebillvouchs.cwhcode='''+ ltrim(rtrim(@chrWareHouse)) +''''exec (@chrsql )--本期收入计算终止 --2.4 统计本期销售成本,销售收入,出库数量 set @chrsql = 'insert into tempdb..tmp_srm Select cInvCode , caccdep ,0 as qc_iQuantity , 0 as qc_imoney ,0 as iQuantityCG , 0 as iMoneyCG , 0 as iQuantityZG, 0 as iMoneyZG , 0 as iQuantityQTRK , 0 as iMoneyQTRK , 0 as iQuantityXS , 0 as iMoneyXS , case when cvoutype =''09'' or cvoutype =''11'' or (cvoutype = ''21'' and bSale = 0 ) then iAoutQuantity else 0 end as iQuantityQTCK , case when cvoutype =''09'' or cvoutype =''11'' or (cVoutype =''21'' and bSale = 0 ) then iAoutPrice else 0 end as iMoneyQTCK , 0 as iQuantityDB , 0 as iMoneyDB , 0 as iMoneySR ,case when cvoutype in (''26'',''27'',''28'',''29'',''32'') or ( cvoutype =''21'' and bsale=1) then iAoutQuantity else 0 end as iQuantityCK , case when cvoutype in (''26'',''27'',''28'',''29'',''32'') or ( cvoutype =''21'' and bsale=1) then iAoutPrice else 0 end as iMoneyCB , cwhcode from tempdb..tmp_srmcost Where iMonth > 0 and cvoutype in (''09'',''11'',''21'',''26'',''27'',''28'',''29'',''32'') ' if ltrim(rtrim(@chrstartdate)) <> '' and not (@chrstartdate is null ) set @chrsql = @chrsql + ' and ddate >'''+ @chrstartdate + '''' exec( @chrsql )--3 按存货分类展开处理 /*存货分类按编码级次展开 */declare @chrfieldlist varchar(4000)declare @chrInner varchar (4000)declare @chrbmjc varchar(20)declare @i int declare @n int /*存货分类按编码级次展开 *//*取得存货分类编码级次 */set @chrbmjc = ''set @chrbmjc = (select cValue from accInformation where cName ='cGoodClass')/*连接展开字符串*/set @chrfieldlist = ''set @chrInner = '' set @i =1 set @n = 0 while (@i <= 8 )begin set @n = @n + substring(@chrbmjc,@i,1) /* 分解级次 *//* 组合字段列表 */set @chrfieldlist = @chrfieldlist +'c'+ ltrim(rtrim(str(@i))) + '.cInvCName as cInvCName' + ltrim(rtrim(@i)) +','/* 组合关联 */if (@i <= len(@chrbmjc))begin set @chrinner = @chrinner + ' left join inventoryClass c'+ ltrim(rtrim(str(@i)))+ ' on c'+ ltrim(rtrim(str(@i)))+'.cInvCCode = left( b.cInvCCode,'+ltrim(rtrim(str(@n)))+')'end else begin set @chrinner = @chrinner + ' left join inventoryClass c' + ltrim(rtrim(str(@i)))+ ' on b.cInvCCode = c'+ ltrim(rtrim(str(@i)))+ '.cInvCCode 'end set @i = @i +1 end --4 生成最终的临时表if exists(select name from tempdb..sysobjects where name = @chrtablename ) exec ('drop table tempdb..' + @chrtablename )set @chrsql = 'Select a.* ,Department.cDepName , b.cinvname , b.cinvStd , b.cinvM_Unit ,'+@chrfieldlist +'b.cInvDefine1 , b.cInvDefine2 ,b.cInvDefine3 , 0 as iProfit , 0 as iProfittax, 0 as qm_iQuantity ,0 as qm_iMoney , 0 as iPrice , 0 as iPriceTax ,vendor.cvenname , warehouse.cWhname into tempdb..'+@chrtablename+'from tempdb..tmp_srm a left join inventory b on a.cInvCode = b.cInvCode left join Department on a.caccdep = department.cDepcode left join vendor on b.cvencode = vendor.cvencode left join warehouse on a.cwhcode = warehouse.cwhcode ' + @chrInner exec(@chrsql)
解决方案:
问题原因:软件设计问题,Sa_moveSRMDetail存储过程其日期过滤条件的判断为大于起始日期。 解决方法:查询其他账表并与此两张表对比,发现销售毛利分析中数据是正确的,而进销存统计表数据不对。用SQL跟踪发现进销存统计表是调用存储过程Sa_moveSRMDetail进行数据查询的,仔细分析Sa_moveSRMDetail存储过程,发现其日期过滤条件的判断为大于起始日期,小于等于结束日期,也就是起始日期这一天给舍弃了,导致统计数据不对,改成大于等于起始日期后查询正确。if exists(select * from sysobjects where name='sa_MoveSRMDetail' and type='P')drop PROCEDURE sa_MoveSRMDetailgo-- U821版-- 2003.12.5-- 南京用友 丁德安-- 销售系统中进销存统计表的销售数量、销售收入不等于销售毛利分析中的本期数量和售价影响-- 经分析后发现是起始日期判断条件为'>',应为'>='CREATE PROCEDURE sa_MoveSRMDetail ( @chrtablename varchar (50) = null , @chrWhere varchar (255 ) = null , @chrStartDate varchar(20) = null , @chrendDate varchar(20) = null , @chrChecker varchar(40) = null , @chrDep varchar(50) = null , @chrWareHouse varchar(20) ) ASdeclare @chrsql varchar(4000) declare @chrCost varchar(40) declare @chrSaleDate varchar (50)-- 删除临时表 if exists (select name from tempdb..sysobjects where name ='tmp_srm') drop table tempdb..tmp_srm --删除进销存明细账--1 组织期初数据 --1.1 计算所有发出成本 if exists (select name from tempdb..sysobjects where name ='tmp_srmcost' ) drop table tempdb..tmp_srmcost --删除成本明细 --从成本明细账中取得销售成本和其他出库成本 set @chrsql= ' Select dkeepdate as ddate , cVouType AS cvoutype,cInvcode, cAccDep ,ia_subsidiary.cDepCode, bMoneyFlag, bSale, iMonth , Warehouse.cWhValueStyle AS cWhValueStyle , ia_subsidiary.cWhcode , iAOutQuantity , case when (cWhvaluestyle=''计划价法''or cWhvalueStyle=''售价法'') and bMoneyFlag=1 then isnull(iAOutPrice,0)- isnull(iDebitDifCost,0) + isnull(iCreditDifCost,0) else isnull ( iAOutPrice,0 ) end as iAOutPrice into tempdb..tmp_srmcost from ia_subsidiary inner join warehouse on ia_subsidiary.cwhcode = warehouse.cwhcodewhere brdflag = 0 ' if ltrim(rtrim(@chrwhere )) <> '' and not ( @chrwhere is null ) set @chrsql = @chrsql + ' and ' + @chrwhere if ltrim(rtrim(@chrdep )) <> '' and not ( @chrdep is null ) set @chrsql = @chrsql + ' and cAccdep ' + @chrdep if ltrim(rtrim(@chrenddate )) <> '' and not (@chrenddate is null ) set @chrsql = @chrsql + ' and dkeepdate<='''+ @chrenddate +''''if ltrim(rtrim(@chrWareHouse)) <> '' and not (@chrWareHouse is null ) set @chrsql = @chrsql +' and ia_subsidiary.cwhcode='''+ ltrim(rtrim(@chrWareHouse)) +''''exec (@chrsql )--计算非自填成本 set @chrCost=(SELECT cValue FROM AccInformation WHERE (cSysID = 'ia') AND (cName = 'cvaluestyle')) if @chrCost ='按部门核算'begin update tempdb..tmp_srmcost set tempdb..tmp_srmcost.iAOutPrice=case when (tempdb..tmp_srmcost.cWhvalueStyle='售价法' ) then tempdb..tmp_srmcost.iAoutPrice*(1 - isnull(ia_summary.iDifRate,0)) else tempdb..tmp_srmcost.iAoutPrice*(1 + isnull(ia_summary.iDifRate,0)) end from tempdb..tmp_srmcost inner join ia_summary on tempdb..tmp_srmcost.iMonth = ia_summary.iMonth and tempdb..tmp_srmcost.cDepCode = ia_summary.cDepCode and tempdb..tmp_srmcost.cInvCode = ia_summary.cInvCode where (tempdb..tmp_srmcost.cWhvaluestyle='计划价法'or tempdb..tmp_srmcost.cWhvalueStyle='售价法') and tempdb..tmp_srmcost.bMoneyFlag=0 and tempdb..tmp_srmcost.bSale<> 1 endelse begin update tempdb..tmp_srmcost set tempdb..tmp_srmcost.iAOutPrice=case when (tempdb..tmp_srmcost.cWhvalueStyle='售价法' ) then tempdb..tmp_srmcost.iAoutPrice*(1 - isnull(ia_summary.iDifRate,0)) else tempdb..tmp_srmcost.iAoutPrice*(1 + isnull(ia_summary.iDifRate,0)) end from tempdb..tmp_srmcost inner join ia_summary on tempdb..tmp_srmcost.iMonth = ia_summary.iMonth and tempdb..tmp_srmcost.cWhCode = ia_summary.cWhCode and tempdb..tmp_srmcost.cInvCode = ia_summary.cInvCode where (tempdb..tmp_srmcost.cWhvaluestyle='计划价法'or tempdb..tmp_srmcost.cWhvalueStyle='售价法') and tempdb..tmp_srmcost.bMoneyFlag=0 and tempdb..tmp_srmcost.bSale<> 1 end--完成成本计算所有的出库成本保存在临时文件 tempdb..tmp_srccost中 --1.3计算期初入库金额 --创建临时表tmp_srm保存查询统计的临时结果 --临时表结构 存货编号 ,部门编号 ,期初数量,期初金额,采购数量,采购金额 -- 暂诂数量,暂诂金额,其他入库数量,其他入库金额,销售数量 -- 销售金额,其他出库数量,其他出库金额,调拨数量,调拨金额 -- 收入金额,出库数量,成本 set @chrsql = 'Select cInvCode , caccdep ,iAinQuantity as qc_iQuantity , (iAinPrice + isnull( iDebitDifCost,0) -isnull(iCreditDifCost,0) ) as qc_imoney ,(iAinPrice - iAinPrice) as iQuantityCG , (iAinPrice - iAinPrice) as iMoneyCG , (iAinPrice - iAinPrice) as iQuantityZG, (iAinPrice - iAinPrice) as iMoneyZG , (iAinPrice - iAinPrice) as iQuantityQTRK , (iAinPrice - iAinPrice) as iMoneyQTRK , (iAinPrice - iAinPrice) as iQuantityXS , (iAinPrice - iAinPrice) as iMoneyXS , (iAinPrice - iAinPrice) as iQuantityQTCK , (iAinPrice - iAinPrice) as iMoneyQTCK , (iAinPrice - iAinPrice) as iQuantityDB , (iAinPrice - iAinPrice) as iMoneyDB ,(iAinPrice - iAinPrice) as iMoneySR , (iAinPrice - iAinPrice) as iQuantityCK , (iAinPrice - iAinPrice) as iMoneyCB ,cwhcode into tempdb..tmp_srm from ia_subsidiary 'if ltrim(rtrim(@chrstartdate)) = '' or @chrstartdate is null begin --无期初日期时只计算上年结转 set @chrsql = @chrsql + ' where iMonth=0 and brdflag = 1 and cVoutype <>''33'' 'end else begin--有期初日期时的情况 set @chrsql = @chrsql + ' where brdflag = 1 and ( (iMonth = 0 and cVoutype <>''33'' ) or dkeepdate <='''+@chrstartdate +''' and ( cVoutype in (''01'',''24'',''30'',''08'',''20'',''22'',''10'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) ) ) 'end --加入日期和部门条件 if ltrim(rtrim(@chrwhere )) <> '' and not (@chrwhere is null ) set @chrsql = @chrsql + ' and ' + @chrwhere if ltrim(rtrim(@chrdep )) <> '' and not ( @chrdep is null ) set @chrsql = @chrsql + ' and cAccdep ' + @chrdep --加入仓库条件 if ltrim(rtrim(@chrWareHouse)) <> '' and not (@chrWareHouse is null ) set @chrsql = @chrsql +' and ia_subsidiary.cwhcode='''+ ltrim(rtrim(@chrWareHouse)) +''''exec ( @chrsql )--1.2 生成期初出库成本 if ltrim(rtrim(@chrstartdate)) <> '' and not ( @chrstartdate is null ) begin --如果无期初日期不应该计算期初发出内容 set @chrsql = 'insert into tempdb..tmp_srm Select cInvCode , caccdep ,- iAoutQuantity as qc_iQuantity , - iAoutPrice as qc_imoney ,0 as iQuantityCG , 0 as iMoneyCG , 0 as iQuantityZG, 0 as iMoneyZG , 0 as iQuantityQTRK , 0 as iMoneyQTRK , 0 as iQuantityXS , 0 as iMoneyXS , 0 as iQuantityQTCK , 0 as iMoneyQTCK , 0 as iQuantityDB , 0 as iMoneyDB ,0 as iMoneySR , 0 as iQuantityCK , 0 as iMoneyCB , cWhcode from tempdb..tmp_srmcost where cvoutype in (''09'',''11'',''21'',''26'',''27'',''28'',''29'',''32'') 'set @chrsql = @chrsql + ' and ddate <=''' + @chrstartdate + '''' exec(@chrsql )end --完成期初数据的准备 --2 组织本期数据 --2.1 统计本期采购入库数据:采购入库数量,采购入库金额,暂诂入库数量,暂诂入库金额,其它入库数量,其他入库金额set @chrsql = 'insert into tempdb..tmp_srm Select cInvCode , caccdep ,0 as qc_iQuantity ,0 as qc_imoney ,case when cvoutype in(''01'',''24'',''30'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) then iAinQuantity else 0end iQuantityCG , case when cvoutype in(''01'',''24'',''30'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) then iAinPrice + isnull( iDebitDifCost,0) -isnull(iCreditDifCost,0) else 0end as iMoneyCG , case when ( cvoutype = ''01'' and bflag = 1 ) or cvoutype in(''24'',''30'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) then iAinQuantity else 0end as iQuantityZG, case when ( cvoutype = ''01'' and bflag = 1 ) or cvoutype in(''24'',''30'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) then iAinPrice + isnull( iDebitDifCost,0) -isnull(iCreditDifCost,0) else 0end as iMoneyZG , case when cVoutype in (''08'',''20'',''22'',''10'') then iAinQuantity else 0 end as iQuantityQTRK , case when cVoutype in (''08'',''20'',''22'',''10'') then iAinPrice + isnull( iDebitDifCost,0) -isnull(iCreditDifCost,0) else 0 end as iMoneyQTRK , 0 as iQuantityXS , 0 as iMoneyXS , 0 as iQuantityQTCK , 0 as iMoneyQTCK , 0 as iQuantityDB , 0 as iMoneyDB ,0 as iMoneySR , 0 as iQuantityCK , 0 as iMoneyCB , cWhcode from ia_subsidiary Where bRdflag = 1 and iMonth > 0 and ( cVoutype in (''01'',''24'',''30'',''08'',''20'',''22'',''10'') or (cvoutype =''20'' and cbustype=''暂估报销'' ) ) '--追加开始日期条件 if ltrim(rtrim(@chrstartdate)) <> '' and not ( @chrstartdate is null ) set @chrsql = @chrsql + ' and dkeepdate>''' + @chrstartdate + ''''--追加结束日期条件 if ltrim(rtrim(@chrenddate)) <> ''and not ( @chrenddate is null ) set @chrsql = @chrsql + ' and dkeepdate<=''' + @chrenddate + ''''--追加其他条件 if ltrim(rtrim(@chrwhere)) <> '' and not @chrwhere is null set @chrsql = @chrsql + ' and ' + @chrwhere if ltrim(rtrim(@chrdep )) <> '' and not ( @chrdep is null ) set @chrsql = @chrsql + ' and cAccdep ' + @chrdep --加入仓库条件 if ltrim(rtrim(@chrWareHouse)) <> '' and not (@chrWareHouse is null ) set @chrsql = @chrsql +' and ia_subsidiary.cwhcode='''+ ltrim(rtrim(@chrWareHouse)) +''''exec(@chrsql ) --end 本期采购部分计算结束 --2.3 统计本期销售数量,销售金额,销售调拨数量,销售调拨金额 -- 取得销售系统启用日期 set @chrsaledate = (select isnull(cValue,'1900-01-01') from accinformation where cSysid='Sa' and cName='dStartDate' ) if @chrsaledate <> '' begin if len(ltrim(rtrim(@chrsaledate))) <= 8 set @chrsaledate = convert(varchar(10),convert(smalldatetime,@chrsaledate,2),121)set @chrsaleDate = ' and SalebillVouch.dDate>=''' + @chrsaledate + ''''end --计算本期销售数据 set @chrsql = 'insert into tempdb..tmp_srm Select cInvCode , cdepcode as caccdep ,0 as qc_iQuantity , 0 as qc_imoney ,0 as iQuantityCG , 0 as iMoneyCG , 0 as iQuantityZG, 0 as iMoneyZG , 0 as iQuantityQTRK , 0 as iMoneyQTRK , iQuantity as iQuantityXS , iNatSum as iMoneyXS , 0 as iQuantityQTCK , 0 as iMoneyQTCK , case when cvouchtype = ''28'' then iQuantity else 0 end as iQuantityDB , case when cvouchtype =''28'' then iNatMoney else 0 end as iMoneyDB ,iNatMoney as iMoneySR , 0 as iQuantityCK , 0 as iMoneyCB , Salebillvouchs.cWhcode From Salebillvouchs inner join Salebillvouch on salebillvouchs.sbvid = salebillvouch.sbvid where isnull(Salebillvouch.cinvalider ,'''')='''' ' + @chrsaledate --增加审核条件 if ltrim(rtrim(@chrchecker)) <> '' and not (@chrchecker is null ) set @chrsql = @chrsql + ' and ' + @chrchecker --增加开始日期条件 if ltrim(rtrim(@chrstartdate)) <> '' and not (@chrstartdate is null ) -- 2003.12.5 丁德安--set @chrsql = @chrsql + ' and ddate >''' + @chrstartdate + ''''set @chrsql = @chrsql + ' and ddate >=''' + @chrstartdate + ''''--增加结束日期条件 if ltrim(rtrim(@chrenddate )) <> '' and not (@chrenddate is null )set @chrsql = @chrsql + ' and ddate <=''' + @chrenddate + '''' --增加一般条件 if ltrim(rtrim(@chrwhere)) <> '' and not (@chrwhere is null )set @chrsql = @chrsql + ' and ' + @chrwhere if ltrim(rtrim(@chrdep )) <> '' and not ( @chrdep is null ) set @chrsql = @chrsql + ' and cdepCode ' + @chrdep --加入仓库条件 if ltrim(rtrim(@chrWareHouse)) <> '' and not (@chrWareHouse is null ) set @chrsql = @chrsql +' and Salebillvouchs.cwhcode='''+ ltrim(rtrim(@chrWareHouse)) +''''exec (@chrsql )--本期收入计算终止 --2.4 统计本期销售成本,销售收入,出库数量 set @chrsql = 'insert into tempdb..tmp_srm Select cInvCode , caccdep ,0 as qc_iQuantity , 0 as qc_imoney ,0 as iQuantityCG , 0 as iMoneyCG , 0 as iQuantityZG, 0 as iMoneyZG , 0 as iQuantityQTRK , 0 as iMoneyQTRK , 0 as iQuantityXS , 0 as iMoneyXS , case when cvoutype =''09'' or cvoutype =''11'' or (cvoutype = ''21'' and bSale = 0 ) then iAoutQuantity else 0 end as iQuantityQTCK , case when cvoutype =''09'' or cvoutype =''11'' or (cVoutype =''21'' and bSale = 0 ) then iAoutPrice else 0 end as iMoneyQTCK , 0 as iQuantityDB , 0 as iMoneyDB , 0 as iMoneySR ,case when cvoutype in (''26'',''27'',''28'',''29'',''32'') or ( cvoutype =''21'' and bsale=1) then iAoutQuantity else 0 end as iQuantityCK , case when cvoutype in (''26'',''27'',''28'',''29'',''32'') or ( cvoutype =''21'' and bsale=1) then iAoutPrice else 0 end as iMoneyCB , cwhcode from tempdb..tmp_srmcost Where iMonth > 0 and cvoutype in (''09'',''11'',''21'',''26'',''27'',''28'',''29'',''32'') ' if ltrim(rtrim(@chrstartdate)) <> '' and not (@chrstartdate is null ) set @chrsql = @chrsql + ' and ddate >'''+ @chrstartdate + '''' exec( @chrsql )--3 按存货分类展开处理 /*存货分类按编码级次展开 */declare @chrfieldlist varchar(4000)declare @chrInner varchar (4000)declare @chrbmjc varchar(20)declare @i int declare @n int /*存货分类按编码级次展开 *//*取得存货分类编码级次 */set @chrbmjc = ''set @chrbmjc = (select cValue from accInformation where cName ='cGoodClass')/*连接展开字符串*/set @chrfieldlist = ''set @chrInner = '' set @i =1 set @n = 0 while (@i <= 8 )begin set @n = @n + substring(@chrbmjc,@i,1) /* 分解级次 *//* 组合字段列表 */set @chrfieldlist = @chrfieldlist +'c'+ ltrim(rtrim(str(@i))) + '.cInvCName as cInvCName' + ltrim(rtrim(@i)) +','/* 组合关联 */if (@i <= len(@chrbmjc))begin set @chrinner = @chrinner + ' left join inventoryClass c'+ ltrim(rtrim(str(@i)))+ ' on c'+ ltrim(rtrim(str(@i)))+'.cInvCCode = left( b.cInvCCode,'+ltrim(rtrim(str(@n)))+')'end else begin set @chrinner = @chrinner + ' left join inventoryClass c' + ltrim(rtrim(str(@i)))+ ' on b.cInvCCode = c'+ ltrim(rtrim(str(@i)))+ '.cInvCCode 'end set @i = @i +1 end --4 生成最终的临时表if exists(select name from tempdb..sysobjects where name = @chrtablename ) exec ('drop table tempdb..' + @chrtablename )set @chrsql = 'Select a.* ,Department.cDepName , b.cinvname , b.cinvStd , b.cinvM_Unit ,'+@chrfieldlist +'b.cInvDefine1 , b.cInvDefine2 ,b.cInvDefine3 , 0 as iProfit , 0 as iProfittax, 0 as qm_iQuantity ,0 as qm_iMoney , 0 as iPrice , 0 as iPriceTax ,vendor.cvenname , warehouse.cWhname into tempdb..'+@chrtablename+'from tempdb..tmp_srm a left join inventory b on a.cInvCode = b.cInvCode left join Department on a.caccdep = department.cDepcode left join vendor on b.cvencode = vendor.cvencode left join warehouse on a.cwhcode = warehouse.cwhcode ' + @chrInner exec(@chrsql)
用友U8.51科目明细账打印没有表尾U8.51科目明细账打印没有表尾
U8.51-科目明细账打印没有表尾
自动编号: | 10507 | 产品版本: | U8.51 |
产品模块: | 总账 | 所属行业: | 通用 |
适用产品: | 8.51 | 关 键 字: | 有一套帐科目明细账打印没有表尾 |
问题名称: | 科目明细账打印没有表尾 | ||
问题现象: | 有一套帐科目明细账打印预览都没有表尾,其他帐套正常 | ||
原因分析: | 还没有查到具体原因 | ||
解决方案: | 客户只有总账报表所以新建帐套,用总账工具导数据,在导入gl_accass,gl_accsum,gl_accvouch后打印正常 温馨提示:如果您的问题还没有解决,欢迎进入用友云基地。 |
- T3标准版10.9,服务器是WIN10 32位,数据库2008,两台客户端一台可以用,另一台64位WIN7无法连接服务器,telnet服务器名 1433通,telnet服务器IP地址 1433不通,请问如何解决
- T3标准版安装在win7客户端,可以登入进去,但是总账和其他模块无法登入使用,提示:子系统登入失败。基础设置又可以打开。软件重新安装了还是不行,防火墙都关了。请问这个是什么问题?
- T3标准版服务器端正常访问,客户端可以PING通服务器,但连接一直提示找不到这样的主机,防火墙也关了,host也改了,还有什么方法
- 我用的T3标准版,在另一台机子上安装了客户端,找不到服务器,输入主机IP也找不到服务器,是怎么回事?
- 我在电脑中安装了T3软件,用台式机作为服务器,另外2台笔记本作为客户端,台式机子和笔记本都在单位局域网中,但安装好后,单位局域网中别的机子可以通过审计大师,新纪元审计软件搜索到帐套并能导出帐套,应如何在服务器设置
- 你好,我们的T3服务器因为网络原因,修改了IP地址,普通客户机登录的时候还是识别的是以前的IP地址,服务器连接不上,该如何处理,服务器能ping 通
- 你好,软件总是说连不到服务器
- 你好 服务器能登录 但客户端登录不了 hosts文件也已修改
- 子系统提示无法连接到服务器
- 两台客户端,一个可以正常使用,另一个能ping通,当时不能使用
用友NC软件凭证打印设置方法用友NC软件凭证打印设置方法
用友NC软件凭证打印设置及NC打印模版的设置
很多大集团客户都是用的用友的NC软件,相对于U8 T等,更方便集团的统一管理。
那么在用友NC软件中,怎样进行软件的凭证打印设置,以及怎么设置NC打印的模版呢?
首先,确定你的软件套打纸型。一般都是取决于打印机的类型。我们就此以激光打印机 ,(如果是针式打印机,需要设定相应的模版自定义纸张大小),此文章仅以用友套打激光KPJ101凭证为例。
其次,进入财务会计-凭证管理-查询,然后手动鼠标选择要打印的凭证范围。然后选择打印。会弹出一个打印的对话框,选择模版及确定打印机是否为您确定的打印机型号。直接打印即可。
那么用友NC打印模版怎么设置呢?也很简单。
进入客户化-模版管理-模版设置(如果没有此项说明您权限没有开通,找实施开通即可,对其他无任何影响)。
然后再依次进入-财务会计-凭证管理-制单。这时候会依次出现所有模版的汇总。属性有集团的,公司的,系统的。
一般都采用系统的模版。就如上面提到的,用友套打激光KPJ101凭证对应的模版就是A4套打激光金额记账凭证。
用友软件,用心服务!正版软件,假一赔十!上门服务,全程免费培训,做账支持!一年免费服务,全程使用无忧!
如有其它不明白的问题,或需要我们解决的问题,请联系我们!电话:010-59798025。也可以通过在线咨询联系我们。