营改增之后为什么还能收到地税出租车票
2016-4-9 0:0:0 用友T1小编营改增之后为什么还能收到地税出租车票
营改增之后为什么还能收到地税出租车票问:我们公司有很多同事最近在乘坐成都市正规出租车的时候,有时还是会收到地方局监制字样的发票,而且在地税网站上还可以查到,例如发票代码为251011242029,发票号码为33082577,验证码是99800430的出租车发票。这种发票是否合规?因为都是乘坐正规出租车时候拿到的,谢谢。
答:根据《部 国家税务总局关于将铁路运输和邮政业纳入改征试点的通知》(财税[2013]106号)第一条 在中华人民共和国境内(以下称境内)提供交通运输业、邮政业和部分现代服务业服务(以下称应税服务)的单位和个人,为增值税人。纳税人提供应税服务,应当按照本办法缴纳增值税,不再缴纳营业税。 根据《四川省国家税务局关于营业税改征增值税试点后发票票种的公告》(四川省国家税务局公告2013年第3号) 为保障营业税改征增值税后不同纳税人经营活动需要,满足纳税人对发票的使用需求,四川省国税系统增值税专用发票和增值税普通发票在原有的4种基础上新增2种货物运输业增值税专用发票,其他普通发票将在原有41种普通发票票种的基础上,新增出租车专用的通用机打卷式发票、旅客运输机打发票、客运定额发票等8种规格的普通发票。 因此,2013年8月1日以后乘坐出租车取得的发票应为国税监制发票。
如果您的问题还没有解决,可以到 T+搜索>>上找一下答案
相关阅读
- 钱流信息-现金银行收支查询-查询结果的明细列表会出现以下错误:-如果收款单中填写了2个收款账户,在查询列表中会出现相同的两条数据。-例,收款单001 账户A 1000元 账户B2000元-明细列表是 :-单号001 账户A 1000元-单号001 账户B 2000元-单号001 账户A 1000元-单号001 账户B 2000元2017-7-17 0:0:0
- 销售业务-业务场景 客户是卖布艺的 材料是平方 购进 卖的时候是以长-宽 得出来的平方,但是软件中 只能填一个数量 能否 把 数量设定公式 =长-宽的值 这样 数量-单价就是最终的金额了2017-7-17 0:0:0
- 销售出库单怎么新增?为何没有增加按钮?是账套有问题?还是操作问题?2017-7-17 0:0:0
- 销售成本明细表里边折后价(只有一个商品)显示0,其他的的都正常,是哪里出了问题2017-7-17 0:0:0
- 销售时,仓库有100个商品,客户购买了50个商品,并支付了50个商品的钱,那我仓库就应该出库50,还剩50。但他是分批拿走货的,我还要知道仓库还剩多少,他拿走了多少,还有多少没拿走?业务流程应该怎么弄?怎么做?2017-7-17 0:0:0
- 采购单据进行正常单据记账生成凭证,销售单据不想生成凭证,手工做凭证,月底核算模块可以正常结账吗?2017-7-17 0:0:0
- 采购订单做完,审核后,新增采购入库单参照订单生成时,含税单价会自动多出0.01分钱,含税总金额就多出好多,与订单就不一样了,这是怎么回事?数量都是完全一样。2017-7-17 0:0:0
- 采购订单流转生成采购入库单时,流转是灰色的,不可用,怎么办?2017-7-17 0:0:0
- 采购退货的红字采购入库单审核提示现存量不足,有什么办法可以把单据审核掉呢?2017-7-17 0:0:0
- 重新计价后好不好恢复2017-7-17 0:0:0
最新信息
- 还没开票的做到预收科目,那成本可以先做进去吗?
- 进入总账提示所选行业性质与科目不相符,去检查表提示数据库严重损坏,修复数据提示成功,再去检测又是严重错误
- 进入总账正常,打开报表,选择报表文件,提示正在使用或被锁定。另存为后,打开正常,但是点打印时提示内容如图。点确定,重新进入财务报表时就提示报表为试用版。重新打补丁后又可以进入,还是一样问题循环。求解??
- 进入报表系统显示
- 进入界面提示:请使用系统维护工具修复数据库:k:-记账宝-zwset.mdb! 是4G的 _0
- 进入系统是提示无法连接服务器
- 进入财务报表模块,总是提示当前运行的是试用版 ,多次注册了还有提示。-报表最多追加4页,-报表不能打印,总是保存下来在打印。-财务报表数据不准,,有时候对,有时候不对,
- 进入账套后,点击编制凭证,出现动态库JZBComp.dll加载失败,点确定,记账宝就退出了。怎么办?我的邮箱为<span class="__cf_email__" data-cfemail="b381858385808385878184f3c2c29dd0dcde">[email protected]</span>
- 进入软件总是要密码,但是在安装数据库的时候没有密码。
- 进入软件提示这个问题 11.5的版本 打了最新补丁。已经成功注册。
![表间取数不能进行多表取数](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
表间取数不能进行多表取数 表间取数不能进行多表取数
问题号: | 4694 |
---|---|
解决状态: | 其他 |
软件版本: | 其他 |
软件模块: | UFO |
行业: | 其他 |
关键字: | 表间取数不能进行多表取数 |
适用产品: | U85X |
问题名称: | 表间取数不能进行多表取数 |
问题现象: | 表间取数不能进行多表取数 |
问题原因: | 公式超长 |
解决方案: | 在二次开发工具中利用LET 单元格=单元格+公式,可解决问题 |
补丁编号: | |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
![采购发票单价是否含税](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
采购发票单价是否含税 采购发票单价是否含税
问题号: | 30418 |
---|---|
适用产品: | T6系列 |
软件版本: | T6-企业管理软件V6.1 |
软件模块: | 采购管理 |
问题名称: | 采购发票单价是否含税 |
问题现象: | 采购入库单上单价10,数量10,含税单价11.7,税额17,价税合计117,参照采购入库单生成采购发票,采购发票上单价变成11.7,税额19.89,单价应该是10,税额应该是17才对,什么原因。 |
问题原因: | 供应商档案中选择了“单价是否含税”。 |
关键字: | 单价是否含税 |
解决方案: | 供应商档案信用页签勾选了“单价是否含税”,去掉后参照入库生成发票,发票上单价带出入库单上不含税单价。 |
行业: | 通用 |
补丁编号: | |
解决状态: | 最终解决方案 |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
![这是怎么回事,我期初导入固定资产,卡片是录入的一月份的,怎么对账平](http://sto.chanapp.chanjet.com/4a47ecad-3fcd-422b-879b-b2df91606e00/img/2016/04/19/1461051120rxS7.jpg)
这是怎么回事,我期初导入固定资产,卡片是录入的一月份的,怎么对账平 这是怎么回事,我期初导入固定资产,卡片是录入的一月份的,怎么对账平
根据您提供的图片是只有科目数据,没有卡片的数据,确定软件中有卡片吗,到资产管理的卡片管理中查询。@服务社区刘小艳:您看下@高升zIb:您先备份账套后到社区—产品更新下载补丁执行后再重新进行对账,根据您提供的信息,步骤是没有WNET的。
![使用期达5年的非国标税控机是否需更换_纳税辅导_综合类辅导](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
使用期达5年的非国标税控机是否需更换_纳税辅导_综合类辅导 使用期达5年的非国标税控机是否需更换_纳税辅导_综合类辅导
问题:使用期达到5年的非国标税控机是否需要更换?
2008-05-26 阅读次数: 607 [ 字体大小: 大 中 小 ]
回复:自非国标税控装置初始化之日起,凡使用期达到5年(60个月)的,应按规定更换购置国标税控收款机。
- 经常出现账套年度演示期限已到期,怎么办?
- 麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5?
- 麻烦问下,账簿交接怎么操作
- 麻烦问下:增值税普票次月开了负数发票,做账时是否都要把财务联和发票联附在记账凭证后,另外当月作废的增值税普票怎么处理呢?谢谢!
- 黄色的加密狗驱动不了,在服务社区下载的驱动安装后也是不行,win2003的系统
- 黄色部分的最新成本错了,如何修改
- (-0.2)的2009次方乘(-5)的2010次方
- (时间是11点多的时候还没吃饭)体育考试立定跳远 和跑完50米后 然后走20几分钟去车站搭车
- ,小额纳税企业在营业大厅开增值税专用发票税点是多少
- 1。T3升级上来,增加了 人事管理模块 ,加密狗刷新了 薪资管理还是系那是演示版……--2.还有就是 登录进去经常会出现登录子系统失败,退出再登录进去就行-请教
![现金管理的常见错误](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
现金管理的常见错误 现金管理的常见错误
1.出纳现金未日清月结,月末未与会计及时对账,不能及时发现是否存在盘盈盘亏等问题并查明原因。
2.库存现金过多,日常结算大量使用现金,存在潜在的不安全因素和舞弊隐患。
3.库存现金账面出现负数,给人的第一印象就是假账,因为正常情况下,库存现金余额是不太可能出现负数的,一般都是因为挑选部分单据做“外账”时会才会出现这种情况。
4.会计长期未对出纳经管的现金进行检查,个别出纳利用管理漏洞挪用现金而公司却未能及时发现。
- 请问:修改制单人后以前做账的制单人不能同步修改吗?以前做好的账的制单人姓名?
- 请问,我们缴纳的税款入库到哪里了?在哪里可以看出入哪个金库了?三方协议上能看出吗?
- 请问,我先前收到一笔货款,不知道是谁付的,借:银行存款,贷:应收账款-未知;现在确认是谁付的后,我该怎样调账
- 请问,我公司是一般纳税人,供应商开给我们的进项名字开错了,已经被我们认证了,但是客户那边作废重开了一张,重开的未认证,这种进项转出要怎么做的?直接做一张红字红冲就可以了么?
- 请问,我看她写的期限是一年,那么一年以后,现在建立的帐套还在么
- 请问,我进项一个东西含税价是62元,税负率算1.2%,进销都是17%的税钱收,卖出去我要卖多少钱才不会亏呢?有公式吗
- 请问,新版的国税季报利润表里,本期金额和上期金额怎么填,取哪个数呢,谢谢
- 请问,用友建账建筑行业行业性质选哪个?
- 请问,财务做帐时后面附的合同必须是原件吗?
- 请问:店铺转让费10万元放在什么科目核算?新店。如果要摊消,几年摊完比较合理。坐得各位高手解答。谢谢。
![用友T3用友通民非行业是否需要月末转账](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
用友T3用友通民非行业是否需要月末转账 用友T3用友通民非行业是否需要月末转账
民营非盈利性行业性质是否需要做月末转账?民营非盈利性行业性质不存在盈利,不需要结转到本年利润科目,软件中不需要做月末转账。民营非盈利性行业性质,虽然软件中不需要月末转账,但是需要手工填制凭证把收入费用类科目结转到非营利性净资产科目中。如有其它问题,请联系在线客服咨询。用友云基地
- 钱流信息-现金银行收支查询-查询结果的明细列表会出现以下错误:-如果收款单中填写了2个收款账户,在查询列表中会出现相同的两条数据。-例,收款单001 账户A 1000元 账户B2000元-明细列表是 :-单号001 账户A 1000元-单号001 账户B 2000元-单号001 账户A 1000元-单号001 账户B 2000元
- 销售业务-业务场景 客户是卖布艺的 材料是平方 购进 卖的时候是以长-宽 得出来的平方,但是软件中 只能填一个数量 能否 把 数量设定公式 =长-宽的值 这样 数量-单价就是最终的金额了
- 销售出库单怎么新增?为何没有增加按钮?是账套有问题?还是操作问题?
- 销售成本明细表里边折后价(只有一个商品)显示0,其他的的都正常,是哪里出了问题
- 销售时,仓库有100个商品,客户购买了50个商品,并支付了50个商品的钱,那我仓库就应该出库50,还剩50。但他是分批拿走货的,我还要知道仓库还剩多少,他拿走了多少,还有多少没拿走?业务流程应该怎么弄?怎么做?
- 采购单据进行正常单据记账生成凭证,销售单据不想生成凭证,手工做凭证,月底核算模块可以正常结账吗?
- 采购订单做完,审核后,新增采购入库单参照订单生成时,含税单价会自动多出0.01分钱,含税总金额就多出好多,与订单就不一样了,这是怎么回事?数量都是完全一样。
- 采购订单流转生成采购入库单时,流转是灰色的,不可用,怎么办?
- 采购退货的红字采购入库单审核提示现存量不足,有什么办法可以把单据审核掉呢?
- 重新计价后好不好恢复
![t6固定资产计提完折旧如下提示,已使用工具清除异常,仍是此提示?](http://sto.chanapp.chanjet.com/4a47ecad-3fcd-422b-879b-b2df91606e00/img/2016/10/14/1476415423ViYh.jpg)
t6固定资产计提完折旧如下提示,已使用工具清除异常,仍是此提示? t6固定资产计提完折旧如下提示,已使用工具清除异常,仍是此提示?
链接:http://pan.baidu.com/s/1eRAlgsU 密码:azce
那就试试我这个工具吧!使用工具的时候,服务器以及其他的客户端都退出!退出所有站点,重新启动服务器,然后在计提折旧@qq392629945:还是一样@畅捷服务李笑旺:不行@三明鑫创Yan:怎么可能@三明鑫创Yan:链接: http://pan.baidu.com/s/1c8780A 密码: pquy用这个试试@qq392629945:用工具检测提示没有锁定奇葩天天有啊!@三明鑫创Yan:我没有说锁定,你清除所有任务不就可以!@qq392629945:也清除了,一样的,我是把客户的数据恢复到我电脑上一样这个提示@三明鑫创Yan:那就奇怪了@三明鑫创Yan:链接: http://pan.baidu.com/s/1hsiCUPm 密码: qnns试试这个@qq392629945:清清楚完可以计提折旧但是计提结束又是这个提示,点取消又有另外两个错误提示@三明鑫创Yan:说明你这个账套的数据库有问题@三明鑫创Yan:您好,该问题是数据问题,您联系一下您的服务商,提交支持网数据吧
![你好,刚半路接手的软件,没有交接,只有一个账号密码进入,怎么可以查询去年的账套,能说的具体点吗](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
你好,刚半路接手的软件,没有交接,只有一个账号密码进入,怎么可以查询去年的账套,能说的具体点吗 你好,刚半路接手的软件,没有交接,只有一个账号密码进入,怎么可以查询去年的账套,能说的具体点吗[]
你现在的是账套主管权限吗? 通常去年的数据也是属于本账套的,登录时候选年份就好应该不是吧,去年的账套进不去,主管怎么进去@服务社区_孙彦杰:应该不是吧,去年的账套进不去,主管怎么进去登录界面 选择年份 截图@服务社区_孙彦杰:@服务社区_孙彦杰:只能进2016,选2015进不去,没反应系统管理 用admin 密码为空登陆下看看2015年度操作日期选2015-12-31@服务社区_孙彦杰:不行,非法@服务社区_孙彦杰:可以了,日期改成去年最后一天就行了@Eventay:感谢啊,解救了我@Eventay:[/强]
- 销售订单,联查都已经没有后续单据了,但是还是一直提示单据已后续执行,不能弃审。
- 销售订单,表头,字段的位置可以移动吗?如何移动控件位置? _0
- 销售费用分摊单,什么情况下适合进行分摊,我方付运费时?还是客户方付运费我方暂时垫付时?
- 销货单已经部分出库,做了出库单,现在想要在不删除出库单的前提下将销货单弃审后修改价格再重新审核能实现吗?还是说一定要把出库单删除后才能够弃审销货单?
- 销售报表上怎么把单据的备注显示出来
- 销售排行榜报表和图表怎么显示
- 销售排行榜统计的数据是扣除退货的吗?
- 销售统计表想某一自定义数值型要显示但不做合计可以吗?
- 销售订单上能不能显示客户应收款?
- 销售订单如何自动带出最新的销售单价?
![用友U8.60U860车间管理模块的工序转移单](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
用友U8.60U860车间管理模块的工序转移单U8.60U860车间管理模块的工序转移单
U8.60-U860车间管理模块的工序转移单
自动编号: | 14065 | 产品版本: | U8.60 |
产品模块: | 车间管理 | 所属行业: | 通用 |
适用产品: | U860----生产制造--车间管理 | 关 键 字: | 日常操作 |
问题名称: | U860车间管理模块的工序转移单 | ||
问题现象: | 请教U860车间管理模块的工序转移单保存后没办法修改或删除,是不是没有修改和删除按钮,还是我的操作方式有误。 | ||
原因分析: | 同解决方案 | ||
解决方案: | 请参考手册及需求:“本作业提供新增、查询、报检、打印等基本功能,单据一经确认即不可修改或删除。如果移动错误,可执行反向移动”! 温馨提示:如果您的问题还没有解决,欢迎进入用友云基地。 |
![用友T3用友通原始卡片已计提月份无法显示](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
用友T3用友通原始卡片已计提月份无法显示 用友T3用友通原始卡片已计提月份无法显示
录入原始卡片时,录入了开始使用日期,已使用月份却无法自动显示。可能是由于修改或删除了资产类别导致的。使用企业管理器打开表fa_assetypes(资产类别表)对照演示帐套,比较后将发生问题的帐套表中的个别不同于演示帐套的数值改动一下就行了。如有其它问题,请联系在线客服咨询。用友云基地
![在生成当月折旧清单后,提示凭证已生成,无法生成当月的折旧分配凭证](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
在生成当月折旧清单后,提示凭证已生成,无法生成当月的折旧分配凭证 在生成当月折旧清单后,提示凭证已生成,无法生成当月的折旧分配凭证
问题号: | 13525 |
---|---|
解决状态: | 临时解决方案 |
软件版本: | 8.51A |
软件模块: | 固定资产 |
行业: | 通用 |
关键字: | 无法生成费用分配凭证 |
适用产品: | U8 |
问题名称: | 在生成当月折旧清单后,提示凭证已生成,无法生成当月的折旧分配凭证 |
问题现象: | 在生成当月折旧清单后,提示凭证已生成,无法生成当月的折旧分配凭证。 |
问题原因: | fa_deprvouchermain缺少上月的记录,fa_deprvouchers表中有当月的多条分配记录。 |
解决方案: | 删除fa_deprvouchers表中的多余记录,在fa_deprvouchermain表中补上缺少的上月的记录。 |
补丁编号: | |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
![用友U8.51有一张发票的号码为空值](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
用友U8.51有一张发票的号码为空值U8.51有一张发票的号码为空值
U8.51-有一张发票的号码为空值
自动编号: | 17829 | 产品版本: | U8.51 |
产品模块: | 销售管理 | 所属行业: | 通用 |
适用产品: | U851----销售管理 | 关 键 字: | 发票号空值 |
问题名称: | 有一张发票的号码为空值 | ||
问题现象: | 错误:有一张发票的号码是空值,然后用UPDATE语句去修改,但是提示错误。具体错误看图片。那张发票的SBVID='8642'。 | ||
原因分析: | 索引坏掉了 | ||
解决方案: | 使用下面语句来重建索引: USE DATABASE SP_MSFOREACHTABLE @COMMAND1="DBCC DBREINDEX('?','')with NO_INFOMSGS" 温馨提示:如果您的问题还没有解决,欢迎进入用友云基地。 |
![用友U8 销售系统中进销存统计表与销售毛利分析不一致。正常时进销存统计表中的销售数量、销售金额应分别与销售毛利分析中的本期数量、毛利变动扩影响分析售价影响一致,但在用户处11月份不一致](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
用友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)
- 经常出现账套年度演示期限已到期,怎么办?
- 麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5?
- 麻烦问下,账簿交接怎么操作
- 麻烦问下:增值税普票次月开了负数发票,做账时是否都要把财务联和发票联附在记账凭证后,另外当月作废的增值税普票怎么处理呢?谢谢!
- 黄色的加密狗驱动不了,在服务社区下载的驱动安装后也是不行,win2003的系统
- 黄色部分的最新成本错了,如何修改
- (-0.2)的2009次方乘(-5)的2010次方
- (时间是11点多的时候还没吃饭)体育考试立定跳远 和跑完50米后 然后走20几分钟去车站搭车
- ,小额纳税企业在营业大厅开增值税专用发票税点是多少
- 1。T3升级上来,增加了 人事管理模块 ,加密狗刷新了 薪资管理还是系那是演示版……--2.还有就是 登录进去经常会出现登录子系统失败,退出再登录进去就行-请教
![材料出库单在存货编码一栏中无法参照存货](http://www.kuaiji66.com/t1/zb_users/plugin/MiniTu/noimg.png)
材料出库单在存货编码一栏中无法参照存货材料出库单在存货编码一栏中无法参照存货
|
解决方案
热点文章
- 经常出现账套年度演示期限已到期,怎么办?
- 麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5?
- 麻烦问下,账簿交接怎么操作
- 麻烦问下:增值税普票次月开了负数发票,做账时是否都要把财务联和发票联附在记账凭证后,另外当月作废的增值税普票怎么处理呢?谢谢!
- 黄色的加密狗驱动不了,在服务社区下载的驱动安装后也是不行,win2003的系统
- 黄色部分的最新成本错了,如何修改
- (-0.2)的2009次方乘(-5)的2010次方
- (时间是11点多的时候还没吃饭)体育考试立定跳远 和跑完50米后 然后走20几分钟去车站搭车
- ,小额纳税企业在营业大厅开增值税专用发票税点是多少
- 1。T3升级上来,增加了 人事管理模块 ,加密狗刷新了 薪资管理还是系那是演示版……--2.还有就是 登录进去经常会出现登录子系统失败,退出再登录进去就行-请教
使用技巧
经常出现账套年度演示期限已到期,怎么办?
最近经常有用户在使用用友财务管理软件的时候提示“演示期限已到期”,如下图。特别是T3用户,T+、T6和U8用户也会出现类似问题。越是报税期越出现的频繁,越是着急越是出问题,出现这种问题, 不能做账填制会计凭证了,也出不了财务报表,很多会计都非常的着急。该怎么办呢?别着急啦,本文会详细讲解决方案。全心全意为用户排忧解难是用友天龙瑞德公司的服务宗旨。
麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5?
麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5? 麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5?[]
[/强]您好!您理解的是对的,要在T6 6.1环境下使用T3升级T6的工具,升级完成后,恢复到6.1环境,备份出6.1的数据,安装6.5,再升级到6.5
用友热销产品
知 识 库
这两个单据上的成本价怎么不一样 一张是销货单 一张是销售出库单 是同一批货物 销售出库单上单成本价是正确的 销货单上单不对
这两个单据上的成本价怎么不一样 一张是销货单 一张是销售出库单 是同一批货物 销售出库单上单成本价是正确的 销货单上单不对 这两个单据上的成本价怎么不一样 一张是销货单 一张是销售出库单 是同一批货物 销售出库单上单成本价是正确的 销货单上单不对
我怎么看到的都是一样的是583.03叻。[/尴尬]
根据图2上显示的来源单据号和图1的单据编号核对,出库单不是由这张销货单生成的这个应该怎么办,最好有操作流程
这个应该怎么办,最好有操作流程 这个应该怎么办,最好有操作流程
在服务社区-更多,工具下载中下载:数据库Sa口令清除及T3注册组件工具:
http://service.chanjet.com/main/supportgongju清除sa密码,然后再登录,不行的话,请参考服务社区-知识库中的文档进行处理:
http://service.chanjet.com/zhi ... b45b0
- 最新文章排行
- 热门文章排行
- T3普及版,资产负债表,追加表页,看不到了,是什么原因?
- T3打开乱码,安装软件时,弹出菜单也是乱码
- T+12.1标准版,科目明细账无法导出
- T+12.1用今天这个补丁升级失败。请解
- T+12.1 往来单位设置自动编码,新增往来单位编码一直是最后一个,点哪个分类都一样
- T+标12.1 用8.17日的补丁升级失败。请问什么办?
- T+怎么把停用的员工永久显示出来
- 1。T3升级上来,增加了 人事管理模块 ,加密狗刷新了 薪资管理还是系那是演示版……--2.还有就是 登录进去经常会出现登录子系统失败,退出再登录进去就行-请教
- ,小额纳税企业在营业大厅开增值税专用发票税点是多少
- (时间是11点多的时候还没吃饭)体育考试立定跳远 和跑完50米后 然后走20几分钟去车站搭车
- 经常出现账套年度演示期限已到期,怎么办?
- 麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5?
- 麻烦问下,账簿交接怎么操作
- 麻烦问下:增值税普票次月开了负数发票,做账时是否都要把财务联和发票联附在记账凭证后,另外当月作废的增值税普票怎么处理呢?谢谢!
- 黄色的加密狗驱动不了,在服务社区下载的驱动安装后也是不行,win2003的系统
- 黄色部分的最新成本错了,如何修改
- (-0.2)的2009次方乘(-5)的2010次方
- (时间是11点多的时候还没吃饭)体育考试立定跳远 和跑完50米后 然后走20几分钟去车站搭车
- ,小额纳税企业在营业大厅开增值税专用发票税点是多少
- 1。T3升级上来,增加了 人事管理模块 ,加密狗刷新了 薪资管理还是系那是演示版……--2.还有就是 登录进去经常会出现登录子系统失败,退出再登录进去就行-请教
问题解答
培训教程
还没开票的做到预收科目,那成本可以先做进去吗?
还没开票的做到预收科目,那成本可以先做进去吗? 还没开票的做到预收科目,那成本可以先做进去吗?[]
有收入才能结转成本的那成本挂哪个科目啊?其他应收款吗?@若只如初见520:要是销售的产品的话,产品本来做在库存里啊,要是人工施工的话,做在工程施工里,等有了收入在结转成本的成本与收入相对应,确认收入才能结转成本我们是人力资源公司,签了一份人事代理协议,代缴五险一金。之前收到他们的钱做了预收账款,还没给开票,现在给他们缴纳了五险一金,这些费用是入到成本吗?@若只如初见520:代付代缴应该走其他应收款/其他应付款@口袋的天空焕:那我做到其他应收款,等到开票了,有收入后,把预收的转入主营业务收入,其他应收款转入主营业务成本,,这样对吗@若只如初见520:代缴的五险一金你们也给开票么?@口袋的天空焕:开在一张发票上面,昨天还一直纠结这个问题,受累帮忙看看代缴的五险一金你们不是已经说到客户的款项了么,那个不应该作为你们的成本吧?@口袋的天空焕:我现在也纠结是做成本还是其他应收款冲了,税务局说这张发票的开票金额都要入营业额,那我支出的是不是成本@若只如初见520:。。。那要是代缴的五险一金都算是收入的话,那你们为客户缴纳五险一金的时候也走的是管理费用啊进入总账提示所选行业性质与科目不相符,去检查表提示数据库严重损坏,修复数据提示成功,再去检测又是严重错误
进入总账提示所选行业性质与科目不相符,去检查表提示数据库严重损坏,修复数据提示成功,再去检测又是严重错误 进入总账提示所选行业性质与科目不相符,去检查表提示数据库严重损坏,修复数据提示成功,再去检测又是严重错误[]
反复执行修复工具,直到修复到没有错误为止。建议备份好之前数据,损坏严重的情况下,也有可能修复不好,无限报错。use ufdata_071_2015
select * from code执行这语句时报上述错误@廖深根:构架损坏可能很难修复。尝试使用工具下载中的数据库修复工具,进行修复。然后还有个账套也是提示所选行业性质与科目不相符,经检查无误,但是进入账套还是提示不符@廖深根:根据您的描述,一致性错误导致的行业性质与科目不相符,您先修复成功,再来解决这个问题吧。修复数据库?@廖深根:请参考之前给您的回复。尝试使用工具下载中的数据库修复工具,进行修复。但是结构错误很难修复,工具只能修正一些简单错误。不保证工具一定管用。如果持续报错,建议您寻求专业的数据修复公司尝试修复。@服务社区窦佳:工具使用前,请注意备份账套。