Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0049477Openbravo ERPA. Platformpublic2022-06-03 11:142023-01-12 09:41
caristu 
Triage Platform Base 
highmajorhave not tried
scheduledopen 
5
 
 
Core
No
0049477: Import BPSet process does not set the dates of the imported lines correctly
Import BPSet process does not set the dates of the imported lines correctly.
1) Login with the White Valley Group Admin role, Go to the Business Partner Set window
2) Create a new record in the header
3) Click on the import button of the toolbar
4) Select the attached file
5) Choose an start date for example: 03-06-2022
6) Submit. Note that a record is created in the subtab but with a wrong start date: 02-06-2022
Change the code that parses the date here[1], because dates are not translated by taking into account that they are in UTC.

[1] https://gitlab.com/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/src/org/openbravo/client/application/businesslogic/ImportBPSet.java#L128 [^]

Note that the ImportStoreSet is already fixing this problem by parsing the date properly. Maybe it would be a good idea to centralize this logic in the platform to avoid duplicating this code
No tags attached.
related to feature request 0049358 closed caristu Retail Modules Support selecting the discounts to be loaded into a terminal by a store set based criteria 
txt importbp.txt (10) 2022-06-03 11:14
https://issues.openbravo.com/file_download.php?file_id=17117&type=bug
Issue History
2022-06-03 11:14caristuNew Issue
2022-06-03 11:14caristuAssigned To => Triage Platform Base
2022-06-03 11:14caristuFile Added: importbp.txt
2022-06-03 11:14caristuModules => Core
2022-06-03 11:14caristuTriggers an Emergency Pack => No
2022-06-03 11:16caristuProposed Solution updated
2022-06-03 11:17caristuSummaryImport BPSet process does not set the dates of the lines correctly => Import BPSet process does not set the dates of the imported lines correctly
2022-06-03 11:17caristuDescription Updatedbug_revision_view_page.php?rev_id=24227#r24227
2022-06-03 11:17caristuRelationship addedrelated to 0049358
2022-06-21 15:47caristuProposed Solution updated
2022-10-04 12:01hgbotNote Added: 0141631
2022-10-04 12:01hgbotNote Added: 0141632
2023-01-12 09:41AugustoMauchStatusnew => scheduled

Notes
(0141631)
hgbot   
2022-10-04 12:01   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/723 [^]
(0141632)
hgbot   
2022-10-04 12:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1243 [^]