Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0036324 | Retail Modules | Web POS | public | 2017-06-23 12:41 | 2017-09-21 16:49 |
Reporter | JONHM | ||||
Assigned To | asiermartirena | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR17Q4 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | OBPS | ||||
Support ticket | 47300 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0036324: Error doing cancel and replace of an already paid and returned receipt | ||||
Description | Having a receipt which has been paid, returned and invoiced, there is an error while importing when trying to cancel and replace that receipt. | ||||
Steps To Reproduce | *Login with vallblanca user In WebPos: 1) Create a new receipt for 'Avalanche transceiver' product and set the 'Invoice this receipt' flag as YES. Finish the payment. 2) Return that receipt: Click on 'Verified returns' and select the previous receipt. Also set the 'Invoice this receipt' flag as YES and finish the return. 3) Cancel and replace the first receipt: Open the tab 'Receipts' and select the previously created receipt. Then, set the 'Invoice this receipt' flag as YES and finish the process. **In the backend 4) Open window 'Errors While Importing POS Data' and see the related error | ||||
Proposed Solution | The problem is caused because the 'generateShipment' property should be set as 'false', but in this case this is not happening because of this lines of pointofsale-model.js file: if (_.isUndefined(_.find(receipt.get('lines').models, function (line) { var qty = line.get('qty') ? line.get('qty') : 0, remainingQuantity = line.get('remainingQuantity') ? line.get('remainingQuantity') : 0; return (qty > 0 && qty > remainingQuantity) || (qty < 0 && qty < remainingQuantity); }))) { receipt.set('generateShipment', false); } The quantity should be compared with the 'deliveredQuantity' instead of 'remainingQuantity' | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=10866&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2017-06-23 12:41 | JONHM | New Issue | |||
2017-06-23 12:41 | JONHM | Assigned To | => Retail | ||
2017-06-23 12:41 | JONHM | File Added: errorCancReplace.mp4 | |||
2017-06-23 12:41 | JONHM | OBNetwork customer | => Yes | ||
2017-06-23 12:41 | JONHM | Support ticket | => 47300 | ||
2017-06-23 12:41 | JONHM | Resolution time | => 1499983200 | ||
2017-06-23 12:41 | JONHM | Triggers an Emergency Pack | => No | ||
2017-06-26 10:20 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2017-06-26 10:20 | ranjith_qualiantech_com | Status | new => scheduled | ||
2017-06-27 09:19 | ranjith_qualiantech_com | Assigned To | ranjith_qualiantech_com => Retail | ||
2017-06-27 09:19 | ranjith_qualiantech_com | Status | scheduled => acknowledged | ||
2017-06-27 09:29 | asiermartirena | Assigned To | Retail => asiermartirena | ||
2017-08-14 09:31 | hgbot | Checkin | |||
2017-08-14 09:31 | hgbot | Note Added: 0098494 | |||
2017-08-14 09:31 | hgbot | Status | acknowledged => resolved | ||
2017-08-14 09:31 | hgbot | Resolution | open => fixed | ||
2017-08-14 09:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b7733f310ef6887e968162da0803e857df11ba0a [^] | ||
2017-08-14 09:33 | hgbot | Checkin | |||
2017-08-14 09:33 | hgbot | Note Added: 0098495 | |||
2017-08-14 09:34 | hgbot | Checkin | |||
2017-08-14 09:34 | hgbot | Note Added: 0098496 | |||
2017-08-18 09:44 | marvintm | Review Assigned To | => marvintm | ||
2017-08-18 09:44 | marvintm | Status | resolved => closed | ||
2017-08-18 09:44 | marvintm | Fixed in Version | => RR17Q4 | ||
2017-09-21 16:49 | hudsonbot | Checkin | |||
2017-09-21 16:49 | hudsonbot | Note Added: 0099310 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|