财务报表的一些方法

alter proc DOA_FAbinbalance(@hid int,@mode int)
as
set nocount on
begin
/******************************************************************************************************************
[email protected] = 1 采购入库财务审核
[email protected] = 2 销售出库财务审核
[email protected] = 3 采购退货财务审核
[email protected] = 4 销售退货财务审核
[email protected] = 5 采购付款
[email protected] = 6 销售收款
[email protected] = 7 采购退货收款
[email protected] = 8 销售退货付款

财务过账: thisbalance 即时帐
balancelog 明细账
******************************************************************************************************************/
if @mode = 1 --采购入库财务审核
begin
update thisbalance set balance=isnull(a.balance,0)+isnull(b.sumtotalmoney,0),changedate=getdate() --应付账
from thisbalance a inner join DWD_54 b on a.companyid=b.companyid and a.obj1=b.vndcode
where a.tabtype=‘应付账款‘ and acctname=‘应付账款RMB‘ and accttype=‘负债类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘应付账款‘,companyid,vndcode,vndname,‘‘,‘‘,‘‘,‘‘,‘应付账款RMB‘,‘RMB‘,sumtotalmoney,getdate(),‘负债类‘
from DWD_54 with(nolock)
where [email protected]
end

update thisbalance set balance=isnull(a.balance,0)+isnull(b.sumtotalmoney,0),changedate=getdate() --资金账
from thisbalance a inner join DWD_54 b on a.companyid=b.companyid
where a.tabtype=‘库存商品‘ and acctname=‘库存商品‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘库存商品‘,companyid,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘库存商品‘,‘RMB‘,sumtotalmoney,getdate(),‘资产类‘
from DWD_54 with(nolock)
where [email protected]
end

/*****************************************************明细账*****************************************************/
insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,debit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘库存商品‘,GETDATE(),companyid,‘库存商品‘,‘‘,‘‘,‘借‘,‘RMB‘,1,sumtotalmoney,‘采购入库‘,doctype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_54 with(nolock)
where [email protected] --------贷

insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,credit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘应付账款‘,GETDATE(),companyid,‘应付账款RMB‘,vndcode,vndname,‘贷‘,‘RMB‘,1,sumtotalmoney,‘采购入库‘,doctype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_54 with(nolock)
where [email protected] --------借
/****************************************************************************************************************/
update DWD_3 set shflag=1
from DWD_3 a inner join DWD_54 b on a.hid=b.refcode
where [email protected]
end
if @mode = 2 --销售出库财务审核
begin
update thisbalance set balance=isnull(a.balance,0)+isnull(b.sumtotalmoney,0),changedate=getdate() --资产账
from thisbalance a inner join DWD_57 b on a.companyid=b.companyid and a.obj1=b.vndcode
where a.tabtype=‘业务收入‘ and acctname=‘主营业务收入‘ and accttype=‘损益类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘业务收入‘,companyid,vndcode,vndname,‘‘,‘‘,‘‘,‘‘,‘主营业务收入‘,‘RMB‘,sumtotalmoney,getdate(),‘损益类‘
from DWD_57 with(nolock)
where [email protected]
end

update thisbalance set balance=isnull(a.balance,0)+isnull(b.sumtotalmoney,0),changedate=getdate() --应收账
from thisbalance a inner join DWD_57 b on a.companyid=b.companyid and a.obj1=b.vndcode
where a.tabtype=‘应收账款‘ and acctname=‘应收账款RMB‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘应收账款‘,companyid,vndcode,vndname,‘‘,‘‘,‘‘,‘‘,‘应收账款RMB‘,‘RMB‘,sumtotalmoney,getdate(),‘资产类‘
from DWD_57 with(nolock)
where [email protected]
end
/*****************************************************明细账*****************************************************/
insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,debit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘应收账款‘,GETDATE(),companyid,‘应收账款RMB‘,vndcode,vndname,‘借‘,‘RMB‘,1,sumtotalmoney,‘销售出库‘,doctype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_57 with(nolock)
where [email protected] --------贷

insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,credit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘业务收入‘,GETDATE(),companyid,‘主营业务收入‘,vndcode,vndname,‘贷‘,‘RMB‘,1,sumtotalmoney,‘销售出库‘,doctype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_57 with(nolock)
where [email protected] --------借
/****************************************************************************************************************/
update dwd_36 set shflag=1
from dwd_36 a inner join DWD_57 b on a.hid=b.refcode
where [email protected]
end
if @mode = 3 --采购退货财务审核
begin
update thisbalance set balance=isnull(a.balance,0)-isnull(b.sumtotalmoney,0),changedate=getdate() --应付账
from thisbalance a inner join DWD_57 b on a.companyid=b.companyid and a.obj1=b.vndcode
where a.tabtype=‘应付账款‘ and acctname=‘应付账款RMB‘ and accttype=‘负债类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘应付账款‘,companyid,vndcode,vndname,‘‘,‘‘,‘‘,‘‘,‘应付账款RMB‘,‘RMB‘,-sumtotalmoney,getdate(),‘负债类‘
from DWD_57 with(nolock)
where [email protected]
end

update thisbalance set balance=isnull(a.balance,0)-isnull(b.sumtotalmoney,0),changedate=getdate() --资金账
from thisbalance a inner join DWD_57 b on a.companyid=b.companyid
where a.tabtype=‘库存商品‘ and acctname=‘库存商品‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0 begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘库存商品‘,companyid,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘库存商品‘,‘RMB‘,-sumtotalmoney,getdate(),‘资产类‘
from DWD_57 with(nolock)
where [email protected]
end

/*****************************************************明细账*****************************************************/
insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,debit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘库存商品‘,GETDATE(),companyid,‘库存商品‘,‘‘,‘‘,‘借‘,‘RMB‘,1,-sumtotalmoney,‘采购退货‘,doctype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_57 with(nolock)
where [email protected] --------贷

insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,credit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘应付账款‘,GETDATE(),companyid,‘应付账款RMB‘,vndcode,vndname,‘贷‘,‘RMB‘,1,-sumtotalmoney,‘采购退货‘,doctype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_57 with(nolock)
where [email protected] --------借
/****************************************************************************************************************/
update dwd_29 set shflag=1
from dwd_29 a inner join DWD_57 b on a.hid=b.refcode
where [email protected]
end
if @mode = 4 --销售退货财务审核
begin
update thisbalance set balance=isnull(a.balance,0)-isnull(b.sumtotalmoney,0),changedate=getdate() --资产账
from thisbalance a inner join DWD_54 b on a.companyid=b.companyid and a.obj1=b.vndcode
where a.tabtype=‘业务收入‘ and acctname=‘主营业务收入‘ and accttype=‘损益类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘业务收入‘,companyid,vndcode,vndname,‘‘,‘‘,‘‘,‘‘,‘主营业务收入‘,‘RMB‘,-sumtotalmoney,getdate(),‘损益类‘
from DWD_54 with(nolock)
where [email protected]
end

update thisbalance set balance=isnull(a.balance,0)-isnull(b.sumtotalmoney,0),changedate=getdate() --应收账
from thisbalance a inner join DWD_54 b on a.companyid=b.companyid and a.obj1=b.vndcode
where a.tabtype=‘应收账款‘ and acctname=‘应收账款RMB‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘应收账款‘,companyid,vndcode,vndname,‘‘,‘‘,‘‘,‘‘,‘应收账款RMB‘,‘RMB‘,-sumtotalmoney,getdate(),‘资产类‘
from DWD_54 with(nolock)
where [email protected]
end
/*****************************************************明细账*****************************************************/
insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,debit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘应收账款‘,GETDATE(),companyid,‘应收账款RMB‘,vndcode,vndname,‘借‘,‘RMB‘,1,-sumtotalmoney,‘销售退货‘,doctype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_54 with(nolock)
where [email protected] --------贷

insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,credit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘业务收入‘,GETDATE(),companyid,‘主营业务收入‘,vndcode,vndname,‘贷‘,‘RMB‘,1,-sumtotalmoney,‘销售退货‘,doctype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_54 with(nolock)
where [email protected] --------借
/****************************************************************************************************************/
update dwd_27 set shflag=1
from dwd_27 a inner join DWD_54 b on a.hid=b.refcode
where [email protected]
end

if @mode =5 --采购付款
begin
update thisbalance set balance=isnull(a.balance,0)-isnull(b.summoney,0),changedate=getdate() --应付账
from thisbalance a inner join DWD_56 b on a.companyid=b.companyid and a.obj1=b.cardcode
where a.tabtype=‘应付账款‘ and acctname=‘应付账款RMB‘ and accttype=‘负债类‘ and b.hid=2
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘应付账款‘,companyid,cardcode,cardname,‘‘,‘‘,‘‘,‘‘,‘应付账款RMB‘,‘RMB‘,-summoney,getdate(),‘负债类‘
from DWD_56 with(nolock)
where [email protected]
end

