Hi,
Has anyone experience of converting an accounting year / period to a calendar date. We have a number of lobby tiles that we are creating.
I’ve looked for an API call - but not look.
Thanks in advance a always,
Matt
Hi,
Has anyone experience of converting an accounting year / period to a calendar date. We have a number of lobby tiles that we are creating.
I’ve looked for an API call - but not look.
Thanks in advance a always,
Matt
Best answer by william.klotz
Hi
You could do something like the following in your query to build the date.
TO_DATE(TO_CHAR(accounting_period)||'/01/'||TO_CHAR(accounting_year),'MM/DD/YYYY') AS "DATE"
SELECT accounting_year,
accounting_period,
TO_DATE(TO_CHAR(accounting_period)||'/01/'||TO_CHAR(accounting_year),'MM/DD/YYYY') AS "DATE",
account_type,
account,
amount_balance
FROM ACCOUNTING_BALANCE_AUTH
WHERE UPPER(company)=UPPER('&COMPANY')
AND accounting_year BETWEEN '&START_YEAR' AND '&END_YEAR'
AND accounting_period BETWEEN '&START_PERIOD' AND '&END_PERIOD';
Regards,
William Klotz
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.