[jira] Created: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

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

[jira] Created: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

Nicolas Malin (Jira)
ShoppingCartServices.loadCartFromOrder
--------------------------------------

                 Key: OFBIZ-2085
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2085
             Project: OFBiz
          Issue Type: Improvement
          Components: order
    Affects Versions: SVN trunk
         Environment: Windows XP
            Reporter: Stephen Rufle
             Fix For: SVN trunk


When loading a ShoppingCart  from a previously saved order it should also retrieve any  OrderAttribute's and OrderItemAttribute's

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

Nicolas Malin (Jira)

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

Stephen Rufle updated OFBIZ-2085:
---------------------------------

    Attachment: 003_ShoppingCartServices.patch

load order item attributes patch

> ShoppingCartServices.loadCartFromOrder
> --------------------------------------
>
>                 Key: OFBIZ-2085
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2085
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: Windows XP
>            Reporter: Stephen Rufle
>             Fix For: SVN trunk
>
>         Attachments: 002_ShoppingCartServices.patch, 003_ShoppingCartServices.patch
>
>
> When loading a ShoppingCart  from a previously saved order it should also retrieve any  OrderAttribute's and OrderItemAttribute's

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Stephen Rufle updated OFBIZ-2085:
---------------------------------

    Attachment: 002_ShoppingCartServices.patch

load order attributes patch

> ShoppingCartServices.loadCartFromOrder
> --------------------------------------
>
>                 Key: OFBIZ-2085
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2085
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: Windows XP
>            Reporter: Stephen Rufle
>             Fix For: SVN trunk
>
>         Attachments: 002_ShoppingCartServices.patch, 003_ShoppingCartServices.patch
>
>
> When loading a ShoppingCart  from a previously saved order it should also retrieve any  OrderAttribute's and OrderItemAttribute's

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Stephen Rufle updated OFBIZ-2085:
---------------------------------

    Attachment: 003_ShoppingCartServices.patch

Changed the list name to orderItemAttributesList, teh previous patch had orderAttributesList

> ShoppingCartServices.loadCartFromOrder
> --------------------------------------
>
>                 Key: OFBIZ-2085
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2085
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: Windows XP
>            Reporter: Stephen Rufle
>             Fix For: SVN trunk
>
>         Attachments: 002_ShoppingCartServices.patch, 003_ShoppingCartServices.patch, 003_ShoppingCartServices.patch
>
>
> When loading a ShoppingCart  from a previously saved order it should also retrieve any  OrderAttribute's and OrderItemAttribute's

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

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657086#action_12657086 ]

srufle edited comment on OFBIZ-2085 at 12/16/08 9:43 AM:
----------------------------------------------------------------

Changed the list name to orderItemAttributesList, the previous patch had orderAttributesList

      was (Author: srufle):
    Changed the list name to orderItemAttributesList, teh previous patch had orderAttributesList
 

> ShoppingCartServices.loadCartFromOrder
> --------------------------------------
>
>                 Key: OFBIZ-2085
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2085
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: Windows XP
>            Reporter: Stephen Rufle
>             Fix For: SVN trunk
>
>         Attachments: 002_ShoppingCartServices.patch, 003_ShoppingCartServices.patch, 003_ShoppingCartServices.patch
>
>
> When loading a ShoppingCart  from a previously saved order it should also retrieve any  OrderAttribute's and OrderItemAttribute's

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

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux closed OFBIZ-2085.
----------------------------------

    Resolution: Fixed
      Assignee: Jacques Le Roux

Stephen,

Your patches are in trunk revision: 727112  

But please use java 1.5 feature (new for loop style, genericization in general) and read OFBiz Contributors Best Practices...

> ShoppingCartServices.loadCartFromOrder
> --------------------------------------
>
>                 Key: OFBIZ-2085
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2085
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: Windows XP
>            Reporter: Stephen Rufle
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: 002_ShoppingCartServices.patch, 003_ShoppingCartServices.patch, 003_ShoppingCartServices.patch
>
>
> When loading a ShoppingCart  from a previously saved order it should also retrieve any  OrderAttribute's and OrderItemAttribute's

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

Reply | Threaded
Open this post in threaded view
|

Re: [jira] Closed: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

