R28765 Entry - Apply Date Is Not Part Of Released BG VAT Declaration Period

Code R28765
Entity Finance.Vat.Entries Entity
Name ApplyDateIsNotPartOfReleasedBGVATDeclarationPeriod
Attribute ApplyDate
Layer Back-End
Events Releasing +
Priority Normal
Modify NO
Action Validate that:

If (OldState < 30 && NewState >= 30)

BGVATDeclarations[VATPeriodEnd >= ApplyDate && VATPeriodStart <= ApplyDate, Void == false, DocumentState >= 30, BGVATDeclaration.EnterpriseCompany == Entry.EnterpriseCompany].Count()== 0
Description If a BGVATDeclaration is released for a certain period, than the user cannot release entries which are part of the period of the declaration. The releasing of the declaration shows that this is the final version of the declaration and it is sent to the National Revenue Agency. No entries must be added to such VAT period.
Message VAT entry '{DocumentText}' can't be released because there are released VAT declarations for VAT periods that include the apply date of the entry.
Introduced In Version
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.