Openbravo Issue Tracking System - Retail Modules |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0049628 | Retail Modules | Retail API | public | 2022-06-22 15:28 | 2022-07-26 08:16 |
|
| Reporter | azzeddine_meftoh | |
| Assigned To | ranjith_qualiantech_com | |
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | | Fixed in Version | RR22Q4 | |
| Merge Request Status | approved |
| Review Assigned To | |
| OBNetwork customer | No |
| Support ticket | |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0049628: External Order Loader - impossible to import return line with a negative line gross amount |
| Description | When importing orders with return line through the external order loader we cannot push a negative value on the line gross amount
(FYI : when doing returns on the pos this field is negative) |
| Steps To Reproduce | post on order with a return line -> absolute value in the DB
The issue can be reproduced using the "Import Order - Return" example from the Openbravo API Postman suite, or using the attached json. |
| Proposed Solution | The problem happens because the External Order Loader always sets the lineGrossAmount value with an absolute value[1], forcing all imported lines to be positive.
This seems to be a regression added with the project to support the Cancel Layaway flow from the EOL in 20q4
[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/src/org/openbravo/retail/posterminal/ExternalOrderLoader.java#L856 [^]
Attached a patch with a possible solution: keep the absolute value when doing a Cancel via EOL, otherwise use the gross amount (as it was used before 20q4). |
| Additional Information | |
| Tags | FASH |
| Relationships | | related to | defect | 0049472 | | closed | rqueralta | Error with OrderLoader Web Services |
|
| Attached Files | 49628.json (919) 2022-06-22 16:08 https://issues.openbravo.com/file_download.php?file_id=17212&type=bug
49628_patch.diff (1,362) 2022-06-22 16:09 https://issues.openbravo.com/file_download.php?file_id=17213&type=bug |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2022-06-22 15:28 | azzeddine_meftoh | New Issue | |
| 2022-06-22 15:28 | azzeddine_meftoh | Assigned To | => Triage Platform Conn |
| 2022-06-22 15:28 | azzeddine_meftoh | Triggers an Emergency Pack | => No |
| 2022-06-22 15:58 | aaroncalero | OBNetwork customer | => No |
| 2022-06-22 15:58 | aaroncalero | Assigned To | Triage Platform Conn => Retail |
| 2022-06-22 15:58 | aaroncalero | Summary | order loader - impossible to import return line with a negative line gross amount => External Order Loader - impossible to import return line with a negative line gross amount |
| 2022-06-22 15:58 | aaroncalero | Description Updated | bug_revision_view_page.php?rev_id=24334#r24334 |
| 2022-06-22 16:08 | aaroncalero | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24336#r24336 |
| 2022-06-22 16:08 | aaroncalero | Proposed Solution updated | |
| 2022-06-22 16:08 | aaroncalero | File Added: 49628.json | |
| 2022-06-22 16:09 | aaroncalero | File Added: 49628_patch.diff | |
| 2022-06-22 17:44 | marvintm | Relationship added | related to 0049472 |
| 2022-06-23 11:51 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
| 2022-06-24 11:23 | ranjith_qualiantech_com | Status | new => scheduled |
| 2022-07-01 09:03 | hgbot | Merge Request Status | => open |
| 2022-07-01 09:03 | hgbot | Note Added: 0138898 | |
| 2022-07-01 09:55 | rafaroda | Tag Attached: FASH | |
| 2022-07-25 08:53 | hgbot | Merge Request Status | open => approved |
| 2022-07-25 08:53 | hgbot | Resolution | open => fixed |
| 2022-07-25 08:53 | hgbot | Status | scheduled => closed |
| 2022-07-25 08:53 | hgbot | Note Added: 0139565 | |
| 2022-07-25 08:53 | hgbot | Fixed in Version | => RR22Q4 |
| 2022-07-25 08:53 | hgbot | Note Added: 0139566 | |
| 2022-07-26 08:16 | hgbot | Note Added: 0139601 | |