update thisbalance set balance=isnull(a.balance,0)-isnull(b.summoney,0),changedate=getdate() --资金账
from thisbalance a inner join DWD_56 b on a.companyid=b.companyid
where a.tabtype=‘资金‘ and acctname=‘现金‘ and accttype=‘资产类‘ and b.hid=2
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘资金‘,companyid,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘现金‘,‘RMB‘,-summoney,getdate(),‘资产类‘
from DWD_56 with(nolock) where [email protected]
end

/*****************************************************明细账*****************************************************/
insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,credit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘资金‘,GETDATE(),companyid,‘现金‘,‘‘,‘‘,‘贷‘,‘RMB‘,1,summoney,‘付款单‘,doctype+fktype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_56 with(nolock)
where [email protected] --------贷

insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,debit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘应付账款‘,GETDATE(),companyid,‘应付账款RMB‘,cardcode,cardname,‘借‘,‘RMB‘,1,summoney,‘付款单‘,doctype+fktype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_56 with(nolock)
where [email protected] --------借
/****************************************************************************************************************/
update DWD_8 set kd_fkze=isnull(a.kd_fkze,0)+b.summoney
from DWD_8 a inner join DWD_56 b on a.billNo=b.refhid
where [email protected]
end
---------------------------------------------------------------------------------------------------------------------------------------------------------
if @mode =6 --销售收款
begin
update thisbalance set balance=isnull(a.balance,0)-isnull(b.summoney,0),changedate=getdate() --应收账
from thisbalance a inner join DWD_59 b on a.companyid=b.companyid and a.obj1=b.cardcode
where a.tabtype=‘应收账款‘ and acctname=‘应收账款RMB‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘应收账款‘,companyid,cardcode,cardname,‘‘,‘‘,‘‘,‘‘,‘应收账款RMB‘,‘RMB‘,-summoney,getdate(),‘资产类‘
from DWD_59 with(nolock)
where [email protected]
end

update thisbalance set balance=isnull(a.balance,0)+isnull(b.summoney,0),changedate=getdate() --资金账
from thisbalance a inner join DWD_59 b on a.companyid=b.companyid
where a.tabtype=‘资金‘ and acctname=‘现金‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘资金‘,companyid,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘现金‘,‘RMB‘,summoney,getdate(),‘资产类‘
from DWD_59 with(nolock)
where [email protected]
end

/*****************************************************明细账*****************************************************/
insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,debit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘资金‘,GETDATE(),companyid,‘现金‘,‘‘,‘‘,‘借‘,‘RMB‘,1,summoney,‘收款单‘,doctype+sktype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_59 with(nolock)
where [email protected] --------借

insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,credit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘应收账款‘,GETDATE(),companyid,‘应收账款RMB‘,cardcode,cardname,‘贷‘,‘RMB‘,1,summoney,‘收款单‘,doctype+sktype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_59 with(nolock)
where [email protected] --------贷
/****************************************************************************************************************/
update DWD_5 set yfmoney=isnull(a.yfmoney,0)+b.summoney
from DWD_5 a inner join DWD_59 b on a.billNo=b.refhid
where [email protected]
end
-----------------------------------------------------------------------------------------------------------------------------------------
if @mode =7 --采购退货收款
begin
update thisbalance set balance=isnull(a.balance,0)+isnull(b.summoney,0),changedate=getdate() --应付账
from thisbalance a inner join DWD_59 b on a.companyid=b.companyid and a.obj1=b.cardcode
where a.tabtype=‘应付账款‘ and acctname=‘应付账款RMB‘ and accttype=‘负债类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘应付账款‘,companyid,cardcode,cardname,‘‘,‘‘,‘‘,‘‘,‘应付账款RMB‘,‘RMB‘,-summoney,getdate(),‘负债类‘
from DWD_59 with(nolock)
where [email protected]
end

update thisbalance set balance=isnull(a.balance,0)+isnull(b.summoney,0),changedate=getdate() --资金账
from thisbalance a inner join DWD_59 b on a.companyid=b.companyid
where a.tabtype=‘资金‘ and acctname=‘现金‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘资金‘,companyid,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘现金‘,‘RMB‘,summoney,getdate(),‘资产类‘
from DWD_59 with(nolock)
where [email protected]
end

