What is the status of OFBIZ-2115 could some one take a look at my
patches, to see if it passes approval.
https://issues.apache.org/jira/browse/OFBIZ-2115

Stephen Rufle (JIRA) wrote:
>      [ 
> https://issues.apache.org/jira/browse/OFBIZ-2115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>  ]
>
> Stephen Rufle updated OFBIZ-2115:
> ---------------------------------
>
>     Attachment: 2009-01-08_001_OrderItemAtrributes.patch
>
> Patches 
> applications/order/servicedef/services.xml
> applications/order/src/org/ofbiz/order/order/OrderServices.java
> applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
>
> with the modifications needed to update OrderItemAttributes
>
>   
>> OrderServices.updateApprovedOrderItems should update OrderItemAttributes
>> ------------------------------------------------------------------------
>>
>>                 Key: OFBIZ-2115
>>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2115
>>             Project: OFBiz
>>          Issue Type: Improvement
>>          Components: order
>>    Affects Versions: SVN trunk
>>         Environment: Windows XP
>>            Reporter: Stephen Rufle
>>             Fix For: SVN trunk
>>
>>         Attachments: 2009-01-08_001_OrderItemAtrributes.patch
>>
>>
>> I wanted updateApprovedOrderItems to be able to update any 
>> OrderItemAttributes there may be. added a new map (itemAttributesMap) to 
>> /applications/order/servicedef/services.xml#updateOrderItems the key value 
>> of the map should be in the form of
>> attibuteName+ ":" + orderItemSeqId
>> At the top of
>> OrderServices.updateApprovedOrderItems(DispatchContext, Map) I create a new 
>> map with only the attribute names, later in the same method we repopulate 
>> the cartItem's OrderItemAttributes with any non-empty values. In 
>> saveUpdatedCartToOrder we call my modified 
>> ShoppingCart.makeAllOrderItemAttributes(String, int) I added the ability to 
>> return just empty , just filled or both empty and filled. 
>> For previously filled attributes that are now empty I remove them from the 
>> database. for either new or chnaged ones they are just added to the toStore 
>> that already existed 
>>     
>
>   

-- 
Stephen P Rufle
[email protected]
H1:480-626-8022
H2:480-802-7173
Yahoo IM: stephen_rufle
AOL IM: stephen1rufle

Reply via email to