Skip to content

Latest commit

 

History

History
63 lines (61 loc) · 6.73 KB

R27025-2.md

File metadata and controls

63 lines (61 loc) · 6.73 KB
erp.type erp.entity
business-rule
Finance.Intrastat.Declarations

R27025-2 Declaration - Validate Document Making Void Corrective

+---------------+------------------------------------------------------------------------------------------------------+ | Code | 27025-2 | +---------------+------------------------------------------------------------------------------------------------------+ | Name | ValidateDocumentMakingVoidCorrective | +---------------+------------------------------------------------------------------------------------------------------+ | Entity | @Finance.Intrastat.Declarations | +---------------+------------------------------------------------------------------------------------------------------+ | Layer | Back-End | +---------------+------------------------------------------------------------------------------------------------------+ | Attribute | -- | +---------------+------------------------------------------------------------------------------------------------------+ | Events | DocumentMakingVoid | +---------------+------------------------------------------------------------------------------------------------------+ | Modify | NO | +---------------+------------------------------------------------------------------------------------------------------+ | Action | Let: | | |

| | | C1 = DocumentState < Released | | |

| | | C2 = DocumentState >= Released | | |

| | | C6 = DeclarationFunction = DeclarationFunction.Corrective | | |

| | | C7 = its ReleaseDate is the greatest of all ReleaseDates of non-voided corrective | | | IntrastatDeclarations with the same reference period and with the same Goods flow direction and the | | | same Enterprise Company | | |

| | | The rule should validate that: | | |

| | | C1 | | |

| | | OR | | |

| | | C2 AND C6 AND C7 | +---------------+------------------------------------------------------------------------------------------------------+ | 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 corrective, it may be made void if it is the last | | | released corrective declaration for the reference period with the same goods flow direction and the | | | same Enterprise Company. | +---------------+------------------------------------------------------------------------------------------------------+ | Message | Declaration {DocumentText} can not be made void. There are released corrective declarations for the | | | same reference period with same goods flow direction and the same Enterprise Company that are | | | released after {DocumentText}. | +---------------+------------------------------------------------------------------------------------------------------+ | 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.