Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • This is NOT recommended to pass in same value of (kfsChartCode, kfsAccountCode) but with different effectiveDate.  An unexpected result maybe returned.
  • The order of kfsChartCode, kfsAccountCode, effectiveDate CANNOT be swapped.
  • effectiveDate has to be valid.  Null will be returned otherwise.

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsChartCodeKFS Chart CodeYesString(2)'IR'
1kfsAcctNumberKFS Account NumberYesString(7)'1234567'
2effectiveDateThe date the KFS account needs to be validNo (default is today's date)String(8) YYYYMMDD'20120701' (begin fiscal year 2012/2013)
kfsChartCodeKFS Chart CodeYesString(2)'IR'
kfsAcctNumberKFS Account NumberYesString(7)'1234567'

DB Query

Code Block
Old:
select distinct
case when not exists (select * FROM dwhs_ods..ca_account_t a  where a.account_nbr= '<kfsAccountCode>' AND  a.fin_coa_cd= '<kfsChartCode>' 
                       AND a.ACCT_CLOSED_IND <> 'Y' AND ( a.ACCT_EXPIRATION_DT >= getdate() or a.ACCT_EXPIRATION_DT IS NULL)
                       AND (a.ACCT_EFFECT_DT <= <effectiveDate> ) )
then 'false'
else 'true'
end
 
New: 
SELECT a.FIN_COA_CD, a.ACCOUNT_NBR, 'true' AS VALID FROM dwhs_ods..ca_account_t a WHERE 
a.ACCT_CLOSED_IND <> 'Y' 
AND ( a.ACCT_EXPIRATION_DT >= getdate() or a.ACCT_EXPIRATION_DT IS NULL)
AND (
	(a.account_nbr= '1000766' 
	 AND a.fin_coa_cd= 'IR'
	 AND a.ACCT_EFFECT_DT <= getdate()) OR 
	(a.account_nbr= '1000768'
	 AND a.fin_coa_cd= 'IR'
	 AND a.ACCT_EFFECT_DT <= convert(datetime,'20100701',112)) OR
	(a.account_nbr= '1000767' 
	 AND a.fin_coa_cd= 'IR'
	 AND a.ACCT_EFFECT_DT <= getdate())
);

...

  • This is NOT recommended to pass in same value of (kfsChartCode, kfsAccountCode) but with different effectiveDate.  An unexpected result maybe returned.
  • The order of kfsChartCode, kfsAccountCode, effectiveDate CANNOT be swapped.
  • effectiveDate has to be valid.  Null will be returned otherwise.

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsChartCodeKFS Chart CodeYesString (2)'IR'
1kfsAcctNumberKFS Account NumberYesString(7)'1234567'
2effectiveDateDate the KFS account needs to be validNo (default is today's date)String(8) YYYYMMDD'20120701' (begin fiscal year 2012/2013)
kfsChartCodeKFS Chart CodeYesString (2)'IR'
kfsAcctNumberKFS Account NumberYesString(7)'1234567'

DB Query

Code Block
Old:
select distinct
case when not exists (select * FROM dwhs_ods..ca_account_t a  where a.account_nbr= '<kfsAccountCode>' AND  a.fin_coa_cd= '<kfsChartCode>'
                       AND a.ACCT_CLOSED_IND <> 'Y' AND ( a.ACCT_EXPIRATION_DT >= getdate() or a.ACCT_EXPIRATION_DT IS NULL)
                       AND (a.ACCT_EFFECT_DT <= <effectiveDate> ) AND a.ACCT_TYP_CD = 'EX')
then 'false'
else 'true'
end
 
New: 
SELECT  a.FIN_COA_CD, a.ACCOUNT_NBR,'true' AS VALID FROM dwhs_ods..ca_account_t a WHERE 
a.ACCT_CLOSED_IND <> 'Y' AND 
(a.ACCT_EXPIRATION_DT >= getdate() OR a.ACCT_EXPIRATION_DT IS NULL) AND 
a.ACCT_TYP_CD = 'EX' AND 
(
	(a.ACCOUNT_NBR= '1000766' AND 
	 a.FIN_COA_CD= 'IR' AND 
	 a.ACCT_EFFECT_DT <= convert(datetime,'20100701',112)) OR 
	(a.ACCOUNT_NBR= '1008543' AND 
	 a.FIN_COA_CD= 'IR' AND 
	 a.ACCT_EFFECT_DT <= getdate())
);

...

This service is used retrieve valid KFS chart codes account and related attributes. Returns an XML result set with a list of accounts (example getAllValidKFSAccounts result). 

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsChartCodeKFS Chart CodeYesString (2)'IR'
1kfsAcctNumberKFS Account NumberYesString (7)'1234567'

...

This service is used to translate legacy FS accounts to KFS account codes. Returns an XML result set with a KFS chart/account (example isValidKFSAccounts result) for each FS location/account

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)
0fsLocationCodeThe FS location codeYesString (2)
1fsAccountCodeThe FS accounts codeYesString (6)
2fsFundCodeThe FS fund codeYesString (5)

...