You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacopo Cappellato (JIRA)" <ji...@apache.org> on 2014/04/22 12:04:15 UTC
[jira] [Updated] (OFBIZ-4497) OrderChangeHelper.orderStatusChanges
and OrderServices.setOrderStatus has duplicate code
[ https://issues.apache.org/jira/browse/OFBIZ-4497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacopo Cappellato updated OFBIZ-4497:
-------------------------------------
Component/s: order
> OrderChangeHelper.orderStatusChanges and OrderServices.setOrderStatus has duplicate code
> ----------------------------------------------------------------------------------------
>
> Key: OFBIZ-4497
> URL: https://issues.apache.org/jira/browse/OFBIZ-4497
> Project: OFBiz
> Issue Type: Bug
> Components: order
> Reporter: Kiran Gawde
> Priority: Minor
>
> Both OrderChangeHelper.orderStatusChanges calls changeOrderStatus(OrderServices.setOrderStatus) and then calls the changeOrderItemStatus.
> OrderServices.setOrderStatus also calls the changeOrderItemStatus (which may call changeOrderStatus as well).
> I think, OrderChangeHelper.orderStatusChanges should be updated so that it doesn't call changeOrderItemStatus.
> Also, OrderServices.setOrderStatus uses hardcoded statuses. Where as OrderChangeHelper.approveOrder looks them up from store. Most places, it is hardcoded (e.g: secas.xml).
--
This message was sent by Atlassian JIRA
(v6.2#6252)