Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0037436 | Retail Modules | Web POS | public | 2017-12-05 16:20 | 2018-01-18 18:33 | |||||||
Reporter | aaroncalero | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR18Q2 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0037436: The cancellation of the OBPOS_PreOrderSave hook is not correctly handled in Pay Open Tickets | |||||||||||
Description | The cancellation of the OBPOS_PreOrderSave hook is not handled correctly in Pay Open Tickets. Depending on which ticket cancels the hook, it might leave the previous tickets saved in websql with the hasbeenpaid attribute to 'Y', but not synchronized, making it impossible to update them afterwards. This can lead to cashup differences if the payments change between synchronization retries (because the "locked" ticket won't be updated). | |||||||||||
Steps To Reproduce | Login in web pos. Create two tickets in draft and add products to both of them. Go to the Menu > Pay Open Tickets and select the tickets created in the first step. Open the browser console and execute the following: OB.MobileApp.model.attributes.permissions["OBMOBC_SynchronizedMode"] = true OB.FAILCONDITION = true OB.FAILDOCNO = the_documentNo_of_the_second_ticket OB.UTIL.HookManager.registerHook('OBPOS_PreOrderSave', function(a,b){ if(OB.FAILCONDITION && a.receipt.get('documentNo') === OB.FAILDOCNO){ OB.MobileApp.model.hideSynchronizingDialog(); a.cancellation = true; } OB.UTIL.HookManager.callbackExecutor(a,b); }) Add a full payment in Card and click on Done. The process will stop because of the hook. Remove the Card payment. Add a full payment in Voucher. Execute the following in the browser console: OB.FAILCONDITION = false; Click on the Done button again. This time the hook will not cancel the execution and the tickets will be synchronized, although the following error will appear in the console: [checkBlocked][no-transaction][hasbeenpaid_is_yes] Wrong write in c_order avoided. Load both tickets again in WebPOS: The first ticket will be paid with Card (although the card payment was completely removed). The second ticket will be paid with Voucher. | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=11405&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=11406&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2017-12-05 16:20 | aaroncalero | New Issue | ||||||||||
2017-12-05 16:20 | aaroncalero | Assigned To | => Retail | |||||||||
2017-12-05 16:20 | aaroncalero | OBNetwork customer | => Yes | |||||||||
2017-12-05 16:20 | aaroncalero | Resolution time | => 1513638000 | |||||||||
2017-12-05 16:20 | aaroncalero | Triggers an Emergency Pack | => No | |||||||||
2017-12-07 15:00 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2017-12-07 15:00 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2017-12-11 08:32 | hgbot | Checkin | ||||||||||
2017-12-11 08:32 | hgbot | Note Added: 0100952 | ||||||||||
2017-12-11 08:32 | hgbot | Status | scheduled => resolved | |||||||||
2017-12-11 08:32 | hgbot | Resolution | open => fixed | |||||||||
2017-12-11 08:32 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/556a2d5cde71d730aaad67bd86e0cea47985fa92 [^] | |||||||||
2017-12-20 18:47 | marvintm | Note Added: 0101174 | ||||||||||
2017-12-20 18:47 | marvintm | Status | resolved => new | |||||||||
2017-12-20 18:47 | marvintm | Resolution | fixed => open | |||||||||
2017-12-21 07:06 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2018-01-02 16:09 | ranjith_qualiantech_com | File Added: issue 37436 posterminal.patch | ||||||||||
2018-01-02 16:09 | ranjith_qualiantech_com | File Added: issue 37436 test.patch | ||||||||||
2018-01-05 12:54 | hgbot | Checkin | ||||||||||
2018-01-05 12:54 | hgbot | Note Added: 0101593 | ||||||||||
2018-01-05 12:54 | hgbot | Status | scheduled => resolved | |||||||||
2018-01-05 12:54 | hgbot | Resolution | open => fixed | |||||||||
2018-01-05 12:54 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/556a2d5cde71d730aaad67bd86e0cea47985fa92 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8e28db8bf44e47756d6f4e18457d03f71d105902 [^] | |||||||||
2018-01-05 12:55 | hgbot | Checkin | ||||||||||
2018-01-05 12:55 | hgbot | Note Added: 0101594 | ||||||||||
2018-01-08 12:06 | marvintm | Note Added: 0101618 | ||||||||||
2018-01-08 12:06 | marvintm | Status | resolved => new | |||||||||
2018-01-08 12:06 | marvintm | Resolution | fixed => open | |||||||||
2018-01-17 07:57 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2018-01-17 09:54 | hgbot | Checkin | ||||||||||
2018-01-17 09:54 | hgbot | Note Added: 0101740 | ||||||||||
2018-01-17 09:54 | hgbot | Status | scheduled => resolved | |||||||||
2018-01-17 09:54 | hgbot | Resolution | open => fixed | |||||||||
2018-01-17 09:54 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8e28db8bf44e47756d6f4e18457d03f71d105902 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5d2c8347e44c29bd53a4130dbb341602d46a1695 [^] | |||||||||
2018-01-17 09:54 | hgbot | Checkin | ||||||||||
2018-01-17 09:54 | hgbot | Note Added: 0101741 | ||||||||||
2018-01-18 18:32 | marvintm | Status | resolved => new | |||||||||
2018-01-18 18:32 | marvintm | Resolution | fixed => open | |||||||||
2018-01-18 18:32 | marvintm | Status | new => scheduled | |||||||||
2018-01-18 18:32 | marvintm | Status | scheduled => resolved | |||||||||
2018-01-18 18:32 | marvintm | Fixed in Version | => RR18Q2 | |||||||||
2018-01-18 18:32 | marvintm | Resolution | open => fixed | |||||||||
2018-01-18 18:33 | marvintm | Review Assigned To | => marvintm | |||||||||
2018-01-18 18:33 | marvintm | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|