This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 3f8bb069c2 Fixed: Correct the typo of entity name in
cancelReplacementOrderItems method (OFBIZ-13218)
3f8bb069c2 is described below
commit 3f8bb069c2b6b803708efdfffe137ff607ec11e5
Author: Jacques Le Roux <[email protected]>
AuthorDate: Tue Mar 18 13:41:51 2025 +0100
Fixed: Correct the typo of entity name in cancelReplacementOrderItems
method (OFBIZ-13218)
In OrderReturnServicesScript.groovy, inside cancelReplacementOrderItems(),
"ReturnItems" entity name needs to be replaced with "ReturnItem".
Thanks: Anshul Goyal
---
.../org/apache/ofbiz/order/order/OrderReturnServicesScript.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderReturnServicesScript.groovy
b/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderReturnServicesScript.groovy
index a15854a129..b1d2be5576 100644
---
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderReturnServicesScript.groovy
+++
b/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderReturnServicesScript.groovy
@@ -605,7 +605,7 @@ Map cancelReturnItems() {
* Cancel the associated OrderItems of the replacement order, if any.
*/
Map cancelReplacementOrderItems() {
- GenericValue returnItem = from('ReturnItems').where(parameters).queryOne()
+ GenericValue returnItem = from('ReturnItem').where(parameters).queryOne()
if (returnItem.returnTypeId == 'RTN_REPLACE'
|| returnItem.returnTypeId == 'RTN_CSREPLACE'
|| returnItem.returnTypeId == 'RTN_REPAIR_REPLACE') {