Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0057818
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail APIminoralways2025-01-31 11:442025-02-05 08:26
ReporterXABIER_AGUADOView Statuspublic 
Assigned Tokousalya_r 
PriorityurgentResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0057818: Discounts Web Service doesnt return the right discounts

DescriptionIf 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.
Steps To ReproduceConfigure 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
      }
    ]
  }
}
TagsFASH
Attached Filespng file icon response_discounts.png [^] (43,261 bytes) 2025-01-31 11:44


png file icon POS_DISCOUNTS.png [^] (49,060 bytes) 2025-01-31 11:44


png file icon price-adjustment.png [^] (81,249 bytes) 2025-01-31 11:44


png file icon FIX_DISCOUNT.png [^] (86,054 bytes) 2025-01-31 11:44


png file icon PACK.png [^] (101,460 bytes) 2025-01-31 11:45

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0175137)
jonae (developer)
2025-02-05 08:12

Jira - https://openbravo.atlassian.net/browse/RM-20987 [^]

- Issue History
Date Modified Username Field Change
2025-01-31 11:44 XABIER_AGUADO New Issue
2025-01-31 11:44 XABIER_AGUADO Assigned To => Retail
2025-01-31 11:44 XABIER_AGUADO File Added: response_discounts.png
2025-01-31 11:44 XABIER_AGUADO Triggers an Emergency Pack => No
2025-01-31 11:44 XABIER_AGUADO Tag Attached: FASH
2025-01-31 11:44 XABIER_AGUADO File Added: POS_DISCOUNTS.png
2025-01-31 11:44 XABIER_AGUADO File Added: price-adjustment.png
2025-01-31 11:44 XABIER_AGUADO File Added: FIX_DISCOUNT.png
2025-01-31 11:45 XABIER_AGUADO File Added: PACK.png
2025-01-31 12:18 XABIER_AGUADO Steps to Reproduce Updated View Revisions
2025-02-02 23:39 marvintm Assigned To Retail => Triage Omni OMS
2025-02-03 13:31 XABIER_AGUADO Priority normal => urgent
2025-02-05 08:12 jonae Note Added: 0175137
2025-02-05 08:26 jonae Assigned To Triage Omni OMS => kousalya_r


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker