Return-Path: Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: (qmail 18157 invoked from network); 1 Jul 2010 17:13:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jul 2010 17:13:29 -0000 Received: (qmail 91989 invoked by uid 500); 1 Jul 2010 17:13:29 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 91949 invoked by uid 500); 1 Jul 2010 17:13:28 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 91937 invoked by uid 99); 1 Jul 2010 17:13:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 17:13:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bjfree@free-man.net designates 69.94.133.32 as permitted sender) Received: from [69.94.133.32] (HELO main.free-man.net) (69.94.133.32) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 17:13:22 +0000 Received: from 174.sub-72-102-172.myvzw.com ([72.102.172.174]) by main.free-man.net (JAMES SMTP Server 2.3.2) with SMTP ID 44 for ; Thu, 1 Jul 2010 10:09:15 -0700 (PDT) Message-ID: <4C2CCC9F.7000209@free-man.net> Date: Thu, 01 Jul 2010 10:13:03 -0700 From: BJ Freeman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: user@ofbiz.apache.org Subject: Re: Multiple internal organizations on top References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org lets start with how these companies related tax wise. usually one is the corporation and one is the S corp. or One corporation is the Top and the other corporation is a profit center. if both companies are related tax wise then you would setup different facility and do stock transfers. If the companies are not related tax wise, then the company that supplies to company one is a supplier to Company 1. you can not run both companies in the same application due to financial reporting without heavy modification to the code. Company 2has the role of supplier and is selected for each product. this is done through the menus for a product at UI level. This creates a supplier Product link to the product. A ProductID that can be in many catalogs. As a note you could run both companies if not related using the multitenacy feature just introduced. then each company would share the code but have seperate databases. ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation Specialtymarket.com Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Linkedin Jonatan Soto sent the following on 7/1/2010 8:57 AM: > Hi all, > > I have a few doubts on how Ofbiz handles internal organizations. My business > logic needs to setup two internal organizations at the top level. One is the > responsible for B2C operations (company1) and the other for B2B operations > (company2). Company1 has to purchase products from Company2 and then > Company2 has to replicate and split the PO to different providers. So > Company2 acts as a supplier of Company1. I did the following steps: > > 1. Create catalog1 for company1 (B2C web sales purposes) > 2. Create catalog2 for company2 with exactly the same products (B2B) > 3. Create a party1 and set up a relationship as employee to company2. > 4. Create store1 for company1 with catalog1 > 5. Create store2 for company2 with catalog2 > > When I log in using party1 I'm able to see all catalogs and change the > default organization. So the question is, how can I restrict the access > and actions that belongs to a specific organization? > Note that I checked the code and I found some files (eg. > CatalogScreens.xml#FindProdCatalog) where I would be able to insert specific > business logic, but I don't know if it is possible to configure that without > touching the code. > > Any suggestions/ideas of how to do it are very welcome. > > Thanks in advance. > > ----- > > Jonatan Soto >