I'm trying to make a credit note in code but I keep getting the error 'The transaction date you specified is not within the date range of your accounting period.', do I need to manually specify the accounting period, I figured this would be automatically sourced? If I have to set it manually how would I search for the accounting period for a specific date?