Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046461Retail ModulesRetail APIpublic2021-05-03 13:102021-05-05 11:12
guillermogil 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR21Q3 
No
0046461: unitDiscount property in swagger is set as not mandatory
unitDiscount property in swagger is set as not mandatory and it is mandatory:
"error": {
            "message": "Checking promotion: property not found unitDiscount on json {\"name\":\"10% Internet\",\"discountRule\":\"Normal\",\"amount\":16.11,\"quantity\":1}",
            "messageType": "Error",
            "title": ""
        }
Open swagger and check discount property: https://livebuilds.openbravo.com/retail_modules_pgsql_pi/api?urls.primaryName=orderloader [^]
See attached screenshot
No tags attached.
png Screenshot from 2021-05-03 13-07-33.png (30,211) 2021-05-03 13:10
https://issues.openbravo.com/file_download.php?file_id=15621&type=bug
png
Issue History
2021-05-03 13:10guillermogilNew Issue
2021-05-03 13:10guillermogilAssigned To => Retail
2021-05-03 13:10guillermogilResolution time => 1621548000
2021-05-03 13:10guillermogilTriggers an Emergency Pack => No
2021-05-03 13:10guillermogilFile Added: Screenshot from 2021-05-03 13-07-33.png
2021-05-04 07:27ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-05-04 07:31ranjith_qualiantech_comStatusnew => scheduled
2021-05-05 07:41hgbotNote Added: 0127793
2021-05-05 11:12hgbotNote Added: 0127813
2021-05-05 11:12hgbotResolutionopen => fixed
2021-05-05 11:12hgbotStatusscheduled => closed
2021-05-05 11:12hgbotFixed in Version => RR21Q3
2021-05-05 11:12hgbotNote Added: 0127814

Notes
(0127793)
hgbot   
2021-05-05 07:41   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/395 [^]
(0127813)
hgbot   
2021-05-05 11:12   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/395 [^]
(0127814)
hgbot   
2021-05-05 11:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: f02bb11e7ce944657bbbfd8675e4adcabf973f3a
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-05T09:11:44+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/f02bb11e7ce944657bbbfd8675e4adcabf973f3a [^]

Fixed ISSUE-46461: Updated OrderLoader Swagger to add unitDiscount mandatory in Promotion

---
M api/org.openbravo.retail.posterminal-orderloader.yml
---