Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0047398 | Retail Modules | Web POS | public | 2021-07-15 11:12 | 2021-08-24 11:40 |
Reporter | sebastien_liron | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | urgent | Severity | major | Reproducibility | random |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | RR20Q3.4 | ||||
Target Version | RR20Q3.4 | Fixed in Version | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | Gold | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0047398: Error while importing : taxes field is wrong | ||||
Description | After some investigation the problem is that the code in Web POS is failing and not calculating the taxes when the ticket is DELETED and synchronized to the backend (it happens randomly and we don’t know exactly why) Due to this problem, the taxes property in the order are arriving as an array instead of JSON: Taxes: [] <— wrong Taxes: {} <— right | ||||
Steps To Reproduce | As it is random we cannot ensure the steps It just happens on standard ticket deletion | ||||
Proposed Solution | WE made this as a quick patch, but this is not the source issue fix : OB.UTIL.HookManager.registerHook( 'OBPOS_PreSyncReceipt', (args, callbacks) => { const order = args.receipt; if ( (order.get('obposIsDeleted') && OB.UTIL.isNullOrUndefined(order.get('taxes'))) || order.get('taxes') instanceof Array ) { order.set('taxes', {}); order.get('lines').models.forEach(line => { if (OB.UTIL.isNullOrUndefined(order.get('net'))) { line.set('net', 0); } }); } OB.UTIL.HookManager.callbackExecutor(args, callbacks); } ); | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=16145&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-07-15 11:12 | sebastien_liron | New Issue | |||
2021-07-15 11:12 | sebastien_liron | Assigned To | => Retail | ||
2021-07-15 11:12 | sebastien_liron | OBNetwork customer | => Gold | ||
2021-07-15 11:12 | sebastien_liron | Resolution time | => 1630274400 | ||
2021-07-15 11:12 | sebastien_liron | Triggers an Emergency Pack | => No | ||
2021-07-15 11:38 | egoitz | Note Added: 0130502 | |||
2021-07-15 11:38 | egoitz | Issue Monitored: egoitz | |||
2021-07-19 22:53 | rqueralta | Assigned To | Retail => rqueralta | ||
2021-07-19 22:53 | rqueralta | Status | new => scheduled | ||
2021-08-24 11:40 | marvintm | File Added: 20Q3_TaxArray_ForceCashup.diff | |||
2021-08-24 11:40 | marvintm | Note Added: 0131289 | |||
2021-08-24 11:40 | marvintm | Status | scheduled => resolved | ||
2021-08-24 11:40 | marvintm | Resolution | open => fixed | ||
2021-08-24 11:40 | marvintm | Assigned To | rqueralta => ranjith_qualiantech_com | ||
2021-08-24 11:40 | marvintm | Review Assigned To | => marvintm | ||
2021-08-24 11:40 | marvintm | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|