Stephen Rufle-2
I will do as requested next time.

I used the  "load the payment infos" that was below where my patch went
as my guide.

The preferred style would have been?

for (GenericValue orderAttr : orderAttributesList)
{
    String name = orderAttr.getString("attrName");
    String value = orderAttr.getString("attrValue");
    cart.setOrderAttribute(name, value);
}


Jacques Le Roux (JIRA) wrote:

>      [ https://issues.apache.org/jira/browse/OFBIZ-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Jacques Le Roux closed OFBIZ-2085.
> ----------------------------------
>
>     Resolution: Fixed
>       Assignee: Jacques Le Roux
>
> Stephen,
>
> Your patches are in trunk revision: 727112  
>
> But please use java 1.5 feature (new for loop style, genericization in general) and read OFBiz Contributors Best Practices...
>
>  
>> ShoppingCartServices.loadCartFromOrder
>> --------------------------------------
>>
>>                 Key: OFBIZ-2085
>>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2085
>>             Project: OFBiz
>>          Issue Type: Improvement
>>          Components: order
>>    Affects Versions: SVN trunk
>>         Environment: Windows XP
>>            Reporter: Stephen Rufle
>>            Assignee: Jacques Le Roux
>>             Fix For: SVN trunk
>>
>>         Attachments: 002_ShoppingCartServices.patch, 003_ShoppingCartServices.patch, 003_ShoppingCartServices.patch
>>
>>
>> When loading a ShoppingCart  from a previously saved order it should also retrieve any  OrderAttribute's and OrderItemAttribute's
>>    
>
>  

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

Reply | Threaded
Open this post in threaded view
|

Re: [jira] Closed: (OFBIZ-2085) ShoppingCartServices.loadCartFromOrder

Jacques Le Roux
Administrator
From: "Stephen Rufle" <[hidden email]>
>I will do as requested next time.
>
> I used the  "load the payment infos" that was below where my patch went
> as my guide.

Yes, there are still a lot of old style code in OFBiz.

> The preferred style would have been?
>
> for (GenericValue orderAttr : orderAttributesList)
> {
>    String name = orderAttr.getString("attrName");
>    String value = orderAttr.getString("attrValue");
>    cart.setOrderAttribute(name, value);
> }

Not exactly
for (GenericValue orderAttr : orderAttributesList) {
    String name = orderAttr.getString("attrName");
    String value = orderAttr.getString("attrValue");
    cart.setOrderAttribute(name, value);
}

Subtle difference, one line gain  ;o) In case of doubt, always refer to http://docs.ofbiz.org/display/OFBADMIN/Coding+Conventions Of
course, to have doubts, you should read it before ...

 Jacques
PS : Also remember to read http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices

>
> Jacques Le Roux (JIRA) wrote:
>>      [ https://issues.apache.org/jira/browse/OFBIZ-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>>
>> Jacques Le Roux closed OFBIZ-2085.
>> ----------------------------------
>>
>>     Resolution: Fixed
>>       Assignee: Jacques Le Roux
>>
>> Stephen,
>>
>> Your patches are in trunk revision: 727112
>>
>> But please use java 1.5 feature (new for loop style, genericization in general) and read OFBiz Contributors Best Practices...
>>
>>
>>> ShoppingCartServices.loadCartFromOrder
>>> --------------------------------------
>>>
>>>                 Key: OFBIZ-2085
>>>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2085
>>>             Project: OFBiz
>>>          Issue Type: Improvement
>>>          Components: order
>>>    Affects Versions: SVN trunk
>>>         Environment: Windows XP
>>>            Reporter: Stephen Rufle
>>>            Assignee: Jacques Le Roux
>>>             Fix For: SVN trunk
>>>
>>>         Attachments: 002_ShoppingCartServices.patch, 003_ShoppingCartServices.patch, 003_ShoppingCartServices.patch
>>>
>>>
>>> When loading a ShoppingCart  from a previously saved order it should also retrieve any  OrderAttribute's and
>>> OrderItemAttribute's
>>>
>>
>>
>
> --
> Stephen P Rufle
> [hidden email]
> H1:480-626-8022
> H2:480-802-7173
> Yahoo IM: stephen_rufle
> AOL IM: stephen1rufle
>
>