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 2006/11/28 10:22:22 UTC

[jira] Commented: (OFBIZ-497) Can't validate an order from the backEnd

    [ http://issues.apache.org/jira/browse/OFBIZ-497?page=comments#action_12453836 ] 
            
Jacopo Cappellato commented on OFBIZ-497:
-----------------------------------------

Scott,

your patch is good.
Just to points that could be improved are:

1) shoppingList.getRelatedOne("ProductStore") could be null, causing a NPE; we should check for this
2) if no currency is found in the product store, as a last resort we could use the one set in the framework/common/config/general.properties (the property name is "currency.uom.id.default"); there are many examples on how to retrieve it in the classes of the order component (if I'm not wrong, just do a search for the string "currency.uom.id.default")

Jacopo

> Can't validate an order from the backEnd
> ----------------------------------------
>
>                 Key: OFBIZ-497
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-497
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: ecommerce
>    Affects Versions: SVN trunk
>         Environment:  0.9.2 version of Opentaps on windows
> Apache trunk as well
>            Reporter: Nicolas Passalacqua
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: autosave.patch
>
>
> I switch the "Auto Save Cart" fields to Yes in the store "OFBiz
> E-Commerce store".
> I add a product in the cart (FrontEnd) under a user.
> I go to the backend look at this user profil.
> I see the product I just add in the shopping list and click on "edit".
> From there (backend) I want to purchase this order.
> So I click in the "Shopping List Detail - autoSave" tab on "New Order".
> And there I've got this error:
> at Line: 50 : in file:
> component://order/webapp/ordermgr/WEB-INF/actions/entry/showcart.bsh :
> shoppingCart .getCurrency ( ) 
> The Currency UOM is not set in the shopping cart, this is not a valid
> state, it should always be passed in when the cart is created.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira