Re: Users - PO entry problem
Posted by
Mark-60 on
May 14, 2006; 11:18pm
URL: http://ofbiz.116.s1.nabble.com/Users-PO-entry-problem-tp139112p139118.html
Well, I kind of lost sight of the fact that PO entry does work using
the demo data setup - so rather than changing the code I am just trying
to create the proper entity relations for my data setup.
The setup I am using is running on a database that I initialized with
the "seed" reader data, but without the "demo" reader data.
I created some Products, Stores, Entities, Websites, Catalog etc, but
the system can still not get the ProductStoreId it needs for a new PO.
I don't know where that ID comes from, it must be some relation
somewhere, but I haven't figured it out yet...
Thanks,
MARK
Fred Forester wrote:
Mark,
have you looked in applications/ecommerce/data/DemoProduct.xml then look
for ProductStore. you'll see all the productstore entities there.
you can copy that file somewhere else and carve it up then import it with
java -jar ofbiz.jar -install -timeout=21600
-file=/full/path/to/new/DemoProduct.xml
Hope that helps.
Fred
Mark wrote:
I am playing around with this, tried to change the source, but I don't know all
the relations that ShoppingCart has to other objects.
I also tried to compare the various store/entity configurations of the demo
setup and my fresh install, but I can just not figure out where the system gets
the ProductStore from...
Can you give me a hint?
Thank you,
MARK
Si Chen wrote:
Mark,
Yes, it is a data issue. If you have only installed the seed data, then you
are looking at a fresh implementation from scratch. This is pretty
complicated. You might want to go through the undersun doc site. Also we'll
have some more documentation available soon.
Your specific problem is a legacy gremlin in the purchasing code. We wrote it
a long time ago by adopting the sales order code, so it still checks for a
productStoreId which is configured in
applications/order/webapp/ordermgr/WEB-INF/web.xml. If the productStoreId
does not reference a real product store set up in catalog manager, purchase
orders will not work, even though it doesn't do anything with the
productStoreId. Sorry for the inconvenience--we should probably re-factor
that in an idealized world.
Si
Mark wrote:
It works on your server. Maybe a data issue?
I tried it on my fresh install. I only loaded the seed data, not the demo
data. I am not exactly sure what kind of facilities/parties/stores to set up
and what settings they need, but I got enough entities, facilities and one
store to have all the dropdowns on that "Order Entry" page populated with at
least one entry.
And I picked one for each of them.
Interestingly, I am able to create "Sales Orders", just "Purchase Orders" do
not work. But the error messages seems to refer to a field of the Sales
Order, not the Purchase Order.
I have one party set up as "Internal Organization", a different one as
"Supplier" and one Store in the "Catalog" section. Do I need more? Is there
any documentation regarding the minimum required configuration of parties,
facilities, etc? Or something else on how all those entities are related?
Thanks,
MARK
Si Chen wrote:
Which supplier and internal organization?
I just created this order:
https://demo.opensourcestrategies.com:8445/ordermgr/control/orderview?orderId=WS10031
Can you try it on our server?
Si
Mark wrote:
I got opentaps 0.9.0 to work and have a problem entering a Purchase Order:
I pick an "Internal Organization" and a "Supplier", which should be
enough to get on to the next step.
However, I get an error "Error calling event:
org.ofbiz.webapp.event.EventHandlerException: Problems processing event:
java.lang.IllegalArgumentException: productStoreId cannot be null
(productStoreId cannot be null)"
There is a field "Product Store", but it is in the top section of the
screen, which is related to Sales Orders, not Purchase Orders. And it is
not NULL either...
MARK
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
--------------------------------------------------------------------------------
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
--------------------------------------------------------------------------------
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
------------------------------------------------------------------------
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users