Thanks David for your comment on this. Please see my comments inline:
David E Jones wrote:
What are you proposing?
I only proposed to change the behavior of the list returned from the "Product Lookup" form on the third screen in Sales Order Creation process in back office application (i.e Ordermgr component). As that lookup searches all the Product using "Product" entity and return results using "performFind" service.
WDYT ?
Currently products are constrained by special categories associated with the catalog, through the ProdCatalogCategory entity. On that entity there is a prodCatalogCategoryTypeId field and there are various options for it. If you want to limit the products that can be viewed, then you must setup a "View Allow" category. If you want to restrict the products that can be added to the cart then you must setup a "Purchase Allow" category.
I agree with you on the Product association with category and category with the catalog through ProdCatalogCategory entity.
This is what I did.>> After this I added a new Product in the "TSTLTDADMIN" category that is associated with the catalog "Test Catalog".
The second point that you are referring for prodCatalogCategoryTypeId equals to "View Allow" & "Purchase Allow" are handled in Ecommerce component and I am fine with this behavior.
If you don't setup those types of categories, then the catalog can be used to view or purchase any product, and that is how it is designed to function.
Agree.
Are you (and everyone who commented in favour of this) saying that you want to change that behavior? I guess a more general question is what exactly (in terms of data model and default behavior for different data being present or missing) are you proposing to change?
No I don't want to change the behavior of existing functionality.
I apologize for the confrontative nature of this message, but it seems like it is all based on a misunderstanding of how the current model works (which can be seen be testing with the different catalogs in the current demo data, or looking at the code).
No apologies for this, I always take your comment positively & think that you are helping us to move in right direction (and this is what everybody want in their life :-) ).
Thanks once again for all your help, David. -- Ashish
-David On Apr 29, 2009, at 12:36 AM, Ashish Vijaywargiya wrote:Hello,Today I created a Sales Order in OFBiz. Then a question came in my mind. Sharing the same with you all.On the first screen I provided "DemoCustomer" in "Customer" field.On next screen we have option to select Order Name, PO Number, Currency & Choose Catalog (All are optional.)This is all good.Now suppose I selected "Demo Catalog" (remains selected as default option) then in next screen we have option to select "Product" and its quantity. I see the Product Lookup shows all the products either it is associated with "Demo Catalog" or "Test Catalog". After this I added a new Product in the "TSTLTDADMIN" category that is associated with the catalog "Test Catalog".The new product is also shown in the Product Lookup. Is it correct behavior ?In my opinion we should only show the products that are associated with the selected catalog (in my case I selected "Demo Catalog").Thoughts ? -- Ashish
smime.p7s
Description: S/MIME Cryptographic Signature
