[jira] Created: (OFBIZ-455) Selecting active organization party

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

[jira] Created: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
Selecting active organization party
-----------------------------------

                 Key: OFBIZ-455
                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
             Project: OFBiz (The Open for Business Project)
          Issue Type: New Feature
            Reporter: Eriks Dobelis


Idea is to provide possibility to select active organization party id, which then could be used:
1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-455?page=all ]

Eriks Dobelis updated OFBIZ-455:
--------------------------------

    Attachment: activeOrgParty.diff

This is a patch showing potential solution for the issue by showing select in Accounting header. It allows selecting one of existing organization party ids (which must be with role INTERNAL_ORGANIZATIO). It remembers selection during the session, but currently the value is not used.

Open question could be: where to put the select? Ideas could be 1) as is; 2) near language selection bar; 3) somewhere else.

Patch is not meant for committing to SVN yet, but rather for discussion.

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449514 ]
           
Adrian Crum commented on OFBIZ-455:
-----------------------------------

Eriks,

Thank you for your efforts to move this along. In our implementation here, the user logs into an organizational context at the login screen. I simply added a drop-down list of organization contexts to the standard OFBiz login screen. The selected context is then checked to see if the user has permission to log into that context. If yes, then the selected context is saved in the user settings entity (I believe it's called ViewSettings).

It would be helpful to put this back on the mailing lists so that we can discuss the implementation as a community. I believe a few generic services along these lines could be utilized by OFBiz implementers. If there is enough interest, I can submit the code we have running here for evaluation/modification.





> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449596 ]
           
Eriks Dobelis commented on OFBIZ-455:
-------------------------------------

More open questions for discussion:
1) should choosing organizational context be done only at login or should it be possible to do it later? should the user be able to log in without organizational context at all or there should be some default context?
2) should it be allowed for a user to change the context (all users or may be only admin users)?
3) exactly what kind of security checks should be performed before allowing user to log into organizational context?

Adrian, please, submit your code. We could surely use it for discussion.

More ideas for potential usage of organizational context welcome!

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-455?page=all ]

Eriks Dobelis updated OFBIZ-455:
--------------------------------

    Attachment: selectingOrganizationalContext.jpg

I attached JPG with screenshot showing how select box is looking in my patch.

JIRA's screenshot attachment is not working for me, so I had to attach as a file.

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449604 ]
           
Jacopo Cappellato commented on OFBIZ-455:
-----------------------------------------

The idea of adding a select box for selecting the organization used in the session is interesting, even if I've still not investigated all the pros and cons; it is indeed something very common in many commercial ERP packages (but this doesn't mean it is a good choice).

I'd prefer to keep the user login as is now, and add the organization select box near the language select box; the organization could then be stored in the session.


> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449619 ]
           
Jacques Le Roux commented on OFBIZ-455:
---------------------------------------

Yes I agree with Jacopo, putting the organization select box near the language select box keeps the UI consistent.

1) should choosing organizational context be done only at login or should it be possible to do it later? should the user be able to log in without organizational context at all or there should be some default context?
    For demo, Company comes to mind.
2) should it be allowed for a user to change the context (all users or may be only admin users)?
3) exactly what kind of security checks should be performed before allowing user to log into organizational context?
     In demo you can change it in Accounting/Companies/Admin as long as you are logged and have access at accounting component (rights and access are filtered in login). I think that the same filtering should be used to allow access at he organization select box


> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449622 ]
           
Jacques Le Roux commented on OFBIZ-455:
---------------------------------------

I just read Adrian Crum comment (http://issues.apache.org/jira/browse/OFBIZ-118#action_12449521) and I guess that Si, him and you are rather near a solution...

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449700 ]
           
Adrian Crum commented on OFBIZ-455:
-----------------------------------

To answer #1: I like the idea of having it under the language selection box. That is a much better implementation than what we have here. My implementation allows for a contextless login. Application code decides what to do if there is no context selected (usually it does nothing to filter results). The admin controls if a user is allowed contextless logins.

Jacopo,
Persisting the selected company in the session has one major drawback: if the user changes companies in another session, the remaining sessions don't know about the change. The end result is confusing for the user. We solved that problem here by keeping the company selections for all logged-in users in a static map. I don't like that solution however, because it takes up memory and may create problems in a multiple server environment. So, the bottom line is, the user's currently selected company must be kept in an entity and it must be looked up for each request. I'm thinking the ViewSettings entity would be best.

To answer #2: Of course the user should be allowed to change contexts. The admin controls which contexts a user can use.

To answer #3: I discussed this in OFBIZ-118.

Before I submit my code, we need to decide which Jira issue we want to continue this effort in - #455 (this one) or #118 (the original discussion).

I'll post my code with recommended changes. As I mentioned in OFBIZ-118, Si Chen and I have followed parallel paths on this concept. Since his work is already in the project, my code will have to be refactored to mesh with his.

A topic I would like to toss out there is what this feature should be called. The financials module refers to it as "Active Company." My implementation refers to is as an "Organization Context." I chose that term because I believe it eliminates confusing "Active Company" with another company - like a customer or supplier. I also liked that term because I believe a feature such as this could be used for much more than just selecting an active company. I'm not married to the term however. I'll go along with whatever the community decides.


> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449740 ]
           
Eriks Dobelis commented on OFBIZ-455:
-------------------------------------

I vote for Organization Context.

I would prefer storing organization context in the session. If the user can see organization context in select near language select, then he should not be too confused.

OFBIZ-118 initially was not talking about selecting of organization context, but about various ways to limit access to data. So for me sounds that your patch would more naturally fit in this issue.

I suggest we separate patch switching organization context from the patches limiting access to data in different components, providing defaults, etc., so that we would have smaller patches, which are more easily manageable (i.e. sooner tested and committed). Once we have organization context switching "infrastructure" we can gradually start using it in different places.

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449817 ]
           
