Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0054806 | Retail Modules | Retail API Discount | public | 2024-02-29 14:00 | 2024-04-18 15:10 | |||||||
Reporter | AgatheBertin | |||||||||||
Assigned To | Rajesh_18 | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0054806: API Discount : Error when importing promotion "Buy X pay Y of different product" | |||||||||||
Description | When importing json from discount API whit a promotion type Buy X pay Y of different product, the EDL request is in error with this message : Error while importing an item: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap') | |||||||||||
Steps To Reproduce | Integrate the following json through the Promotion API {"client":"XXXXX","organization":"*","name":"TESTABEMANTIS","discountAmount":0,"discountPercentage":5,"startingDate":"2024-02-01","includedBusinessPartners":"Y","includedBPCategories":"Y","includedProducts":"Y","includedProductCategories":"Y","includedOrganizations":"Y","includePriceLists":"Y","includedCharacteristics":"Y","includedRoles":"Y","excludedCharacteristics":"A","includedExternalBusinessPartners":"Y","discountType":"Buy X pay Y of different product","applyNextDiscount":true,"priceAdjustmentScope":"A","priceAdjustmentType":"P","priceAdjustmentAmount":0,"priceAdjustmentPercentage":0,"xUnits":10,"yUnits":9,"minX":9,"maxX":10,"distributeBetweenLines":false,"percentage":10,"approvalRequired":false,"allowMultipleInstances":false,"applyAfterAutomaticDiscounts":false,"allowInNegativeLines":false,"allowIncreaseLinePrice":true,"totalReceiptAmount":100,"totalPercentageDiscount":15,"isCoupon":false,"buyXGiftYSubtype":"BUYALLXGIFTALLY","applyOnce":false,"applicationMethod":"discretionary","verifyPriceLimit":true,"isOTFCoupon":false,"otfApplyMinCouponAmount":false,"applyToProductsUpToTheMaxQuantity":false,"applyMinCouponAmount":false,"organizations":[],"priceLists":[],"products":[],"productCategories":[],"incompatibleDiscounts":[],"availability":[],"businessPartnerCategories":[],"businessPartnerSets":[],"characteristics":[],"crmPropertyConditions":[],"freeProducts":[],"comboFamilies":[],"priceScales":[],"loyaltyPrograms":[]} | |||||||||||
Proposed Solution | After first analysis this error seems related to the fields xUnit and yUnit | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2024-02-29 14:00 | AgatheBertin | New Issue | ||||||||||
2024-02-29 14:00 | AgatheBertin | Assigned To | => Retail | |||||||||
2024-02-29 14:00 | AgatheBertin | Triggers an Emergency Pack | => No | |||||||||
2024-03-08 14:02 | jorgewederago | Status | new => acknowledged | |||||||||
2024-03-11 12:30 | Rajesh_18 | Assigned To | Retail => Rajesh_18 | |||||||||
2024-03-11 12:30 | Rajesh_18 | Status | acknowledged => scheduled | |||||||||
2024-03-13 06:09 | hgbot | Note Added: 0162043 | ||||||||||
2024-03-15 13:42 | hgbot | Resolution | open => fixed | |||||||||
2024-03-15 13:42 | hgbot | Status | scheduled => closed | |||||||||
2024-03-15 13:42 | hgbot | Note Added: 0162234 | ||||||||||
2024-03-15 13:42 | hgbot | Note Added: 0162235 | ||||||||||
2024-04-11 17:59 | kchoperena | Note Added: 0163118 | ||||||||||
2024-04-11 17:59 | kchoperena | Note Added: 0163119 | ||||||||||
2024-04-11 17:59 | kchoperena | Status | closed => new | |||||||||
2024-04-11 17:59 | kchoperena | Resolution | fixed => open | |||||||||
2024-04-11 17:59 | kchoperena | Note Deleted: 0163118 | ||||||||||
2024-04-11 18:00 | kchoperena | Note Edited: 0163119 | bug_revision_view_page.php?bugnote_id=0163119#r27801 | |||||||||
2024-04-15 10:03 | hgbot | Note Added: 0163188 | ||||||||||
2024-04-15 13:01 | jorgewederago | Status | new => scheduled | |||||||||
2024-04-15 14:27 | hgbot | Note Added: 0163231 | ||||||||||
2024-04-15 14:27 | hgbot | Note Added: 0163232 | ||||||||||
2024-04-15 14:28 | jorgewederago | Status | scheduled => resolved | |||||||||
2024-04-15 14:28 | jorgewederago | Resolution | open => fixed | |||||||||
2024-04-15 14:28 | jorgewederago | Status | resolved => closed | |||||||||
2024-04-18 13:25 | Rajesh_18 | Status | closed => new | |||||||||
2024-04-18 13:25 | Rajesh_18 | Resolution | fixed => open | |||||||||
2024-04-18 13:25 | Rajesh_18 | Status | new => scheduled | |||||||||
2024-04-18 15:10 | Rajesh_18 | Status | scheduled => resolved | |||||||||
2024-04-18 15:10 | Rajesh_18 | Resolution | open => fixed | |||||||||
2024-04-18 15:10 | Rajesh_18 | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|