对方科目的取数逻辑和二开指导

以下均基于PT-146887(202109 补丁,企业版补丁号7.7.2297.10,标准版补丁号PT-146889(7.7.2298.5))及以后版本适用,其他早期版本逻辑介绍部分不完全适用。
1. 二开接口使用,建议调用Kingdee.K3.FIN.GL.App.Core.VchOtherSideEntryInfor 的相关方法,此类包括VchOtherSideEntryInfor的构造函数,和GetVoucherOtherSideEntryInfor的取数方法,其中构造函数输入参数有两个1.上下文Context,2.需要获取对方科目的完整凭证信息(tempTableVoucherchEntry 临时表(string类型)))
临时表tempTableVoucherchEntry结构如下(以下字段均可在凭证分录表T_GL_VOUCHERENTRY中取到):
FVOUCHERID int not null default 0, 凭证内码
FENTRYID int not null default 0,分录内码
FAccountID int not null default 0,科目内码
FAMOUNT decimal(28,10) not null default 0,本位币金额
FAMOUNTFOR decimal(28,10) not null default 0,原币金额
FExchangeRate decimal(23,10) not null default 0,汇率
FDC int not null default 0 分录方向
示例代码如下:

返回值为临时表,其中字段如下:
FVoucherID int not null default 0,凭证内码
FEntryID int not null default 0,分录内码
FDC smallint not null default -1,分录方向
FAccountID int not null default 0,科目内码
FAmount decimal(28,10) not null default 0,本位币金额
FAmountFor decimal(28,10) not null default 0
对方科目的取数逻辑和二开指导
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



