Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0048565 | POS2 | POS | public | 2022-02-10 08:18 | 2022-07-15 13:50 |
Reporter | jorge-garcia | ||||
Assigned To | sntgreale | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | Gold | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0048565: JIRA 2688: Store address is not loaded properly in POS2 if address is only set in 1st line or region is not set | ||||
Description | Store address is not loaded properly in POS application if address is only set in 1st line location selector | ||||
Steps To Reproduce | 1) Login in ERP as Openbravo 2) Switch to The White Valley Group role 3) Go to Organization window 4) Select Vall Blanca Store record and navigate to Information tab 5) Press on Location/Address field and put Pau Claris 138 1-1 into the 1st line field and delete value inside 2nd line field 6) Save the record 7) Login in VBS-1 terminal (POS2) with vallblanca user 8) Wait until the login and load masterdata are complete 9) Click in the terminal info at the top right of the application next to logo 10) Verify first line (address) is not rendered(see attached file) | ||||
Proposed Solution | Terminal information is getting from an existing ModelExtension from posterminal module. In CrossStoreInfoProperties.java there is part of the code to take the address: final String addressHQL = "" + "CONCAT(" + " COALESCE(l.addressLine1, ''), " + " CASE WHEN l.addressLine2 IS NOT NULL THEN " + " CONCAT(' - ',l.addressLine2,',') " + " END, " + " ' ', " + " COALESCE(l.postalCode, ''), " + " ' ', " + " COALESCE(l.cityName, ''), " + " CASE WHEN r.name IS NOT NULL THEN " + " CONCAT(' (',trim(r.name),'),') " + " END, " + " ' ', " + " COALESCE(c.name, '')" + ")"; //@formatter:on list.add(new HQLProperty(addressHQL, "address")); The sql executed here does not work if address is set only in 1st line field from locator selector | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=16605&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-02-10 08:18 | jorge-garcia | New Issue | |||
2022-02-10 08:18 | jorge-garcia | Assigned To | => Retail | ||
2022-02-10 08:18 | jorge-garcia | File Added: noAddress.png | |||
2022-02-10 08:18 | jorge-garcia | OBNetwork customer | => No | ||
2022-02-10 08:18 | jorge-garcia | Triggers an Emergency Pack | => No | ||
2022-02-10 09:13 | mmohammad | Note Added: 0134859 | |||
2022-02-10 09:33 | guilleaer | OBNetwork customer | No => Gold | ||
2022-02-10 09:33 | guilleaer | Summary | Store address is not loaded properly in POS application if address is only set in 1st line location selector => JIRA 2688: Store address is not loaded properly in POS application if address is only set in 1st line location selector | ||
2022-02-10 09:34 | guilleaer | Summary | JIRA 2688: Store address is not loaded properly in POS application if address is only set in 1st line location selector => JIRA 2688: Store address is not loaded properly in POS2 if address is only set in 1st line or region is not set | ||
2022-02-14 13:31 | sntgreale | Assigned To | Retail => sntgreale | ||
2022-02-14 13:31 | sntgreale | Status | new => scheduled | ||
2022-02-15 20:24 | hgbot | Merge Request Status | => open | ||
2022-02-15 20:24 | hgbot | Note Added: 0135027 | |||
2022-02-15 22:57 | hgbot | Merge Request Status | open => approved | ||
2022-02-15 22:57 | hgbot | Resolution | open => fixed | ||
2022-02-15 22:57 | hgbot | Status | scheduled => closed | ||
2022-02-15 22:57 | hgbot | Fixed in Version | => RR22Q2 | ||
2022-02-15 22:57 | hgbot | Note Added: 0135028 | |||
2022-02-15 22:57 | hgbot | Note Added: 0135029 | |||
2022-07-13 06:56 | hgbot | Note Added: 0139289 | |||
2022-07-15 13:50 | hgbot | Note Added: 0139351 | |||
2022-07-15 13:50 | hgbot | Note Added: 0139352 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|