R27025-1 Declaration - Validate Document Making Void Regular
Code | 27025-1 |
Name | ValidateDocumentMakingVoidRegular |
Entity | Finance.Intrastat.Declarations Entity |
Layer | Back-End |
Attribute | -- |
Events | DocumentMakingVoid |
Modify | NO |
Action | Let:
C1 = DocumentState < Released C2 = DocumentState >= Released C3 = DeclarationFunction = DeclarationFunction.Regular C4 = its ReleaseDate is not the greatest of all ReleaseDates of non-voided regular IntrastatDeclarations with the same reference period and the same Goods flow direction and same Enterprise Company C5 = there are no released non-voided corrective IntrastatDeclarations for the same reference period and the same Goods flow direction and the same Enterprise Company The rule should validate that: C1 OR C2 AND C3 AND (C4 OR C5) |
Description | If an Intrastat Declaration is less then Released, then it may be made void anytime.
If it is released and the Intrastat Declaration is regular it may be voided if it is not the last released intrastat declaration for the same reference period with the same goods flow direction and the same Enterprise Company and there are no any released corrective declarations for the same reference period with the same goods flow direction and the same Enterprise Company. |
Message | Declaration {DocumentText} can not be made void. This is the latest released regular declaration and there are released corrective declarations for the same reference period with the same goods flow direction and the same Enterprise Company. |
Version | Introduced: 2017
Updated: 2019.1 - in action's parts C4, C5 and C7 is added a new condition by Goods flow direction Updated: 2020.1 - separated by Declaration Function in two rules, added new condition by Enterprise Company |
Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.