Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0043710 | Retail Modules | Web POS | public | 2020-04-08 16:03 | 2020-04-27 15:09 |
Reporter | gorkaion | ||||
Assigned To | prakashmurugesan88 | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR20Q3 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | Gold | ||||
Support ticket | 15547 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0043710: on manual return change the customer to a one with a different pricelist changes the qty to possitive values | ||||
Description | On an environment using multipricelist. While doing a manual return (not verified return) if you add some lines and later change the business partner the receipt is recalculated with positive quantities instead of negative. | ||||
Steps To Reproduce | 1 Log in in MPL1 terminal. 2 Set the receipt to be returned. 3 Add Alpine skiing backpack 27 L product 4 Change the customer to Bryan Raymond 5 The receipt is recalculated and the line is now with positive quantity. | ||||
Proposed Solution | The issue is in _addProduct function of order.js [1] These lines: if (this.get('orderType') === 1) { qty = qty ? -qty : -1; } else { qty = qty || 1; } If the ordertype is 1 it changes the sign of the quantity. So there are 2 possibilities: 1. Fix that logic to ensure that if the qty is already negative it does not require to change the sign. 2. Fix the logic in removeAndInsertLines function. So when the lines are inserted back the quantity used in the addProduct is positive. [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/js/model/order.js#L3394 [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-04-08 16:03 | gorkaion | New Issue | |||
2020-04-08 16:03 | gorkaion | Assigned To | => Retail | ||
2020-04-08 16:03 | gorkaion | OBNetwork customer | => Gold | ||
2020-04-08 16:03 | gorkaion | Support ticket | => 15547 | ||
2020-04-08 16:03 | gorkaion | Resolution time | => 1588111200 | ||
2020-04-08 16:03 | gorkaion | Triggers an Emergency Pack | => No | ||
2020-04-08 16:42 | ahernandezgil | Issue Monitored: ahernandezgil | |||
2020-04-17 10:24 | prakashmurugesan88 | Assigned To | Retail => prakashmurugesan88 | ||
2020-04-20 10:07 | prakashmurugesan88 | Status | new => scheduled | ||
2020-04-22 08:33 | hgbot | Checkin | |||
2020-04-22 08:33 | hgbot | Note Added: 0119315 | |||
2020-04-22 08:33 | hgbot | Status | scheduled => resolved | ||
2020-04-22 08:33 | hgbot | Resolution | open => fixed | ||
2020-04-22 08:33 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f5983910853ac45262269a27f29218788a4e7690 [^] | ||
2020-04-22 08:33 | hgbot | Checkin | |||
2020-04-22 08:33 | hgbot | Note Added: 0119316 | |||
2020-04-22 18:37 | marvintm | Note Added: 0119343 | |||
2020-04-22 18:37 | marvintm | Status | resolved => new | ||
2020-04-22 18:37 | marvintm | Resolution | fixed => open | ||
2020-04-23 10:22 | prakashmurugesan88 | Status | new => scheduled | ||
2020-04-24 15:19 | hgbot | Checkin | |||
2020-04-24 15:19 | hgbot | Note Added: 0119400 | |||
2020-04-24 15:19 | hgbot | Status | scheduled => resolved | ||
2020-04-24 15:19 | hgbot | Resolution | open => fixed | ||
2020-04-24 15:19 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f5983910853ac45262269a27f29218788a4e7690 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/99383eef2ef8fc616058ec055b6cfd6a82a32bef [^] | ||
2020-04-24 15:19 | hgbot | Checkin | |||
2020-04-24 15:19 | hgbot | Note Added: 0119401 | |||
2020-04-27 15:09 | marvintm | Review Assigned To | => marvintm | ||
2020-04-27 15:09 | marvintm | Status | resolved => closed | ||
2020-04-27 15:09 | marvintm | Fixed in Version | => RR20Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|