Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0046292Openbravo LocalizationsLocalization Portugalpublic2021-04-19 09:532021-10-08 12:19
psanjuan 
psanjuan 
urgentmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
0046292: SAFT code - Duplicate document Hash is not correct
SAFT code - Duplicate document Hash is not correct
See document https://docs.google.com/spreadsheets/d/1OZ8NS5qywirdMBbFJXWqiEOstCiJWXAlKBUxfztJ3xg/edit#gid=562732981 [^]

test caes:

PTSAFT415] Duplicated Documents usability (Full Invoice)

[PTSAFT415] Duplicated Documents usability (Full Invoice)
"SignInvoiceUtility.java", is the java class that implements this function by generating the corresponding HashControl for a duplicate document (created in the backoffice).

In the line 245, this class looks if the field "Is Customer Invoice" of the Sales order is check or not.
if check - the invoice will be a full invoice - Hash Control = FTD (in our example, as the key doc (prefix) of this document is FT)
if not - the invoice will be a simplified invoice - Has Control = FSD (in our example as the key doc (prefix) of this document is FS)

Line 239 needs to be replaced by this one:

simpInvoice = !(Boolean) order.get("obposisCustomerInvoice");
No tags attached.
Issue History
2021-04-19 09:53psanjuanNew Issue
2021-04-19 09:53psanjuanAssigned To => psanjuan
2021-08-24 10:28psanjuanNote Added: 0131287
2021-10-08 12:18aferrazStatusnew => scheduled
2021-10-08 12:19aferrazNote Added: 0132271
2021-10-08 12:19aferrazStatusscheduled => resolved
2021-10-08 12:19aferrazResolutionopen => fixed
2021-10-08 12:19aferrazStatusresolved => closed

Notes
(0131287)
psanjuan   
2021-08-24 10:28   
https://practicsbs.zendesk.com/hc/es/requests/10872 [^]
(0132271)
aferraz   
2021-10-08 12:19   
Fixed by Practics and transplanted: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt/-/commit/46a1e1e0e467c197e3fd1c300ed8e8c0de450411 [^]