Openbravo Issue Tracking System - POS2 | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0056070 | POS2 | POS | public | 2024-07-19 11:54 | 2024-07-22 11:57 | |||||||
Reporter | migueldejuana | |||||||||||
Assigned To | sreehari | |||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 24Q4 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0056070: When sequenceNumber is undefined we get it from terminal and we get DocumentNo duplicated | |||||||||||
Description | When sequenceNumber is undefined we get it from terminal and we get DocumentNo duplicated. In case we lose the value of state.DocumentSequence.lastassignednum.sequenceNumber we get the information from terminal but this info is not always up to date. | |||||||||||
Steps To Reproduce | - Login in POS2 - Create 3 orders and confirm the DocNo in Sales Order window in the ERP (i.e.: 001, 002 and 003) - Put a breakpoint in https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/ob-init.js#L3309 [^] - Set to undefined the sequenceNumber (state.DocumentSequence.lastassignednum.sequenceNumber = undefined;) - Put a breakpoint in https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/authentication/loginInitActions.js#L141 [^] - Resume the first breakpoint - Check in the second breakpoint that "Terminal.terminal.lastDocumentNumber" is not "3" as expected. - Resume the second breakpoint - DO a sale a confirm that the DocNo of this order is duplicated ("001") | |||||||||||
Proposed Solution | If state.DocumentSequence.lastassignednum.sequenceNumber is undefined in initializeDocumentSequence, we should do a request to the backend to get that information instead of getting "Terminal.terminal.lastDocumentNumber". Check this code that could be useful: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/src/org/openbravo/retail/posterminal/term/Terminal.java#L85 [^] | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2024-07-19 11:54 | migueldejuana | New Issue | ||||||||||
2024-07-19 11:54 | migueldejuana | Assigned To | => Retail | |||||||||
2024-07-19 11:54 | migueldejuana | Triggers an Emergency Pack | => No | |||||||||
2024-07-19 12:04 | sreehari | Assigned To | Retail => sreehari | |||||||||
2024-07-19 12:04 | sreehari | Status | new => scheduled | |||||||||
2024-07-22 08:47 | hgbot | Note Added: 0167210 | ||||||||||
2024-07-22 11:57 | hgbot | Note Added: 0167218 | ||||||||||
2024-07-22 11:57 | hgbot | Resolution | open => fixed | |||||||||
2024-07-22 11:57 | hgbot | Status | scheduled => closed | |||||||||
2024-07-22 11:57 | hgbot | Fixed in Version | => 24Q4 | |||||||||
2024-07-22 11:57 | hgbot | Note Added: 0167219 | ||||||||||
2024-08-13 07:14 | sreehari | Relationship added | related to 0056246 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|