[ 
https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment: OrderReturnServices.xml.patch

Hi Daniel,

This last patch fix 4 issues
* Remove the old Double workaround I suggested in summer 2005 (BigD solves this 
issue :))
* Fix a bug (related to UEL change) in createReturnItem
* Fix bugs (related to UEL change) in updateReturnStatusFromReceipt
* Add import org.ofbiz.base.util.*; wich was missing in ReceiveReturn.groovy

Could you please check that it works also for you in all cases ?

Something keeps me worrying though. If you check all items when creating the 
return from the order, only one of the items (and its adjustements if any) 
is(are) taken into account into the return. So if you have 3 products you have 
to come back 2 times and to create 3 returns. Not sure if it a bug (I don't 
think it could be introduced by my changes), could you check that also ?

Thanks

> Error when receiving return from customer
> -----------------------------------------
>
>                 Key: OFBIZ-2207
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2207
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Demo Server
>            Reporter: Daniel Riquelme
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, 
> OrderReturnServices.xml.patch, 
> OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> When receiving a return from customer , the following error appears on screen:
> The Following Errors Occurred:
> Error:<br/> Error: Error trying to begin transaction, could not process 
> method: The current transaction is marked for rollback, not beginning a new 
> transaction and aborting current operation; the rollbackOnly was caused by: 
> Error in simple-method [Update Return Status From ShipmentReceipt 
> [file:/demo/deployments/demo.hotwaxmedia.com/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml#updateReturnStatusFromReceipt]]:
>  ; [Error with comparison in if-compare-field between fields 
> [.totalsMap.${receipt.returnItemSeqId}] with value [null] and 
> [.returnItem.returnQuantity] with value [1.000000] with operator 
> [greater-equals] and type [BigDecimal]: , Left value is null, cannot complete 
> compare for the operator greater-equals]   calling service 
> balanceInventoryItems in receiveInventoryProduct <br/> <br/>
> Steps to reproduce:
> 1. Create a sales order with default options and DemoCustomer as Customer.
> 2. Add GZ-2644 to the cart
> 3. Finalize Order
> 4. Quick Ship Entire Order
> 5. Create return
> 6. Check the product and click on Return Selected Item(s)
> 7. Accept the return
> 8. Click on Return Items -> Receive Return
> 9. Click on Receive Selected Product(s)
> The error occurs in the following simple method:
> order/script/org/ofbiz/order/order/OrderReturnServices.xml#updateReturnStatusFromReceipt
> In the console, the following error appears above the error shown on screen:
> 2009-02-24 15:45:55,438 (http-0.0.0.0-8443-2) 
> [FlexibleMapAccessor.java:164:INFO ] UEL exception while setting value: 
> javax.el.ELException: Error parsing '${}': syntax error at position 2, 
> encountered '}', expected 
> <IDENTIFIER>|<STRING>|<FLOAT>|<INTEGER>|'true'|'false'|'null'|'-'|'!'|'not'|'empty'|'(',
>  original = ${receipt.returnItemSeqId}
> One of the problematic lines relating to the last console message is:
> <if-empty field="totalsMap.${receipt.returnItemSeqId}">
> Regards,
> Daniel

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to