Closed mshiner closed 3 years ago
The date should be updated when an invoice is selected/changed but the javascript is not targeting the correct form control.
The periods available are selected based on their tax period status. Any GL period that has an open tax period will be listed.
The GLTransaction::makePVAEntry
function should set the $cp_override parameter
when calling the GLTransaction::Factory
. That will disable the closed period check for the creation of these transaction records.
There are a couple of issues that I think we need to fix in the UI:
In addition, when posting the PVA entry we potentially need to be able to post into a closed glperiod (i.e. as per the list of periods in the dropdown) IF the related VAT period is still open to take a account of the fact that the PVA statement from HMRC can take up to a week to arrive.
Posting into prior periods is blocked at present, except for year end journals, but because the PVA posting is a 'zero balance' transaction with both the debt and credit to a single gl account this won't affect the trial balance for the closed period.