Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0047869Openbravo LocalizationsLocalization Portugalpublic2021-10-18 10:082021-10-18 10:42
caristu 
caristu 
highminoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
0047869: Ability to disable signing at document type level
It would be nice to have the ability of configuring whether a document should be signed (hashed) or not, and for example avoid signing documents which eventually won't be exported with SAF-T.
.
Create a new checkbox field "Is Signed" at document type level to determine if documents of that type should be signed or not.

In order to ensure backwards compatibility with the current document definition, the "Is Signed" field should be set as true by default (documents are signed by default).
No tags attached.
depends on feature request 0047729 closed caristu Ability to disable signing at document type level 
Issue History
2021-10-18 10:08caristuNew Issue
2021-10-18 10:08caristuAssigned To => caristu
2021-10-18 10:08caristuIssue generated from0047729
2021-10-18 10:08caristuRelationship addeddepends on 0047729
2021-10-18 10:14hgbotNote Added: 0132392
2021-10-18 10:19hgbotNote Added: 0132394
2021-10-18 10:41hgbotResolutionopen => fixed
2021-10-18 10:41hgbotStatusnew => closed
2021-10-18 10:41hgbotNote Added: 0132396
2021-10-18 10:41hgbotNote Added: 0132397
2021-10-18 10:41hgbotNote Added: 0132398
2021-10-18 10:41hgbotNote Added: 0132399
2021-10-18 10:41hgbotNote Added: 0132400
2021-10-18 10:42hgbotNote Added: 0132401

Notes
(0132392)
hgbot   
2021-10-18 10:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt/-/merge_requests/23 [^]
(0132394)
hgbot   
2021-10-18 10:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/merge_requests/24 [^]
(0132396)
hgbot   
2021-10-18 10:41   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt [^]
Changeset: 46c8a680dfc29dea61cbd8bd586bb7dbcf7dd3b5
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2021-10-18T10:11:43+02:00
URL: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt/-/commit/46c8a680dfc29dea61cbd8bd586bb7dbcf7dd3b5 [^]

Fixes ISSUE-47869: Ability to disable signing at document type level

  This feature can be used to identify if a document should be signed or
not, and for example avoid signing documents which eventually won't be
exported with SAF-T.

  This is possible thanks to a new checkbox field "Is Signed" at
document type level.

  In order to avoid breaking the signing of the existing documents which
should continue being signed, the "Is Signed" field is set as true by
default.

 Besides, we're taking into account the new flag in the SAFT export
queries.

---
M src-db/database/model/modifiedTables/C_DOCTYPE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src/com/practicsbs/saftpt/ad_actionhandler/SaftGenerateHashes.java
M src/com/practicsbs/saftpt/data/BusinessPartner_data.xsql
M src/com/practicsbs/saftpt/data/Invoices_data.xsql
M src/com/practicsbs/saftpt/data/Payments_data.xsql
M src/com/practicsbs/saftpt/data/Product_data.xsql
M src/com/practicsbs/saftpt/data/TaxTable_data.xsql
M src/com/practicsbs/saftpt/data/WorkingDocuments_data.xsql
M src/com/practicsbs/saftpt/signature/SAFTSignInvoice.java
M src/com/practicsbs/saftpt/signature/SignInvoiceUtility.java
M src/com/practicsbs/saftpt/signature/SignOrderUtility.java
---
(0132397)
hgbot   
2021-10-18 10:41   
Repository: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt [^]
Changeset: 0c9b490dd59d2a4ab6bd55990e8fd8b9e343273e
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2021-10-18T10:12:01+02:00
URL: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt/-/commit/0c9b490dd59d2a4ab6bd55990e8fd8b9e343273e [^]

Related to ISSUE-47869: Add test cases

---
A src-test/com/practicsbs/saftpt/StandaloneTestSuite.java
A src-test/com/practicsbs/saftpt/data/ExportSourceDocsTest.java
---
(0132398)
hgbot   
2021-10-18 10:41   
Merge request merged: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt/-/merge_requests/23 [^]
(0132399)
hgbot   
2021-10-18 10:41   
Repository: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail [^]
Changeset: 08a0b5b97b6bcaa4b5d8295e73585d55f7db89cd
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2021-10-18T10:16:41+02:00
URL: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/commit/08a0b5b97b6bcaa4b5d8295e73585d55f7db89cd [^]

Related to ISSUE-47869: Support for skipping order signing

---
M src/com/practicsbs/saftpt/retail/hook/SaftrOrderLoaderHook.java
M src/com/practicsbs/saftpt/retail/master/TerminalProperties.java
M web/com.practicsbs.saftpt.retail/js/hooks/presyncreceipt.js
---
(0132400)
hgbot   
2021-10-18 10:41   
Repository: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail [^]
Changeset: 74a70fb40cead5bf42c09c5374f6804748735978
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2021-10-18T10:16:55+02:00
URL: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/commit/74a70fb40cead5bf42c09c5374f6804748735978 [^]

Related to ISSUE-47869: Add test cases

---
A src-test/com/practicsbs/saftpt/retail/StandaloneTestSuite.java
A src-test/com/practicsbs/saftpt/retail/hook/SaftrOrderLoaderHookTest.java
---
(0132401)
hgbot   
2021-10-18 10:42   
Merge request merged: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/merge_requests/24 [^]