广告公司购买了一个德国远红外线装置的烤炉,我不懂怎么做折旧,可以用几年,净残值为多少呢?
2017-10-17 0:0:0 用友T1小编广告公司购买了一个德国远红外线装置的烤炉,我不懂怎么做折旧,可以用几年,净残值为多少呢?
广告公司购买了一个德国远红外线装置的烤炉,我不懂怎么做折旧,可以用几年,净残值为多少呢?[]跟生产经营活动有关吗 有就按5年折旧 残值可以为0 也可为5%第六十条:除国务院财政、税务主管部门另有规定外,固定资产计算折旧的最低年限如下:
(一)房屋、建筑物,为20年;
(二)飞机、火车、轮船、机器、机械和其他生产设备,为10年;
(三)与生产经营活动有关的器具、工具、家具等,为5年;
(四)飞机、火车、轮船以外的运输工具,为4年;
(五)电子设备,为3年。
「释义」本条是对固定资产最低折旧年限的规定企业所得税法实施条例第六十条 除国务院财政、税务主管部门另有规定外,固定资产计算折旧的最低年限如下:
(三)与生产经营活动有关的器具、工具、家具等,为5年
看看是否符合财税〔2014〕75号 允许一次性计入当期成本费用 与 可缩短折旧年限或采取加速折旧的方法
净残值为多少呢?----自行决定
如果您的问题还没有解决,可以到 T+搜索>>上找一下答案
相关阅读
- 还没开票的做到预收科目,那成本可以先做进去吗?2017-10-22 0:0:0
- 进入总账提示所选行业性质与科目不相符,去检查表提示数据库严重损坏,修复数据提示成功,再去检测又是严重错误2017-10-22 0:0:0
- 进入总账正常,打开报表,选择报表文件,提示正在使用或被锁定。另存为后,打开正常,但是点打印时提示内容如图。点确定,重新进入财务报表时就提示报表为试用版。重新打补丁后又可以进入,还是一样问题循环。求解??2017-10-22 0:0:0
- 进入报表系统显示2017-10-22 0:0:0
- 进入界面提示:请使用系统维护工具修复数据库:k:-记账宝-zwset.mdb! 是4G的 _02017-10-22 0:0:0
- 进入系统是提示无法连接服务器2017-10-22 0:0:0
- 进入财务报表模块,总是提示当前运行的是试用版 ,多次注册了还有提示。-报表最多追加4页,-报表不能打印,总是保存下来在打印。-财务报表数据不准,,有时候对,有时候不对,2017-10-22 0:0:0
- 进入账套后,点击编制凭证,出现动态库JZBComp.dll加载失败,点确定,记账宝就退出了。怎么办?我的邮箱为[email protected]2017-10-22 0:0:0
- 进入软件总是要密码,但是在安装数据库的时候没有密码。2017-10-22 0:0:0
- 进入软件提示这个问题 11.5的版本 打了最新补丁。已经成功注册。2017-10-22 0:0:0
最新信息
- 还没开票的做到预收科目,那成本可以先做进去吗?
- 进入总账提示所选行业性质与科目不相符,去检查表提示数据库严重损坏,修复数据提示成功,再去检测又是严重错误
- 进入总账正常,打开报表,选择报表文件,提示正在使用或被锁定。另存为后,打开正常,但是点打印时提示内容如图。点确定,重新进入财务报表时就提示报表为试用版。重新打补丁后又可以进入,还是一样问题循环。求解??
- 进入报表系统显示
- 进入界面提示:请使用系统维护工具修复数据库:k:-记账宝-zwset.mdb! 是4G的 _0
- 进入系统是提示无法连接服务器
- 进入财务报表模块,总是提示当前运行的是试用版 ,多次注册了还有提示。-报表最多追加4页,-报表不能打印,总是保存下来在打印。-财务报表数据不准,,有时候对,有时候不对,
- 进入账套后,点击编制凭证,出现动态库JZBComp.dll加载失败,点确定,记账宝就退出了。怎么办?我的邮箱为<span class="__cf_email__" data-cfemail="b381858385808385878184f3c2c29dd0dcde">[email protected]</span>
- 进入软件总是要密码,但是在安装数据库的时候没有密码。
- 进入软件提示这个问题 11.5的版本 打了最新补丁。已经成功注册。
用友T3核算模块中收发存汇总表结存金额数异常 用友T3核算模块中收发存汇总表结存金额数异常
核算模块中收发存汇总表,有几个存货的结存金额数异常,金额达到10几位数,实际上结存金额不可能这么大。在日常业务流程中有负出库的情况,针对有负出库的业务,在核算记账后,要添加出入库调整单,将成本金额调整正确。该问题就是由于没有做出入库调整单导致的,反结账至第一笔负出库业务,然后添加出入库调整单,将结存成本调整为正常数值。如果只需要最后结存成本正确,可以直接做出入库调整单,将结存成本调整为正常数值。如有其它问题,请联系在线客服咨询。用友云基地
- 问一下增资是不是只要交印花税呀 _0
- 问下 老板的爱人 住院时 是公司付款 但后来发票不见了 一直挂着帐,借-预付 现改挂老板帐上 可以吗 借 其他应付-老板 贷预付 可以吗 _0
- 问下各位老师,招待费和差旅费有什么区别,出差的饮食发票走招待费,还是差旅费呢,谢谢啦!
- 问下各位老师,招待费和差旅费有什么区别,出差的饮食发票走招待费,还是差旅费呢,谢谢啦! _0
- 问下,失业保险,你们有分个人和单位两部分吗?还是失业保险都由公司缴纳?
- 问下,我2016年底报名2017年的初级职称考试我是要看2016年的资料还是要看2017年的呀 _0
- 问个T+外网访问的问题,服务器是固定Ip,也没有被转发,映射了服务器8080端口,telnet端口也正常了,内网可以通过外网Ip访问,外网访问不了,这是为什么呢?
- 问题1、T6启用生产管理模块和委外模块 需要启用成本模块吗?启用和不启用有什么区别?-问题2、生产管理启用之后 怎么单独启用简单生产管理-问题3、T6有没有手机端查看生产进度的功能
- 附加时状态显示“不存在”,附加不成功,这是什么回事?
- 随进夏季,犹如初春,人家都说春雨贵如油,看来我得去外面‘打点酱油了’
T+普怎么改单据编号方式?? T+普怎么改单据编号方式??[]
打最新的补丁就可以了,有单据编号设置的功能。@畅捷服务刘攀:就是12.0补丁包吗?没有分普几和标准版的吗?@csp付煦文:12.0和12.1的补丁包都不分的,12.1的补丁确定更新过这个,12.0的我现在手头上没有办法帮您测试,您先打个补丁看一下,如果没有就提交一下支持网问题。
- 经常出现账套年度演示期限已到期,怎么办?
- 麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5?
- 麻烦问下,账簿交接怎么操作
- 麻烦问下:增值税普票次月开了负数发票,做账时是否都要把财务联和发票联附在记账凭证后,另外当月作废的增值税普票怎么处理呢?谢谢!
- 黄色的加密狗驱动不了,在服务社区下载的驱动安装后也是不行,win2003的系统
- 黄色部分的最新成本错了,如何修改
- (-0.2)的2009次方乘(-5)的2010次方
- (时间是11点多的时候还没吃饭)体育考试立定跳远 和跑完50米后 然后走20几分钟去车站搭车
- ,小额纳税企业在营业大厅开增值税专用发票税点是多少
- 1。T3升级上来,增加了 人事管理模块 ,加密狗刷新了 薪资管理还是系那是演示版……--2.还有就是 登录进去经常会出现登录子系统失败,退出再登录进去就行-请教
老师我想问一下,就是这个联系地址里要写什么才能显示客户的地址呢? 老师我想问一下,就是这个联系地址里要写什么才能显示客户的地址呢?
您好,您要在基本信息-往来单位里的联系地址里添加。老师,来往单位里是有地址的,就是这里不显示,是前面这个命令写错了还是怎么回事?老师你看,这个往来单位里是有地址的@程富忠:您好,您用[主项数据."往来单位地址"]。
现金流量表 现金流量表
问题号: | 21453 |
---|---|
适用产品: | U6 |
软件版本: | U6普及版3.2 |
软件模块: | 现金管理 |
问题名称: | 现金流量表 |
问题现象: | U6中的UFO报表中的现金流量表中按月不能显示,数据运算的时候不显示按月的数据。能看到年的数据本期金额看不到,可以看到上期金额 |
问题原因: | - |
关键字: | |
解决方案: | 在格式状态下进行关键字设置,选择按月查询,公式中的会计期间也选择月,转换到数据状态录入关键字时即可选择具体的月份。本期金额看不到只能看到上期金额,这种现象产生的原因有很多,公式的设置是不是取月和月之间,取的会计科目是否正确等。 |
行业: | |
补丁编号: | |
解决状态: | |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
- 请问:修改制单人后以前做账的制单人不能同步修改吗?以前做好的账的制单人姓名?
- 请问,我们缴纳的税款入库到哪里了?在哪里可以看出入哪个金库了?三方协议上能看出吗?
- 请问,我先前收到一笔货款,不知道是谁付的,借:银行存款,贷:应收账款-未知;现在确认是谁付的后,我该怎样调账
- 请问,我公司是一般纳税人,供应商开给我们的进项名字开错了,已经被我们认证了,但是客户那边作废重开了一张,重开的未认证,这种进项转出要怎么做的?直接做一张红字红冲就可以了么?
- 请问,我看她写的期限是一年,那么一年以后,现在建立的帐套还在么
- 请问,我进项一个东西含税价是62元,税负率算1.2%,进销都是17%的税钱收,卖出去我要卖多少钱才不会亏呢?有公式吗
- 请问,新版的国税季报利润表里,本期金额和上期金额怎么填,取哪个数呢,谢谢
- 请问,用友建账建筑行业行业性质选哪个?
- 请问,财务做帐时后面附的合同必须是原件吗?
- 请问:店铺转让费10万元放在什么科目核算?新店。如果要摊消,几年摊完比较合理。坐得各位高手解答。谢谢。
请问:我是一般纳税人企业,收购农副产品:商品编码里面树木的税率是13%,但是没有显示享受优惠政策,收购企业自己开具收购发票的时候,税率一栏是0%,企业能不能按照13%的税率来抵扣增值税? 请问:我是一般纳税人企业,收购农副产品:商品编码里面树木的税率是13%,但是没有显示享受优惠政策,收购企业自己开具收购发票的时候,税率一栏是0%,企业能不能按照13%的税率来抵扣增值税?[]
不能@xx2ll2:如果开出来的话,我们企业是不是要按13%来交税啊
- 钱流信息-现金银行收支查询-查询结果的明细列表会出现以下错误:-如果收款单中填写了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分钱,含税总金额就多出好多,与订单就不一样了,这是怎么回事?数量都是完全一样。
- 采购订单流转生成采购入库单时,流转是灰色的,不可用,怎么办?
- 采购退货的红字采购入库单审核提示现存量不足,有什么办法可以把单据审核掉呢?
- 重新计价后好不好恢复
应收模块对帐不平 应收模块对帐不平
问题号: | 11741 |
---|---|
解决状态: | 临时解决方案 |
软件版本: | 8.61 |
软件模块: | 应收 |
行业: | 通用 |
关键字: | 月末结账 |
适用产品: | U861–财务会计–应收款管理 |
问题名称: | 应收模块对帐不平 |
问题现象: | 2005年应收模块中,与总帐对帐中,期初数合计和期末数合计都比应收余额表少6500元,应收余额表的合计数与总帐数据是相同,请帮忙查明原因。 2006年工资分摊设置时,不能修改,出现错误。 |
问题原因: | 同解决方案 |
解决方案: | 问题1由于数据中从2004年存在3张日期异常单据(其他应收单)造成,可通过下面语句查询: select * from ufdata_001_2004..ap_detail where iFlag4 and (iperiod=’0′ and cPZID is null) and cflag=’ar’ and ((dPZDateN’2006-01-31′) or (dPZDate>N’2006-01-31′ and dRegDateN’2006-01-31′ and dRegDate>’2006-01-31′)) select * from ufdata_001_2004..ap_vouch where cvouchtype=’r0′ and cvouchid in (‘0000005168′,’0000004687′,’0000002614′) 请根据实际业务更新或在期初界面中删除即可。 问题2是由于在Department表中删除部门但未在工资分摊设置表WA_GZsumComCfg中删除该部门导致,通过下面语句可以查询: SELECT WA_GZsumComCfg.iJT_id, WA_GZsumComCfg.iPsnGrd_id, WA_grade.cPsnGrd, WA_GZsumComCfg.iGZItem_id, WA_GZtblset.cSetGZItemName, WA_GZsumComCfg.cDebit, WA_GZsumComCfg.cCreditSide, WA_GZsumComCfg.cDepCode, Department.cDepName FROM ((WA_GZsumComCfg LEFT JOIN Department ON WA_GZsumComCfg.cDepCode = Department.cDepCode) LEFT JOIN WA_GZtblset ON WA_GZsumComCfg.iGZItem_id = WA_GZtblset.iGZItem_id) LEFT JOIN WA_grade ON WA_GZsumComCfg.iPsnGrd_id = WA_grade.iPsnGrd_id WHERE –WA_GZsumComCfg.cGZGradeNum=’001′ AND iJT_id=1 and Department.cDepCode is null GROUP BY WA_GZsumComCfg.iJT_id, WA_GZsumComCfg.iPsnGrd_id, WA_grade.cPsnGrd, WA_GZsumComCfg.iGZItem_id, WA_GZtblset.cSetGZItemName, WA_GZsumComCfg.cDebit, WA_GZsumComCfg.cCreditSide, WA_GZsumComCfg.cDepCode, Department.cDepName 请作好备份后执行下面语句调整即可: —- delete from WA_GZsumComCfg where cDepCode=’50’ |
补丁编号: | |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
应收制单凭证分录拆分问题 应收制单凭证分录拆分问题
问题号: | 6526 |
---|---|
解决状态: | 临时解决方案 |
软件版本: | 8.52 |
软件模块: | 应收 |
行业: | 通用 |
关键字: | 应收制单凭证分录拆分问题 |
适用产品: | U85X—-应收款管理 |
问题名称: | 应收制单凭证分录拆分问题 |
问题现象: | 应收制单凭证分录拆分问题:在销售管理填制发货单后,生成出库单后生成发票,因为在财务上核算发票产生的应收款时是按明细分类核算的(“净酒”多少、“包装物”多数),收款冲销时也明确到具体的分类明细科目。目前应收系统生成凭证时不能满足企业需求,如: 借:应收帐款 7800.00 贷:产品销售收入 4273.51 贷:应交税金-销项税 726.49 贷:包装物-在用大瓶 1800.00 贷:包装物-在用塑箱 1000.00 用户希望能拆分分录:如;借:应收帐款-净酒 5000.00 借:应收帐款-包装物 2800.00 贷:产品销售收入 4273.51 贷:应交税金-销项税 726.49 贷:包装物-在用大瓶 1800.00 贷:包装物-在用塑箱 1000.00 |
问题原因: | 目前拆分受控科目凭证分录还无法做到。目前可按如下方法变通处理:生成发票时能否按明细分类核算的(“净酒”多少、“包装物”多数)开两张票,然后合并制单(选项:受控科目制单方式选“明细到单据”)就可以解决了。 |
解决方案: | 目前可按如下方法变通处理:生成发票时能否按明细分类核算的(“净酒”多少、“包装物”多数)开两张票,然后合并制单(选项:受控科目制单方式选“明细到单据”)就可以解决了。 |
补丁编号: | |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
- 销售订单,联查都已经没有后续单据了,但是还是一直提示单据已后续执行,不能弃审。
- 销售订单,表头,字段的位置可以移动吗?如何移动控件位置? _0
- 销售费用分摊单,什么情况下适合进行分摊,我方付运费时?还是客户方付运费我方暂时垫付时?
- 销货单已经部分出库,做了出库单,现在想要在不删除出库单的前提下将销货单弃审后修改价格再重新审核能实现吗?还是说一定要把出库单删除后才能够弃审销货单?
- 销售报表上怎么把单据的备注显示出来
- 销售排行榜报表和图表怎么显示
- 销售排行榜统计的数据是扣除退货的吗?
- 销售统计表想某一自定义数值型要显示但不做合计可以吗?
- 销售订单上能不能显示客户应收款?
- 销售订单如何自动带出最新的销售单价?
异地使用 远程通和金万维一样吗? 异地使用 远程通和金万维一样吗?[]
远程通不咋地@仲佟恒:金万维也可以吗远程通是用友和金万维的早期合作产品,远程通和金万维的异速联是一样的@张三black:好嘞 明白了远程通就是用友找金万维公司开发的。@251276285_QQ:谢谢 明白了
如果一个账套的库文件,备份文件都不在了,就彻底没法恢复账套了吗?? 如果一个账套的库文件,备份文件都不在了,就彻底没法恢复账套了吗??[]
再盖一栋呗恢复数据要有数据库的物理文件,或备份文件,如果都没有,确实无法恢复@畅捷服务章莹芳:好的!!@Eventay:好烦联系一下第三方硬盘修护的公司,看能不能把数据找回来
用友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)
已提足折旧固定资产未足额扣除部分应如何处理 已提足折旧固定资产未足额扣除部分应如何处理
问:我企业的生产设备按6年进行折旧,现年限已满且已提足折旧,但规定的最低折旧年限是10年,以前年度申报时均进行了调增,请问针对未足额扣除的部分现应如何处理?
答:《国家总局关于应纳税所得额若干问题的公告》(国家税务总局公告2014年第29号)第五条第(一)款规定,企业固定资产折旧年限如果短于税定的最低折旧年限,其按会计折旧年限计提的折旧高于按税法规定的最低折旧年限计提的折旧部分,应调增当期应纳税所得额;企业固定资产会计折旧年限已期满且会计折旧已提足,但税法规定的最低折旧年限尚未到期且折旧尚未足额扣除,其未足额扣除的部分准予在剩余的税收折旧年限继续按规定扣除。
- 经常出现账套年度演示期限已到期,怎么办?
- 麻烦问下,T3升级T6,是不是要先安装6.1,用工具升级,再导出帐套,安装6.5,再升级到6.5?
- 麻烦问下,账簿交接怎么操作
- 麻烦问下:增值税普票次月开了负数发票,做账时是否都要把财务联和发票联附在记账凭证后,另外当月作废的增值税普票怎么处理呢?谢谢!
- 黄色的加密狗驱动不了,在服务社区下载的驱动安装后也是不行,win2003的系统
- 黄色部分的最新成本错了,如何修改
- (-0.2)的2009次方乘(-5)的2010次方
- (时间是11点多的时候还没吃饭)体育考试立定跳远 和跑完50米后 然后走20几分钟去车站搭车
- ,小额纳税企业在营业大厅开增值税专用发票税点是多少
- 1。T3升级上来,增加了 人事管理模块 ,加密狗刷新了 薪资管理还是系那是演示版……--2.还有就是 登录进去经常会出现登录子系统失败,退出再登录进去就行-请教
采购业务反操作流程 采购业务反操作流程
问题号: | 23930 |
---|---|
适用产品: | T6系列 |
软件版本: | 605-用友T6-企业管理软件V3.3 |
软件模块: | 15-采购管理 |
问题名称: | 采购业务反操作流程 |
问题现象: | 按正常流程做了一笔采购业务,做了发票,现在发现有问题,要反操作,怎么处理? |
问题原因: | 按照顺序,一个一个模块进行反操作。 |
关键字: | 采购业务反操作流程 |
解决方案: | 一.应付模块: 1.删除应付生成的凭证:单据查询–凭证查询凭证列表里删除 弃审应付单据:在应付单据处理–应付单据审核,把已审核,已整单报销,未完全报销,包含现结发票打上勾, 选中单据,点击弃审。 二.存货核算模块: 1.取消月末结账:9月份注册进去,到月末结账取消8月份的帐 2.8月份注册进去,取消仓库期末处理:业务核算–期末处理–选择已期末处理仓库,点击全选,确认。 3.删除生成的凭证:财务核算凭证列表,选中要删除的采购入库单,点击删除 4.恢复记账;业务核算–恢复记账,选中单据,点击恢复 三.采购模块: 1.取消月末结账,8月的 2.取消结算:采购结算–结算单列表,双击单据打开,删除 四.应付模块:(应付款管理) 1.弃审核发票:应付单据审核 六.库存模块: 1.库存取消月末结账:8月份的 2.弃审采购入库单:直接选中改单据,点击“弃审” 3. 修改采购入库单:点击修改,把单据原来的单价清空,保存后,重新点击审核。 到这里反操作完成,可以修改发票。重新进行成本核算。 |
行业: | 0-通用 |
补丁编号: | |
解决状态: | 1-临时解决方案 |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
年结存时,确实年结后没反应,再次点击还可以年结,但依旧没反应?使用升级到sql2005,新建帐套再恢复年结,重装软件也是这样。 年结存时,确实年结后没反应,再次点击还可以年结,但依旧没反应?使用升级到sql2005,新建帐套再恢复年结,重装软件也是这样。[]
物理文件数据有几G了??备份好数据,维护中心-操作日志,把所有的日志都清掉。再到软件安装目录系统工具里进行数据整理一个G@服务社区黄旻:不行怎么办@何先生1480043587:您先按照上述方法操作下,如果还是不行建议您联系代理商支持网提交数据@服务社区黄旻:sql2000版本会影响年结吗,结存年份可以手动输入吗。现在那里没有2016年可以选择@何先生1480043587:数据库不会有影响年结,但如果数据太大,低版本的数据库可能会没有反应,您可以尝试升级到sql2008r2,如果还是不行,那么可能是数据出了问题,需要联系代理商支持网提交。结存年份可以手工输入的。@服务社区黄旻:我想将之前的帐套的基本信息和往来单位信息导入到新的帐套,怎么按分类导出信息@何先生1480043587:如果要分类,只能一个个大类导出来先@服务社区黄旻:怎样导入父类下面的商品@服务社区黄旻:我导入基本信息,提示:“单位不能为空”,可是有单位的@何先生1480043587:基本信息-商品辅助信息单位里有没有这单位?@服务社区黄旻:畅捷通T1附加数据库,怎么在登陆界面看不到帐套@何先生1480043587:需要自己手工在master库sub_list表里面手工添加一行这个账套的信息,注意每个版本对应的flgver值都不同。批发零售普及版对应的是“1001”、批发零售标准版对应的是“1”、IT通讯版对应的是“2”、财贸宝对应的是“9”、工贸宝对应的是“6”、服装版对应的是”0“。