Openbravo Issue Tracking System - Retail Modules
View Issue Details
0057818Retail ModulesRetail APIpublic2025-01-31 11:442025-02-11 12:07
XABIER_AGUADO 
kousalya_r 
urgentminoralways
closedunable to reproduce 
5
 
 
Gold
No
0057818: Discounts Web Service doesnt return the right discounts
If we try using the API Discount (/ws/org.openbravo.discounts.discount), we dont get the same discounts as shown in POS for the exact same ticket.
Configure the following discounts:

Discount: Pack
- Name: Pack
- Search key: Pack
-Starting date: today
- Included Products Only: those defined
- Discount/Promotion Price: 5
- Apply Next Discount Promotion: Y
- Included Products: Bottle 1L & Mountains Water Bottle.

Discount: Fixed Percentage Discount
- Name: Fixed Percentage Discount
- Search key: Fixed Percentage Discount
- Starting date: today
- Included Products Only: those defined
- Discount: 5% - Apply Next Discount Promotion: Y
 - Included Products: Bottle 1L

Discount: Price Adjustment
- Name: Price Adjustment
- Search key: Price Adjustment
- Starting date: today
- Included Products Only: those defined
- Discount: 1
- Min Quantity: 1
- Max Quantity: 5
- Apply Next Discount Promotion: Y
- Included Products: Bottle 1L



JSON (Update the date):
{
  "ticket": {
    "id": "F54FA593DBC48XC3AFFA2FF4298FE411",
    "organization": {
      "id": "D270A5AC50874F8BA67A88EE977F8E3B",
      "_identifier": "Vall Blanca Store"
    },
    "businessPartner": {
      "id": "ABD91C9D3BC94175B876FBBE9CACA008",
      "_identifier": "VBS Customer"
    },
    "orderDate": "2025-01-31T11:54:21",
    "priceIncludesTax": true,
    "lines": [
      {
        "id": "60BE74DA6C424ED388A3F6306A55FAB2",
        "product": {
          "id": "3BD414F7A8024D108AF4759F240A966C",
          "_identifier": "Bottle 1 L"
        },
        "qty": 3,
        "baseGrossUnitPrice": 9.50
      },

 {
        "id": "60BE74DA6C4255388A3F6306A55FAB2",
        "product": {
          "id": "3BD414F7A8024D108AF4759F240A966C",
          "_identifier": "Mountains water bottle"
        },
        "qty": 3,
        "baseGrossUnitPrice": 1.2
      }
    ]
  }
}
FASH
png response_discounts.png (43,261) 2025-01-31 11:44
https://issues.openbravo.com/file_download.php?file_id=20824&type=bug
png

png POS_DISCOUNTS.png (49,060) 2025-01-31 11:44
https://issues.openbravo.com/file_download.php?file_id=20825&type=bug
png

png price-adjustment.png (81,249) 2025-01-31 11:44
https://issues.openbravo.com/file_download.php?file_id=20826&type=bug
png

png FIX_DISCOUNT.png (86,054) 2025-01-31 11:44
https://issues.openbravo.com/file_download.php?file_id=20827&type=bug
png

png PACK.png (101,460) 2025-01-31 11:45
https://issues.openbravo.com/file_download.php?file_id=20828&type=bug
png
Issue History
2025-01-31 11:44XABIER_AGUADONew Issue
2025-01-31 11:44XABIER_AGUADOAssigned To => Retail
2025-01-31 11:44XABIER_AGUADOFile Added: response_discounts.png
2025-01-31 11:44XABIER_AGUADOOBNetwork customer => Gold
2025-01-31 11:44XABIER_AGUADOTriggers an Emergency Pack => No
2025-01-31 11:44XABIER_AGUADOTag Attached: FASH
2025-01-31 11:44XABIER_AGUADOFile Added: POS_DISCOUNTS.png
2025-01-31 11:44XABIER_AGUADOFile Added: price-adjustment.png
2025-01-31 11:44XABIER_AGUADOFile Added: FIX_DISCOUNT.png
2025-01-31 11:45XABIER_AGUADOFile Added: PACK.png
2025-01-31 12:18XABIER_AGUADOSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29150#r29150
2025-02-02 23:39marvintmAssigned ToRetail => Triage Omni OMS
2025-02-03 13:31XABIER_AGUADOPrioritynormal => urgent
2025-02-05 08:12jonaeNote Added: 0175137
2025-02-05 08:26jonaeAssigned ToTriage Omni OMS => kousalya_r
2025-02-11 12:07XABIER_AGUADOStatusnew => closed
2025-02-11 12:07XABIER_AGUADOResolutionopen => unable to reproduce

Notes
(0175137)
jonae   
2025-02-05 08:12   
Jira - https://openbravo.atlassian.net/browse/RM-20987 [^]