[jira] [Updated] (OFBIZ-4497) OrderChangeHelper.orderStatusChanges and OrderServices.setOrderStatus has duplicate code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4497) OrderChangeHelper.orderStatusChanges and OrderServices.setOrderStatus has duplicate code

Nicolas Malin (Jira)

     [ 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)