POS order status error ---------------------- Key: OFBIZ-1176 URL: https://issues.apache.org/jira/browse/OFBIZ-1176 Project: OFBiz Issue Type: Bug Components: pos Affects Versions: SVN trunk Reporter: Bilgin Ibryam Fix For: SVN trunk
Hi all, this is a bug discuss here http://www.nabble.com/POS-order-status-change-error-tf4192871.html#a11923722 I tracked it down and found the reason for it. When an sale is done on POS and paid with CASH, the created entity OrderPaymentPreference->manualRefNum field in null. Then in CheckOuthelper.java:873 our OrderPaymentPreference is filtered and the order is not approved in CheckOuthelper.java:896 .Later it cannot be completed and we get ERROR : > Could not change order status ; status is not a valid change. I changed in POS the CASH payment method, so now it does like CHECK payment method and puts a "N/A" in manualRefNum field and everything works fine. I am not sure that this the rightest way to fix it, because i am not sure whats the purpose of manualRefNum field in OrderPaymentPreference entity. May be someone can tell me ? There are some comments in the code but does it mean that if manualRefNum field is null we are not approving the order automatically ?Why ? In which case it should be not null ? CheckOuthelper.java:873 // check for online payment methods or in-hand payment types with verbal or external refs List exprs = UtilMisc.toList(new EntityExpr("manualRefNum", EntityOperator.NOT_EQUAL, null)); Regards, Bilgin Ibryam -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.