产品线:U8
版本:U8V10.1
领域:可参考excel 模块:可参考excel 数据库版本:SQL2005 问题标题:存货与总账对账
问题描述:存货与总账对账不平的常见原因和处理思路分析。 问题分析:
【原理说明】
存货与总帐对帐,实际上就是一个按照科目抓取数据进行核对的过程,其中存货的数据来自于ia_subsidiary,总账的数据主要来自于Gl_accsum、gl_accvouch。 其处理过程主要为:
--存货期初数据抽取
Select cInvHead,cCode_Name,
cast(isnull(iAInPrice,0)-isnull(iAOutPrice,0) as decimal(38,2)) as QcPrice, cast(isnull(iAInQuantity,0)-isnull(iAOutQuantity,0) as float) as QcQuantity, cast(0 as float) as InPRice,cast(0 as float) as InQuantity, cast(0 as float) as OutPrice,cast(0 as float) as outQuantity --into tempdb..OptVouchFJX0 from ia_subsidiary
left join code on ia_subsidiary.cInvHead=code.ccode and code.iyear = 2011
1
读万卷书 行万里路
旗开得胜 where IA_subsidiary.iYear = 2011 And not cPZID is null and not cInvHead is null
and ia_subsidiary.cvoutype <> N'33' and iMonth<1
Insert into tempdb..OptVouchFJX0 Select cDifHead,cCode_Name,
cast(isnull(iDebitDifCost,0)-isnull(iCreditDifCost,0) as decimal(38,2)) as QcPrice, cast(isnull((case when isnull(idebitdifcost,0)=0 then 0 else
(cast(isnull(iAInQuantity,0) as float)- cast(isnull(iAOutQuantity,0) as float))
end),0)-isnull((case when brdflag=1 then (case when isnull(iCreditDifCost,0)=0 then 0 else (cast(isnull(iAInQuantity,0) as float)- cast(isnull(iAOutQuantity,0) as float)) end) else (case when isnull(iCreditDifCost,0)=0 then 0 else (cast(isnull(iAoutQuantity,0) as float)- cast(isnull(iAinQuantity,0) as float)) end) end) ,0) as float) as QcQuantity, cast(0 as float) as InPRice, cast(0 as float) as InQuantity, cast(0 as float) as OutPrice, cast(0 as float) as outQuantity from ia_subsidiary
left join code on ia_subsidiary.cDifHead=code.ccode and code.iYear = 2011 where IA_subsidiary.iYear = 2011 And not cPZID is null
2
读万卷书 行万里路
and not cDifHead is null
and ia_subsidiary.cvoutype <> N'33' and iMonth<1
--存货日常发生数抽取
Insert into tempdb..OptVouchFJX0 Select cInvHead,cCode_Name, cast(0 as float) as qcPRice, cast(0 as float) as qcQuantity,
cast(isnull(iAInPrice,0) as decimal(38,2)) as inPrice, cast(isnull(iAInQuantity,0) as float) as inQuantity, cast(isnull(iAOutPrice,0) as decimal(38,2)) as OutPrice, cast(isnull(iAOutQuantity,0) as float) as outQuantity from ia_subsidiary
left join code on ia_subsidiary.cInvHead=code.ccode and code.iyear = 2011 where IA_subsidiary.iYear = 2011 And not cPZID is null and not cInvHead is null
and ia_subsidiary.cvoutype <> N'33' and iMonth=1
Insert into tempdb..OptVouchFJX0 Select cDifHead,cCode_Name,
读万卷书 行万里路
旗开得胜 3
旗开得胜 cast(0 as float) as QcPrice,0 as qcQuantity, isnull(iDebitDifCost,0) as InPrice,
(case when isnull(idebitdifcost,0)=0 then 0 else (cast(isnull(iAInQuantity,0) as float)- cast(isnull(iAOutQuantity,0) as float)) end) as inQuantity, cast(isnull(iCreditDifCost,0) as decimal(38,2)) as OutPrice,
(case when brdflag=1 then (case when isnull(iCreditDifCost,0)=0 then 0 else (cast(isnull(iAInQuantity,0) as float)- cast(isnull(iAOutQuantity,0) as float)) end) else (case when isnull(iCreditDifCost,0)=0 then 0 else (cast(isnull(iAoutQuantity,0) as float)- cast(isnull(iAinQuantity,0) as float)) end) end) as outQuantity from ia_subsidiary
left join code on ia_subsidiary.cDifHead=code.ccode and code.iyear = 2011 where IA_subsidiary.iYear = 2011 And not cPZID is null and not cDifHead is null
and ia_subsidiary.cvoutype <> N'33' and iMonth=1
--按科目汇总存货期初和日常发生数据 Select cInvHead,cCode_Name,
ltrim(str(cast(sum(cast(qcPrice as decimal(38,2))) as decimal(38,2)),20,2)), ltrim(str(cast(sum(qcQuantity) as decimal(38,2)),20,2)),
ltrim(str(cast(sum(cast(InPrice as decimal(38,2))) as decimal(38,2)),20,2)), ltrim(str(cast(sum(inQuantity) as decimal(38,2)),20,2)),
读万卷书 行万里路
4
旗开得胜 ltrim(str(cast(sum(cast(OutPrice as decimal(38,2))) as decimal(38,2)),20,2)), ltrim(str(cast(sum(OutQuantity) as decimal(38,2)),20,2)),
ltrim(str(cast(sum(cast(qcPrice as decimal(38,2))+cast(InPRice as decimal(38,2))-cast(Outprice as decimal(38,2))) as decimal(38,2)),20,2)),
ltrim(str(cast(sum(qcquantity+inquantity-outquantity) as decimal(38,2)),20,2)) from tempdb..OptVouchFJX0 group by cInvHead,cCode_Name order by cInvHead
--总账期初数据抽取 ---总账期初未记账数据抽取
Insert into tempdb..OptVouchFJX0 Select ccode,null,
cast(sum(md)-sum(mc) as decimal(38,2)),
cast(sum(nd_s)-sum(nc_s) as decimal(38,2)),0,0,0,0 From GL_accVouch Where isnull(iflag,0) <> 1 And isNull(ibook,0) <> 1 And ccode= N'1403'
and ((iyear=2011 And iperiod<1) Or iyear<2011) Group By cCode
--总账期初已记账数据抽取
读万卷书 行万里路
5
Insert into tempdb..OptVouchFJX0 Select ccode,null,
cast(md-mc as decimal(38,2)), cast(nd_s-nc_s as decimal(38,2)), 0,0,0,0
From Gl_accsum Where iperiod<1
And Gl_accsum.ccode= N'1403' and iyear=2011
---总账日常未记账凭证数据抽取
Insert into tempdb..OptVouchFJX0 Select ccode,null,0,0, sum(md),sum(nd_s), sum(mc),sum(nc_s) From GL_accVouch where iperiod=1 And isnull(iflag,0) <> 1 And isNull(ibook,0) <> 1 And ccode= N'1403' and iyear=2011
读万卷书 行万里路旗开得胜 6
旗开得胜 Group By cCode
---总账日常已记账数据抽取
Insert into tempdb..OptVouchFJX0 Select ccode,null,
cast((case when cbegind_c= N'贷' then -1*mb else mb end) as decimal(38,2)),
cast((case when cbegind_c= N'贷' then -1*nb_s else nb_s end) as decimal(38,2)),0,0,0,0 From Gl_accsum where iperiod=1
And Gl_accsum.ccode= N'1403' and iyear=2011
---总账按照科目汇总数据
Select ltrim(str(cast(sum(qcPrice) as decimal(38,2)),20,2)), ltrim(str(cast(sum(qcQuantity) as decimal(38,2)),20,2)), ltrim(str(cast(sum(InPrice) as decimal(38,2)),20,2)), ltrim(str(cast(sum(inQuantity) as decimal(38,2)),20,2)), ltrim(str(cast(sum(OutPrice) as decimal(38,2)),20,2)), ltrim(str(cast(sum(OutQuantity) as decimal(38,2)),20,2)),
ltrim(str(cast(sum(qcPrice+InPRice-Outprice) as decimal(38,2)),20,2)),
ltrim(str(cast(sum(qcquantity+inquantity-outquantity) as decimal(38,2)),20,2)) from tempdb..OptVouchFJX0
where cInvHead= N'1403'
7
读万卷书 行万里路
旗开得胜
【关联关系介绍】
Ia_subsidiary.czpid=gl_accvouch.cout_id 【对账不平处理思路】
在软件中进行对账时,选择需要对账的会计年度、会计月份,然后可进行数量、金额对账检查; (其中0版本增加“包含未记账凭证功能”)
遇到对账不平,一般可以按照以下思路进行检查处理:
1) 一般企业存货科目如:原材料、库存商品等,都不设置数量核算,故对账时可以先取消数量检查,并
勾选“包含未记账凭证”,看否可以对账成功;
2) 其次,若还是显示“对账不平”,则可以在对账界面检查是期初引起的不平还是日常发生数引起的不平;
其中:
✓ 若期初不平,则需要按照对账月份依次往前核对历史月份,看到底是从哪个月开始引起的对账不平。 常见的是期初未指定存货科目所致。
✓ 若期初相平,再看日常发生数,需要分别检查是借放发生数不平还是贷方发生数不平。
对于不平的记录则可以在对帐界面查看对账明细,再分析处理。 (其中10.0版本增加对账明细界面可以显示“全部”、“不平”记录)
下面按照对账不平常见的几种情况进行分析处理。 1)凭证没有记账
8
读万卷书 行万里路
旗开得胜 如下图:
期初平,本期发生数不平。
查看对账明细,发现存货有凭证信息,但是总账凭证号为空。且可以通过联查凭证功能找对应的凭证。
这种情况,常见的是凭证没有记账,因为0版本增加“包含未记账凭证功能”,故可以勾选该选项再查看下是否一致即可
2) 科目未设置数量核算,但是对账勾选了数量检查 如下图“
9
读万卷书 行万里路
旗开得胜
10
读万卷书 行万里路
旗开得胜
3)存货单据的记账月份与生成凭证的月份不一致; 如下图:
单据记账日期是1月的,但是生成凭证的日期是2月的
11
读万卷书 行万里路
旗开得胜
(思考:这种情况在存货的凭证列表中又筛选不出来,如何处理?)
4)其他模块或者存货对方科目中使用存货科目;
12
读万卷书 行万里路
旗开得胜 如下图:
注意:制单是要科目类型
建议按照调拨单制单
13
读万卷书 行万里路
旗开得胜
c、在存货制单的凭证界面修改了科目编码、金额;
例如:修改了科目金额或者插入存货分录记录
14
读万卷书 行万里路
旗开得胜
其他对账:
➢ 收发存汇总表和科目总账对账不平的常见非数据原因有:
1) 查询货核算的收发存汇总表,勾选了“未记账条件”;
15
读万卷书 行万里路
旗开得胜 2) 查询存货核算的收发存汇总表没有勾选“包含已经停用存货”; 3) 没有严格按照仓库或者存货分类制单处理;
2、发出商品与总账对账;(略) 注意事项:
存货与总账对账历史版本补丁解决的问题
➢
CP-U870-2363-120709-IA
问题号:201102180148
描述:解决存货与总账对账,年结后期初多统计了暂估数据的错误. ➢
CP-U871-2582-120904-IA
问题号:901050196
描述:解决年度结转后存货与总账对账33号单据包含在内导致对账不平的问题
➢ CP-U0-11814-130713-IA
问题号:201010200074
描述:存货核算中的财务核算下的存货与总账对账明细界面中,格式中设置显示的信息和显示出来的信息不一样。 问题号:201112060016
16
读万卷书 行万里路
旗开得胜 描述:解决标准成本下,委外业务生成凭证,将部分对方科目错误回写到存货科目,导致存货与总账对账不平。
➢ CP-U8V10.0-10778-130627-IA
问题号:201109080144
描述:解决科目为数量核算的情况下,存货制单时,同时选择一张数量不为0,金额为0的单据和一张数量、金额都不为0的单据合成制单时,生成凭证的存货科目数量没有包含金额为0的单据,造成存货与总账对账,数量不平的问
CP-U8V10.0-10778-130627-IA
描述:功能节点: 存货核算-财务核算-与总账对账 操作场景: 与总账对账明细过滤总账数据,没有判断年度
读万卷书 行万里路
17
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- awee.cn 版权所有 湘ICP备2023022495号-5
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务