浪潮财务软件新凭证接口付款核销生成凭证情况描述

浪潮财务软件新凭证接口付款核销生成凭证情况描述

操作系统: WIN XP PRO 数 据 库: Ora 9i
软件版本: GS_3.0 软件模块: 基础数据
问题描述:
   新凭证接口付款核销生成凭证情况描述
产生原因: 新凭证接口付款核销生成凭证情况描述
解决方法:
   一、付款核销生成凭证分以下几种情况:
1、不核销就生成凭证
2、核销后生成凭证:
(1)、手工做付款单而不参照,然后核销,参照核销记录生成凭证。
(2)、参照采购发票生成付款单,然后参照核销记录生成凭证。
(3)、以上两者都存在,然后参照核销记录生成凭证。
二、各种情况数据源预制不同之处:
1、不核销就要生成凭证,预制数据源执行以下语句:
Insert into VIDataSource(DS_DSID,DS_DSNAME,DS_APP,DS_MKID,DS_ORIGINTYPE,DS_TABN,DS_CONDI)
values (‘AP_PB_001′,’付款单’,’30′,’AP’,'RPBills’,'rpbills,lswldw,lswbzd,zwjsfs,partneracctypes,Banks b,BankAccounts ba’,
‘rpbills.paccpostflag = ”1” and rpbills.ARAPSourceTypeCode = ”0011” and rpbills.pacctypecode =
partneracctypes.pacctypecode and rpbills.partnerid = lswldw.lswldw_wldwbh and rpbills.currencyid = lswbzd.lswbzd_bzbh and
 rpbills.pmcode = zwjsfs.zwjsfs_bh(+)  and rpbills.BankID = b.BankID(+) and rpbills.BankAccid = ba.BankAccountID(+)’)
2、核销后生成凭证
(1)、无参照建立付款单,然后核销,参照核销记录生成凭证,需执行如下sql:
update vidatasource set ds_condi =
‘arapclears.rpbillid=arapclearitems.rpbillid and arapclearitems.rpbillid = rpbills.rpbillid and arapclearitems.arapbillid =
purchaseinvoiceitems.purinvoiceid and arapclearitems.billitemid = purchaseinvoiceitems.purinvoiceitemid and
arapclears.paccpostflag = ”1” and rpbills.ARAPSourceTypeCode = ”0011” and rpbills.pacctypecode =
partneracctypes.pacctypecode and rpbills.partnerid = lswldw.lswldw_wldwbh and rpbills.currencyid = lswbzd.lswbzd_bzbh and
purchaseinvoiceitems.materialid = materials.materialid and rpbills.pmcode = zwjsfs.zwjsfs_bh(+)  and rpbills.BankID =
b.BankID(+) and rpbills.BankAccid = ba.BankAccountID(+)’  where ds_dsid = ‘AP_CR_001′
(2)、参照采购发票建立付款单,然后参照核销记录生成凭证,需执行如下sql:
update vidatasource set ds_condi =
‘arapclears.rpbillid=arapclearitems.rpbillid and arapclearitems.rpbillid = rpbills.rpbillid and arapclearitems.arapbillid =
purchaseinvoiceitems.purinvoiceid and arapclearitems.billitemid = purchaseinvoiceitems.purinvoiceitemid and
arapclears.paccpostflag = ”1” and rpbills.ARAPSourceTypeCode = ”0013” and rpbills.pacctypecode =
partneracctypes.pacctypecode and rpbills.partnerid = lswldw.lswldw_wldwbh and rpbills.currencyid = lswbzd.lswbzd_bzbh and
purchaseinvoiceitems.materialid = materials.materialid and rpbills.pmcode = zwjsfs.zwjsfs_bh(+)  and rpbills.BankID = b.BankID(+) and rpbills.BankAccid = ba.BankAccountID(+)’ where ds_dsid = ‘AP_CR_001′
(3)、以上两种模式都有,参照核销记录生成凭证,需执行如下sql:
update vidatasource set ds_condi =
‘arapclears.rpbillid=arapclearitems.rpbillid and arapclearitems.rpbillid = rpbills.rpbillid and arapclearitems.arapbillid =
purchaseinvoiceitems.purinvoiceid and arapclearitems.billitemid = purchaseinvoiceitems.purinvoiceitemid and
arapclears.paccpostflag = ”1” and (rpbills.ARAPSourceTypeCode = ”0011” or rpbills.ARAPSourceTypeCode = ”0013” ) and rpbills.pacctypecode = partneracctypes.pacctypecode and rpbills.partnerid = lswldw.lswldw_wldwbh and rpbills.currencyid = lswbzd.lswbzd_bzbh and purchaseinvoiceitems.materialid = materials.materialid and rpbills.pmcode = zwjsfs.zwjsfs_bh(+)  and rpbills.BankID = b.BankID(+) and rpbills.BankAccid = ba.BankAccountID(+)’ where ds_dsid = ‘AP_CR_001′
 如果两种模式都有,参照核销记录生成凭证,但是要通过两个不同的列表显示,需按两种条件建立两个付款核销记录数据源。

原创文章,转载请注明: 转载自浪潮888博客

本文链接地址: 浪潮财务软件新凭证接口付款核销生成凭证情况描述

文章的脚注信息由WordPress的wp-posturl插件自动生成



This entry was posted in 浪潮文档. Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>