[ http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12450685 ] Eriks Dobelis commented on OFBIZ-455: -------------------------------------
My vision is certainly similar to what Jacopo describes, and I trully believe we have to get this at least as an option. As it really is a big task I suggest starting with something small and tangible before going to complex issues. If we think that this might be used primarily by larger companies, we can make a preference whether to show this select at all. On the other hand I see a benefit for even the smallest companies to automatically fill in Party from field for Sales Invoice, etc. So as the simple start I suggest: 1) agreeing where Organization Context select is located; 2) agreeing on interface for getting current Organization Context (which would return PartyId); 3) agreeing whether Organization Context should be stored in session, in table, or it should be selectable by some preferences; 4) implementing selection and storage of Organization Context; My current patch does this and nothing more by storing Organization Context in session. When we have this (at least the interface), then we can improve it further with things like: a) security checks for selecting Organization Context, security administration of these rights; b) using the Organization Context in each component where it makes sense (e.g. showing only specific facilities, accounts, etc.) If we will try implementing everything at once then the initial step will be too huge to take off in a reasonable time. If we try to start with something simple then I already see next practical improvements I could implement in reasonably short time. Adrian, please, post what you have so that we could discuss it. It shouldn't be something finished as we still should agree on basic things (location of select, storage, interface, etc.) > 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
