Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0054946Openbravo LocalizationsLocalization Portugalpublic2024-03-13 15:502024-05-14 17:23
jonae 
jonae 
normalminorhave not tried
closedfixed 
5
 
 
0054946: A series should only have one validation code assigne, therefore that relationship is unique. Enchancements (Q&A - 41-4696)
A series/prefix should only have one validation code assigned, therefore if the series is changed, it should be mandatory to also change the validation code.

Navigate to the Organization window, search for the legal entity configured as “Portuguese” verify that there is a tab named “SAFT-T PT Terminal Prefix”.

This tab relates each prefix with a validation code. That relationship should be unique, that means that the same validation code can not be related to different prefix.

The document series identifier cannot contain more than 35 characters, which cannot include characters that violate the validation scheme associated with SAF-T (PT) or that can be interpreted as XML operators. The characters that make up the series identifier must be identically representable in both UTF-8 and Windows-1252 encoding, to guarantee system interoperability and avoid conversion problems. In this sense, the following characters are accepted:

   [A-Z] - Capital letters (does not include accented characters or “Ç”);

   [a-z] - Lowercase letters (does not include accented characters or “ç”);

   [0-9] - Numbers from 0 to 9;

   [._-] - Period, underscore and dash (referred to below as separators).

It should also be added that it is not possible to use:

a separator at the beginning and/or end;

two or more consecutive separators; (spaces)

series with an identifier starting with “AT” – are reserved for attribution to issuers of documents in programs made available by AT.
- Add prefixes and val codes to the touchpoint
- Once accepted and set, try to change the prefix of one of them.
No tags attached.
Issue History
2024-03-13 15:50jonaeNew Issue
2024-03-13 15:50jonaeAssigned To => jonae
2024-03-13 15:56hgbotNote Added: 0162103
2024-03-13 15:59hgbotNote Added: 0162104
2024-03-13 22:32hgbotNote Added: 0162115
2024-04-05 12:20jonaeSummaryA series should only have one validation code assigne, therefore that relationship is unique => A series should only have one validation code assigne, therefore that relationship is unique. Enchancements (Q&A - 41-4696)
2024-04-05 12:20jonaeDescription Updatedbug_revision_view_page.php?rev_id=27768#r27768
2024-05-13 12:29hgbotNote Added: 0164488
2024-05-13 12:41aferrazNote Deleted: 0162103
2024-05-13 12:41aferrazNote Deleted: 0164488
2024-05-13 12:50hgbotNote Added: 0164500
2024-05-13 12:50hgbotResolutionopen => fixed
2024-05-13 12:50hgbotStatusnew => closed
2024-05-13 12:50hgbotNote Added: 0164501
2024-05-13 13:54hgbotNote Added: 0164508
2024-05-13 13:54hgbotNote Added: 0164509
2024-05-14 07:16hgbotNote Added: 0164530
2024-05-14 17:23hgbotNote Added: 0164567
2024-05-14 17:23hgbotNote Added: 0164568

Notes
(0162104)
hgbot   
2024-03-13 15:59   
Merge Request created: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/merge_requests/133 [^]
(0162115)
hgbot   
2024-03-13 22:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.portugal.fiscalization/-/merge_requests/60 [^]
(0164500)
hgbot   
2024-05-13 12:50   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.portugal.fiscalization/-/merge_requests/60 [^]
(0164501)
hgbot   
2024-05-13 12:50   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.portugal.fiscalization [^]
Changeset: 647424506615280770c5b9e65e504a2353f21b19
Author: Jon Alegría <jon.alegria@openbravo.com>
Date: 13-05-2024 10:50:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.portugal.fiscalization/-/commit/647424506615280770c5b9e65e504a2353f21b19 [^]

Fixes ISSUE-54946: Adding validation to the combination serie and validation code

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/localization/portugal/fiscalization/SaftUtility.java
M src/org/openbravo/localization/portugal/fiscalization/handler/SaftrChangePrefixesHandler.java
---
(0164508)
hgbot   
2024-05-13 13:54   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail [^]
Changeset: 73d1aad7de18f36884d7a44ce6bc19cba26b6f75
Author: Jon Alegría <jon.alegria@openbravo.com>
Date: 13-05-2024 11:54:43
URL: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/commit/73d1aad7de18f36884d7a44ce6bc19cba26b6f75 [^]

Fixes ISSUE-54946: Adding validation to the combination serie and validation code

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
M src/com/practicsbs/saftpt/retail/SaftrInitialValidations.java
M src/com/practicsbs/saftpt/retail/SaftrUtility.java
M src/com/practicsbs/saftpt/retail/ad_actionhandler/SaftrChangePrefixesHandler.java
M src/com/practicsbs/saftpt/retail/event/TerminalEvent.java
---
(0164509)
hgbot   
2024-05-13 13:54   
Merge request merged: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/merge_requests/133 [^]
(0164530)
hgbot   
2024-05-14 07:16   
Merge Request created: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/merge_requests/140 [^]
(0164567)
hgbot   
2024-05-14 17:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail [^]
Changeset: deb5fec93abe05f0ac7d408ab2f2b994f29a7c12
Author: jonalegria <jon.alegria@openbravo.com>
Date: 14-05-2024 07:15:08
URL: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/commit/deb5fec93abe05f0ac7d408ab2f2b994f29a7c12 [^]

Fixes ISSUE-54946: Adding validation to the combination serie and validation code

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
M src/com/practicsbs/saftpt/retail/SaftrInitialValidations.java
M src/com/practicsbs/saftpt/retail/SaftrUtility.java
M src/com/practicsbs/saftpt/retail/ad_actionhandler/SaftrChangePrefixesHandler.java
M src/com/practicsbs/saftpt/retail/event/TerminalEvent.java
---
(0164568)
hgbot   
2024-05-14 17:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/merge_requests/140 [^]