Skip to main content
Question

Database Task for Checking Account Period End Date

  • March 25, 2024
  • 1 reply
  • 41 views

unite45
Do Gooder (Partner)
Forum|alt.badge.img+1

Hi there, 

 

Just wondering if anyone has built a database task or chain that runs daily that checks if the current date is the accounting period end date? If it is, I want to calculate an average currency rate. 

 

 

1 reply

unite45
Do Gooder (Partner)
Forum|alt.badge.img+1
  • Author
  • Do Gooder (Partner)
  • April 22, 2024

For future reference, here’s what I came up with to return the current accounting period end date. 

TO_CHAR(accounting_period_api.get_date_until('10', accounting_period_api.get_curr_acc_year('10'), accounting_period_api.get_curr_acc_period('10')), 'MM/DD/YYYY')