Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054639Retail ModulesRetail APIpublic2024-02-09 14:342024-07-10 12:02
ngarcia 
SABARINATH P 
highminoralways
closedfixed 
5
 
 
No
0054639: Payment amount is duplicated when exporting an order with a payment that includes two lines
Payment amount is duplicated when exporting an order with a payment that includes two lines. Instead of getting the payment detail amount it is showing the payment amount
In https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi [^]

Create a Sales Order in the backoffice with two lines
Pay it
Invoice it in two different invoices, one per each line
Check the payment has two lines

Use the following link to access the JSON of the order:

https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/ws/org.openbravo.api.ExportService/Order/<orderId> [^]

Check it includes two payments with the amounts of the total payment:

    "payments": [
      {
        "name": "Cash",
        "rate": 1,
        "currency": "EUR",
        "amount": 29.1,
        "paidAmount": 29.1,
        "paymentDate": "2024-02-09",
        "giftCardInstanceNo": ""
      },
      {
        "name": "Cash",
        "rate": 1,
        "currency": "EUR",
        "amount": 29.1,
        "paidAmount": 29.1,
        "paymentDate": "2024-02-09",
        "giftCardInstanceNo": ""
      }
    ],
No tags attached.
Issue History
2024-02-09 14:34ngarciaNew Issue
2024-02-09 14:34ngarciaAssigned To => Triage Platform Conn
2024-02-09 14:34ngarciaTriggers an Emergency Pack => No
2024-06-06 16:05adrianromeroAssigned ToTriage Platform Conn => Retail
2024-06-17 08:36guillermogilStatusnew => acknowledged
2024-06-19 11:54SABARINATH PAssigned ToRetail => SABARINATH P
2024-06-19 11:54SABARINATH PStatusacknowledged => scheduled
2024-06-20 14:38hgbotNote Added: 0166162
2024-07-10 12:02hgbotNote Added: 0166863
2024-07-10 12:02hgbotResolutionopen => fixed
2024-07-10 12:02hgbotStatusscheduled => closed
2024-07-10 12:02hgbotNote Added: 0166864

Notes
(0166162)
hgbot   
2024-06-20 14:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/287 [^]
(0166863)
hgbot   
2024-07-10 12:02   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/287 [^]
(0166864)
hgbot   
2024-07-10 12:02   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: d95c7e4572b42e047fb1c729f007665c94be84a4
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 10-07-2024 05:41:50
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/d95c7e4572b42e047fb1c729f007665c94be84a4 [^]

Fixed ISSUE-54639: Changed property of paidamount from payment - received amount

---
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---