Commit 84ca53d
authored
Fixed: Canceling an item from the order view and refreshing the page caused promotional items to endlessly duplicate in the ITEM_CREATED status. (#1142)
Fixed: Canceling an item from the order view and refreshing the page
caused promotional items to endlessly duplicate in the ITEM_CREATED
status. (OFBIZ-12104)
Explanation:
1. The recreateOrderAdjustments service created new promotional items
but failed to link them to their ship groups (OrderItemShipGroupAssoc).
Without this link, the cancellation service could not identify or remove
them during subsequent runs, causing items to accumulate.
2. New promotional items were hardcoded to the ITEM_CREATED status, even
if the parent order was already ORDER_APPROVED.
Thanks to Rashi Dhagat for reporting issue.1 parent 615a6fe commit 84ca53d
1 file changed
Lines changed: 19 additions & 4 deletions
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
| 216 | + | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
| 227 | + | |
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
232 | 247 | | |
233 | 248 | | |
234 | 249 | | |
| |||
0 commit comments