Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0049472 | Retail Modules | Web POS | public | 2022-06-02 23:07 | 2022-06-22 17:44 |
|
Reporter | axelmercado | |
Assigned To | rqueralta | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | |
Platform | | OS | 5 | OS Version | |
Product Version | RR21Q4.2 | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0049472: Error with OrderLoader Web Services |
Description | When sending a json for a return with the isReturn set to "true", the return order is created with the gross line amount in positive. |
Steps To Reproduce | 1-Create a JSON
http://wiki.openbravo.com/wiki/Retail:Order_Loading_WebService#URL.2FRequest_.26_Authentication [^]
2-Send the JSON to the API with the following endpoint:
http://localhost:8080/openbravo/org.openbravo.mobile.core.service.jsonrest/org.openbravo.retail.posterminal.ExternalOrderLoader?synchronizedProcessing=true [^]
3-Check that the return has been created correctly in the customer return window and the values of the "Gross Line Amount" and "Line Net Amount" lines.
We performed the 2 possibilities indicated in the Wiki to enter the return but both fail in the same way.
Quote:A return can be send in, in 2 ways:
set a property "isReturn" on the order header to true. The complete ticket is considered to be a return. The quantities in the orderlines are positive, but still to be considered to be returns.
send in a standard ticket but with negative quantity for the return. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0049628 | | closed | ranjith_qualiantech_com | External Order Loader - impossible to import return line with a negative line gross amount |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-06-02 23:07 | axelmercado | New Issue | |
2022-06-02 23:07 | axelmercado | Assigned To | => Retail |
2022-06-02 23:07 | axelmercado | Triggers an Emergency Pack | => No |
2022-06-02 23:08 | ivazquez | ETA | none => < 1 month |
2022-06-03 07:21 | ivancaceres | Issue Monitored: ivancaceres | |
2022-06-07 15:02 | rqueralta | Assigned To | Retail => rqueralta |
2022-06-07 15:03 | rqueralta | Status | new => scheduled |
2022-06-10 09:11 | marvintm | Review Assigned To | => marvintm |
2022-06-10 09:11 | marvintm | Note Added: 0138240 | |
2022-06-10 09:11 | marvintm | Status | scheduled => closed |
2022-06-10 09:11 | marvintm | Resolution | open => no change required |
2022-06-10 09:21 | ivancaceres | Note Added: 0138242 | |
2022-06-10 14:56 | axelmercado | Note Added: 0138264 | |
2022-06-22 17:44 | marvintm | Note Added: 0138642 | |
2022-06-22 17:44 | marvintm | Relationship added | related to 0049628 |
Notes |
|
|
The OrderLoader (and by extension the ExternalOrderLoader), are designed to receive the information of the Order in the JSON exactly in the way it should be created. This means that returns should be sent with the negative qty and total amounts.
The wiki statement mentioned in the issue was confusing, and we have clarified it to better explain this point:
http://wiki.openbravo.com/wiki/Retail:Order_Loading_WebService#Return_Order.2FLines [^] |
|
|
|
Hi Marvin,
Can you check TicketPropertyMapping.java method getGrossUnitAmount? In this method, i think gross should be taken instead of lineGrossAmount.
Sl2 |
|
|
|
Is it correct that "Gross Line Amount" and "Line Net Amount" both end in positive? |
|
|
|
|