Adrian Crum commented on OFBIZ-455:
-----------------------------------

Eriks,

I agree with continuing the discussion here. Just to be sure others who read this fully understand what is being proposed, let me recap:

We're trying to develop a simple set of services to tie a logged-in user to a subset of data - called an Organization Context. If you read this Wiki page:

http://ofbizwiki.go-integral.com/Wiki.jsp?page=SecurityAdministration

David Jones mentions Category #2 security. That is what we're trying to implement. Category #2 security has been partially implemented by Si Chen in the accounting apps. Whatever work is done here needs to "mesh" with Si's existing work.

FYI - User Security Overview
--------------------------------------
Use an application - controlled by existing security permissions
Create/Edit/Delete data on a page - controlled by existing security permissions
Access only subsets of data - implemented in some apps, not others
(Proposed) Access only subsets of data -  controlled by Organization Context

Here is an additional thought I have:

Organization Context should be invisible to OFBiz's existing apps. In other words, whatever is submitted here should not break any existing code and it shouldn't introduce anything new to the user unless an administrator switches the feature "on."

Regarding storing the current organization context in the session: I think you misunderstood what I was trying to say. I'll demonstrate the problem with an example:

An OFBiz user has permission to log into two Organization Contexts - ABC Company and XYZ Company. He starts a browser  and logs into ABC Company. The ABC Company context is stored in that browser's session. A little while later he starts up a second browser and it comes up as logged into ABC Company because his current selection is stored in the DB. Then in the second browser he switches over to XYZ company. The XYZ Company context is stored in that browser's session. When he returns to the first browser, it will still think he's logged into ABC Company because it has a separate session - and ABC Company is stored in that session. That will confuse the user.

Trust me - it's a problem we experienced here and I had to come up with a solution to it. We can put the currently selected context in the session, but the session will have to be updated with every page request.

As far as submitting patches that limit access to data -  I'm not sure that is needed in OFBiz out-of-the-box. I'm thinking it would be better suited as an unused feature that is available to people who customize OFBiz (a "tool"). Perhaps we could load the Party Manager with a little POC data to demonstrate how it is used.


> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-455?page=all ]

Eriks Dobelis updated OFBIZ-455:
--------------------------------

    Attachment: orgContext.diff

This is my variation of Organizational Context selection. It saves Organization Context in the session. This is a) much simpler; b) has its own drawbacks as Adrian pointed.

It is currently activated only when working in Accounting application, but easily could be activated in others (controller.xml and Decorator screens should be updated in those applications). Organizational Context can be selected in select box near language select. No security checks are currently performed.

Current Organization Context can be requested by calling org.ofbiz.base.util.UtilHttp.getOrgContext(HttpSession session), org.ofbiz.base.util.UtilHttp.getOrgContext(HttpServletRequest request),
org.ofbiz.base.util.UtilHttp.getOrgContext(HttpSession session, String defaultOrgContext);

Current Organization Context can be set by calling: org.ofbiz.base.util.UtilHttp.setOrgContext(HttpSession session, String orgContext)

This is implemented in a similar way to set/getCurrencyUOM and set/getLocale.


> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, orgContext.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12450311 ]
           
Eriks Dobelis commented on OFBIZ-455:
-------------------------------------

Somebody with permission, please, delete activeOrgParty.patch and the first screenshot.

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, orgContext.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-455?page=all ]

Eriks Dobelis updated OFBIZ-455:
--------------------------------

    Attachment: selectingOrganizationalContext.jpg

New screenshot with selecting organization context near Language bar.

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, orgContext.diff, selectingOrganizationalContext.jpg, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12450317 ]
           
Eriks Dobelis commented on OFBIZ-455:
-------------------------------------

By deleting the first screenshot I mean Screenshot #2 :)

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, orgContext.diff, selectingOrganizationalContext.jpg, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-455?page=all ]

Jacopo Cappellato updated OFBIZ-455:
------------------------------------

    Attachment:     (was: activeOrgParty.diff)

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: orgContext.diff, selectingOrganizationalContext.jpg, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-455?page=all ]

Jacopo Cappellato updated OFBIZ-455:
------------------------------------

    Attachment:     (was: selectingOrganizationalContext.jpg)

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: orgContext.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12450583 ]
           
Si Chen commented on OFBIZ-455:
-------------------------------

I don't like this select up in the right hand corner for the following reason.  

What the right "context" is depends on the application.  For accounting, it would be an internal organization.  For facility, it would be a warehouse.  For manufacturing, maybe a warehouse.  For catalog manager, probably a product store.  For order manager, also a product store for sales order entry  but an internal organization for reporting purposes and for purchasing.  For that reason, it really doesn't make sense to show the organization in the upper right hand corner for all applications or make it part of the base package API.

By the way, Hans has been doing exactly this in opentravelsystems for a very long time.  Why don't you take a look at how he does it, provided he doesn't mind sharing his great ideas?

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: orgContext.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12450584 ]
           
Adrian Crum commented on OFBIZ-455:
-----------------------------------

Si,

I don't think you're understanding the feature. If the user selects a context, then the context will define the internal organization for accounting AND the warehouse for facility AND a product store for catalog manager, etc, etc. The whole point is to have one setting that controls all of those things.

If an admin doesn't want to implement the feature, it can be turned off and the selection box won't appear.


> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: orgContext.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-455) Selecting active organization party

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12450585 ]
           
Si Chen commented on OFBIZ-455:
-------------------------------

what if you have multiple warehouses or facilities and stores per organization?

> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: orgContext.diff, selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which then could be used:
> 1) to provide default in different components (e.g. in creating invoices, payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId is remembered throughout the session (if not changed).

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

       
12