/*****************************************************明细账*****************************************************/
insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,credit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘资金‘,GETDATE(),companyid,‘现金‘,‘‘,‘‘,‘贷‘,‘RMB‘,1,-summoney,‘收款单‘,doctype+sktype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_59 with(nolock)
where [email protected] --------贷

insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,debit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘应付账款‘,GETDATE(),companyid,‘应付账款RMB‘,cardcode,cardname,‘借‘,‘RMB‘,1,-summoney,‘收款单‘,doctype+sktype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_59 with(nolock)
where [email protected] --------借
/****************************************************************************************************************/
update dwd_29 set kd_tkze=isnull(a.kd_tkze,0)+b.summoney
from dwd_29 a inner join DWD_59 b on a.billNo=b.refhid
where [email protected]
end
---------------------------------------------------------------------------------------------------------------------------------------------------------
if @mode =8 --销售退货付款
begin
update thisbalance set balance=isnull(a.balance,0)+isnull(b.summoney,0),changedate=getdate() --应收账
from thisbalance a inner join DWD_56 b on a.companyid=b.companyid and a.obj1=b.cardcode
where a.tabtype=‘应收账款‘ and acctname=‘应收账款RMB‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘应收账款‘,companyid,cardcode,cardname,‘‘,‘‘,‘‘,‘‘,‘应收账款RMB‘,‘RMB‘,summoney,getdate(),‘资产类‘
from DWD_56 with(nolock)
where [email protected]
end

update thisbalance set balance=isnull(a.balance,0)-isnull(b.summoney,0),changedate=getdate() --资金账
from thisbalance a inner join DWD_56 b on a.companyid=b.companyid
where a.tabtype=‘资金‘ and acctname=‘现金‘ and accttype=‘资产类‘ and [email protected]
if @@rowcount = 0
begin
insert into thisbalance(tabtype,companyid,obj1,obj1name,obj2,obj2name,obj3,obj3name,Acctname,currency,balance,changedate,accttype)
select ‘资金‘,companyid,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘现金‘,‘RMB‘,-summoney,getdate(),‘资产类‘
from DWD_56 with(nolock)
where [email protected]
end

/*****************************************************明细账*****************************************************/
insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,debit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘资金‘,GETDATE(),companyid,‘现金‘,‘‘,‘‘,‘借‘,‘RMB‘,1,-summoney,‘付款单‘,doctype+fktype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_56 with(nolock)
where [email protected] --------借

insert into balancelog(tabtype,inserttime,companyid,Acctname,obj1,obj1name,dcflag,currency,
exchange_rate,credit_totalmoney,fname,doctype,billno,docdate,periodid,memo,docword,fid,sid,uid,hid)
select ‘应收账款‘,GETDATE(),companyid,‘应收账款RMB‘,cardcode,cardname,‘贷‘,‘RMB‘,1,-summoney,‘付款单‘,doctype+fktype,billno,docdate,
convert(varchar(7),docdate,120),memo,‘转‘,fid,sid,duid,hid
from DWD_56 with(nolock)
where [email protected] --------贷
/****************************************************************************************************************/
update dwd_27 set kd_tkze=isnull(a.kd_tkze,0)+b.summoney
from dwd_27 a inner join DWD_56 b on a.billNo=b.refhid
where [email protected]
end
-----------------------------------------------------------------------------------------------------------------------------------------
end

时间: 2024-10-14 17:07:02

财务报表的一些方法的相关文章

c# 财务报表数字转大写的方法

/// <summary>/// 数字转大写/// </summary>/// <param name="Num">数字</param>/// <returns></returns> public static string CmycurD(decimal num) { string str1 = "零壹贰叁肆伍陆柒捌玖"; //0-9所对应的汉字 string str2 = "万仟佰

[转载]大学生“挑战杯”创业计划大赛财务分析估算方法与技巧

知识在用时方知少,的确如此啊.“聚康”原生态养猪有限责任公司创业计划书目前就财务分析这个专业模块还未起步完善,我担当此任,查阅了许多资料还是没多大头绪,终于找了一篇比较全面有能为我所用的财务分析总结.现晒出来给大家一起分享.原文如下: (六)资产负债表预算 资产负债表的预算,通常很多企业是不做的.最主要的原因就是其不确定性,预算出来的资产负债表很可能不能反映一定时期的经营结果.就像我们之前在现金流量表预算中说过的,资产负债表是体现一个“时点”概念.要确定每个资产负债项目在期末那个“点”上的水平,

合并财务报表分步合并与一次合并的差异探析

多层控股关系下,集团编制合并报表的顺序采用一次合并法还是分步合并法,两者的结果是否相同,其使用有否受到限制,实务中存在疑惑.本文着重分析在抵销内部交易未实现损益.同一控制下企业合并.购买子公司少数股权等事项中,不同合并顺序的应用及其对于合并报表权益结构的影响,探讨在实务中如何消除因合并顺序不同而引发的差异,以提高合并报表的编制质量. 一.多层控股关系下有关合并报表顺序的两种方法 当存在多层控股关系时,编制合并报表的合并顺序一般有分步合并和一次合并两种方法. (一)分步合并法 分步合并法,指企业存

美国政府关于Google公司2013年度的财务报表红头文件

请管理员移至新闻版块,谢谢! 来源:http://www.sec.gov/ 财务报表下载↓ 此文仅作参考分析. 10-K 1 goog2013123110-k.htm FORM 10-K UNITED STATES SECURITIES AND EXCHANGE COMMISSION Washington, D.C. 20549     FORM 10-K (Mark One)       ý ANNUAL REPORT PURSUANT TO SECTION 13 OR 15(d) OF TH

财务报表开发实例分析:几个通用维度介绍与关键点

财务报表分析 财务分析是以会计核算和报表资料及其他相关资料为依据,采用一系列专门的分析技术和方法,对企业等经济组织过去和现在有关筹资活动.投资活动.经营活动.分配活动的盈利能力.营运能力.偿债能力和增长能力状况等进行分析与评价的经济管理活动.它是为企业的投资者.债权人.经营者及其他关心企业的组织或个人了解企业过去.评价企业现状.预测企业未来做出正确决策提供准确的信息或依据的经济应用学科. 财务分析的方法与分析工具众多,具体应用应根据分析者的目的而定.最经常用到的还是围绕财务指标进行单指标.多指标

财务报表课程报名联系方式是多少,我想报名财务报表课程

财务报表课程报名联系方式是多少,我想报名财务报表课程高顿财务培训作为国内专业财务培训的引领者,秉承系统培训的理念,为所有财务人员提供满足其整个职业生涯的财务培训服务.作为一门财务核心课程,<财务报表阅读与分析>一直以来都是高顿财务培训的精品课程,已经在全国开设超过300场公开课,学员反响热烈.课程从财务报表分析的“三重境界”层层深入,帮助财务人员透视企业的经营和财务状况,发现甚至预测管理中存在的问题,为企业的经营管理.投资决策.风险管控等重大问题的解决提供强有力的策略指导. 课程收益 [快速捕

财务报表课程是针对什么岗位的,普通职员可以学财务报表课程吗

高顿观点 高顿财务培训作为国内专业财务培训的引领者,秉承系统培训的理念,为所有财务人员提供满足其整个职业生涯的财务培训服务.作为一门财务核心课程,<财务报表阅读与分析>一直以来都是高顿财务培训的精品课程,已经在全国开设超过300场公开课,学员反响热烈.课程从财务报表分析的“三重境界”层层深入,帮助财务人员透视企业的经营和财务状况,发现甚至预测管理中存在的问题,为企业的经营管理.投资决策.风险管控等重大问题的解决提供强有力的策略指导. 课程收益 [快速捕捉信息]掌握财务报表的阅读技巧,快速捕捉关

PDF格式财务报表转Excel格式

第一步:下载好财报后,右键点击财务报表,选择打开的应用程序为word(本人2013版) 第二步:复制需要的报表数据 第三步:粘贴到excel上即可 PS.过程简单耗时少,转换后不会出现格式错乱,对于经常处理财报数据这来说,不为一个好方法; 以前做财报分析搜索并尝试了不少办法,要么收费,要么转换后格式不对,耗时还不少. 后来在制作kindle电纸书书时发现可以用word打开pdf文件,然后就想到财报格式转换这一历史遗留问题. 测试操作后,发现转换到的数据格式精确,屡试不爽.

第二章 财务报表分析和财务预测

第二章 财务报表分析和财务预测 [TOC] 财务报表分析方法 ★★ 比较分析 纵向分析(趋势分析) 横向分析(同行业分析) 预算差异分析 会计要素总量 结构百分比 财务比率 因素分析 基数:$ F_{0} = A_{0} \times B_{0} \times C_{0}$ ---(1) 置换A因素:$ A_{1} \times B_{0} \times C_{0} $ ---(2) 置换B因素:$ A_{1} \times B_{1} \times C_{0} $ ---(3) 置换C因素:$