[OFBiz] Users - POS: No productStoreId set on facility

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

[OFBiz] Users - POS: No productStoreId set on facility

Gordon B Lugauer
OFBiz Powers That Be,

A plea for help, guidance, or perhaps understanding.  My goal is
to learn how to begin to modify the example POS application to work
with a non-demo-data installation.  I am missing something.

Scenario:

- create virgin postgres db
- grab current ofbiz svn, install with -readers=seed
- create the following:
    - facility, ID:10000 is automatically assigned
    - store, ID:10000 is automatically assigned
    - catalog, ID:MainCatalog is assigned by me
    - category, ID:MainCatalogItem is assigned by me

- edit base/config/pos-containers.xml:
    - change facility-id to 10000 (line 60)

- edit applications/pos/data/DemoRetail.xml:
    - change all facilityId and productStoreId instances to 10000
      (since the automatically generated id's happened to match)

- java -jar ofbiz.jar -pos, starts to run, but dies with the following error:

    No productStoreId set on facility [10000]!

The error seems to come from line 109 of
applications/pos/src/org/ofbiz/pos/container/PosContainer.java,
but why?

Console log (trimmed edition) and DemoRetail.xml attached.

Thanks much,

--
-Gordon B Lugauer

BadgerClaw, llc
All things Unix         All things IP
[hidden email] e          414-273-6666 v          262-364-2929 f

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

console.log.abbreviated (3K) Download Attachment
DemoRetail.xml (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - POS: No productStoreId set on facility

David E. Jones

Part of the setup for the POS is to have a Facility that is used for  
inventory and represents the physical store as well (can have  
address, phone number, etc). That Facility needs to point to the  
ProductStore that has all of the settings necessary for the commerce  
part to run, like tax, inventory control settings, etc, etc.

-David


On Nov 7, 2005, at 9:31 AM, Gordon B Lugauer wrote:



> OFBiz Powers That Be,
>
> A plea for help, guidance, or perhaps understanding.  My goal is
> to learn how to begin to modify the example POS application to work
> with a non-demo-data installation.  I am missing something.
>
> Scenario:
>
> - create virgin postgres db
> - grab current ofbiz svn, install with -readers=seed
> - create the following:
>     - facility, ID:10000 is automatically assigned
>     - store, ID:10000 is automatically assigned
>     - catalog, ID:MainCatalog is assigned by me
>     - category, ID:MainCatalogItem is assigned by me
>
> - edit base/config/pos-containers.xml:
>     - change facility-id to 10000 (line 60)
>
> - edit applications/pos/data/DemoRetail.xml:
>     - change all facilityId and productStoreId instances to 10000
>       (since the automatically generated id's happened to match)
>
> - java -jar ofbiz.jar -pos, starts to run, but dies with the  
> following error:
>
>     No productStoreId set on facility [10000]!
>
> The error seems to come from line 109 of
> applications/pos/src/org/ofbiz/pos/container/PosContainer.java,
> but why?
>
> Console log (trimmed edition) and DemoRetail.xml attached.
>
> Thanks much,
>
> --
> -Gordon B Lugauer
>
> BadgerClaw, llc
> All things Unix         All things IP
> [hidden email] e          414-273-6666 v          262-364-2929 f
>
> <console.log.abbreviated>
> <DemoRetail.xml>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>
>



 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - POS: No productStoreId set on facility

Gordon B Lugauer
In reply to this post by Gordon B Lugauer
Once upon a time (Tue, Nov 08, 2005 at 11:10:05AM -0600 to be precise),
the illustrious David E. Jones said:

>
> Part of the setup for the POS is to have a Facility that is used for  
> inventory and represents the physical store as well (can have  
> address, phone number, etc). That Facility needs to point to the  
> ProductStore that has all of the settings necessary for the commerce  
> part to run, like tax, inventory control settings, etc, etc.

There is a field on the Create Product Store page,
https://localhost:8443/catalog/control/EditProductStore, where you
set the Facility Inventory Id.  This was to the already-created
Facility ID:10000.

Is there something additional that must be done on the facility
to point back to the Product Store?  Under which tab at
https://localhost:8443/facility/control/EditFacility is such a
setting hiding?

To re-iterate:

I have a facility, type Retail Store, ID:10000.  I have a Product
Store, ID:10000, with an Inventory Facility ID field set to 10000.

Running java -jar ofbiz.jar -pos dies with the  following error:

    No productStoreId set on facility [10000]!

Is this the facility-pointing-to-store configuration you are
referring to, or is there something else?

Thanks,

-G

>
> -David
>
>
> On Nov 7, 2005, at 9:31 AM, Gordon B Lugauer wrote:
>
>
>
> > OFBiz Powers That Be,
> >
> > A plea for help, guidance, or perhaps understanding.  My goal is
> > to learn how to begin to modify the example POS application to work
> > with a non-demo-data installation.  I am missing something.
> >
> > Scenario:
> >
> > - create virgin postgres db
> > - grab current ofbiz svn, install with -readers=seed
> > - create the following:
> >     - facility, ID:10000 is automatically assigned
> >     - store, ID:10000 is automatically assigned
> >     - catalog, ID:MainCatalog is assigned by me
> >     - category, ID:MainCatalogItem is assigned by me
> >
> > - edit base/config/pos-containers.xml:
> >     - change facility-id to 10000 (line 60)
> >
> > - edit applications/pos/data/DemoRetail.xml:
> >     - change all facilityId and productStoreId instances to 10000
> >       (since the automatically generated id's happened to match)
> >
> > - java -jar ofbiz.jar -pos, starts to run, but dies with the  
> > following error:
> >
> >     No productStoreId set on facility [10000]!
> >
> > The error seems to come from line 109 of
> > applications/pos/src/org/ofbiz/pos/container/PosContainer.java,
> > but why?
> >
> > Console log (trimmed edition) and DemoRetail.xml attached.
> >
> > Thanks much,
> >
> > --
> > -Gordon B Lugauer
> >
> > BadgerClaw, llc
> > All things Unix         All things IP
> > [hidden email] e          414-273-6666 v          262-364-2929 f
> >
> > <console.log.abbreviated>
> > <DemoRetail.xml>
> >
> > _______________________________________________
> > 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
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - POS: No productStoreId set on facility

Gordon B Lugauer
Once upon a time (Tue, Nov 08, 2005 at 09:48:43PM -0600 to be precise),
the illustrious Gordon B Lugauer said:

> Once upon a time (Tue, Nov 08, 2005 at 11:10:05AM -0600 to be precise),
> the illustrious David E. Jones said:
>
> >
> > Part of the setup for the POS is to have a Facility that is used for  
> > inventory and represents the physical store as well (can have  
> > address, phone number, etc). That Facility needs to point to the  
> > ProductStore that has all of the settings necessary for the commerce  
> > part to run, like tax, inventory control settings, etc, etc.
>
> There is a field on the Create Product Store page,
> https://localhost:8443/catalog/control/EditProductStore, where you
> set the Facility Inventory Id.  This was to the already-created
> Facility ID:10000.
>
> Is there something additional that must be done on the facility
> to point back to the Product Store?  Under which tab at
> https://localhost:8443/facility/control/EditFacility is such a
> setting hiding?

[snip]

Allow me to answer my own question.

Ok, yes, I have found where to add the productStoreId for a facility.
Poking around the webtools in the view/edit entity: facility,
one can manually add the productStoreId field.

Webtools->Entity Data Maintenance->Facility:All->View->Edit Facility

Then enter the productStoreId in the appropriate field, and update.

Seems a bit cumbersome, non-obvious, and less-than-intuitive.
Is this something that should be automatically set on the facility
when it is set on the store?  If not, then at least a more-forthright
placement to set productStoreId on one of the facility screens
would be preferred.

Being somewhat new to ofbiz, is this the sort of thing I should
report via Jira?

Thanks,

--
-Gordon B Lugauer

BadgerClaw, llc
All things Unix         All things IP
[hidden email] e          414-273-6666 v          262-364-2929 f
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - POS: No productStoreId set on facility

David E. Jones

Yes, looks like when that field was added to the entity out of some  
overly human attribute it was never added to the admin forms. I think  
probably because most of the stores were setup through XML seed data.  
As I understand it there are a lot of things like this in the POS  
system.

-David


On Nov 9, 2005, at 3:17 AM, Gordon B Lugauer wrote:

> Once upon a time (Tue, Nov 08, 2005 at 09:48:43PM -0600 to be  
> precise),
> the illustrious Gordon B Lugauer said:
>
>
>> Once upon a time (Tue, Nov 08, 2005 at 11:10:05AM -0600 to be  
>> precise),
>> the illustrious David E. Jones said:
>>
>>
>>>
>>> Part of the setup for the POS is to have a Facility that is used for
>>> inventory and represents the physical store as well (can have
>>> address, phone number, etc). That Facility needs to point to the
>>> ProductStore that has all of the settings necessary for the commerce
>>> part to run, like tax, inventory control settings, etc, etc.
>>>
>>
>> There is a field on the Create Product Store page,
>> https://localhost:8443/catalog/control/EditProductStore, where you
>> set the Facility Inventory Id.  This was to the already-created
>> Facility ID:10000.
>>
>> Is there something additional that must be done on the facility
>> to point back to the Product Store?  Under which tab at
>> https://localhost:8443/facility/control/EditFacility is such a
>> setting hiding?
>>
>
> [snip]
>
> Allow me to answer my own question.
>
> Ok, yes, I have found where to add the productStoreId for a facility.
> Poking around the webtools in the view/edit entity: facility,
> one can manually add the productStoreId field.
>
> Webtools->Entity Data Maintenance->Facility:All->View->Edit Facility
>
> Then enter the productStoreId in the appropriate field, and update.
>
> Seems a bit cumbersome, non-obvious, and less-than-intuitive.
> Is this something that should be automatically set on the facility
> when it is set on the store?  If not, then at least a more-forthright
> placement to set productStoreId on one of the facility screens
> would be preferred.
>
> Being somewhat new to ofbiz, is this the sort of thing I should
> report via Jira?
>
> Thanks,
>
> --
> -Gordon B Lugauer
>
> BadgerClaw, llc
> All things Unix         All things IP
> [hidden email] e          414-273-6666 v          262-364-2929 f
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - POS: No productStoreId set on facility

Si Chen-2
Hey there -

I'm just joining this for the first time and am not too familiar with
the POS app, so please pardon my ignorance, but why does it require a
productStoreId in Facility?  Is it not set up like an ecommerce store
where the POS points to a productStoreId?  In which case, then, why
don't we just go from product store to facility?

It just seemed a little odd that ProductStore has a facilityId and
Facility has a productStoreId...

Si


David E. Jones wrote:

>
> Yes, looks like when that field was added to the entity out of some  
> overly human attribute it was never added to the admin forms. I think  
> probably because most of the stores were setup through XML seed data.  
> As I understand it there are a lot of things like this in the POS  
> system.
>
> -David
>
>
> On Nov 9, 2005, at 3:17 AM, Gordon B Lugauer wrote:
>
>> Once upon a time (Tue, Nov 08, 2005 at 09:48:43PM -0600 to be  precise),
>> the illustrious Gordon B Lugauer said:
>>
>>
>>> Once upon a time (Tue, Nov 08, 2005 at 11:10:05AM -0600 to be  
>>> precise),
>>> the illustrious David E. Jones said:
>>>
>>>
>>>>
>>>> Part of the setup for the POS is to have a Facility that is used for
>>>> inventory and represents the physical store as well (can have
>>>> address, phone number, etc). That Facility needs to point to the
>>>> ProductStore that has all of the settings necessary for the commerce
>>>> part to run, like tax, inventory control settings, etc, etc.
>>>>
>>>
>>> There is a field on the Create Product Store page,
>>> https://localhost:8443/catalog/control/EditProductStore, where you
>>> set the Facility Inventory Id.  This was to the already-created
>>> Facility ID:10000.
>>>
>>> Is there something additional that must be done on the facility
>>> to point back to the Product Store?  Under which tab at
>>> https://localhost:8443/facility/control/EditFacility is such a
>>> setting hiding?
>>>
>>
>> [snip]
>>
>> Allow me to answer my own question.
>>
>> Ok, yes, I have found where to add the productStoreId for a facility.
>> Poking around the webtools in the view/edit entity: facility,
>> one can manually add the productStoreId field.
>>
>> Webtools->Entity Data Maintenance->Facility:All->View->Edit Facility
>>
>> Then enter the productStoreId in the appropriate field, and update.
>>
>> Seems a bit cumbersome, non-obvious, and less-than-intuitive.
>> Is this something that should be automatically set on the facility
>> when it is set on the store?  If not, then at least a more-forthright
>> placement to set productStoreId on one of the facility screens
>> would be preferred.
>>
>> Being somewhat new to ofbiz, is this the sort of thing I should
>> report via Jira?
>>
>> Thanks,
>>
>> --
>> -Gordon B Lugauer
>>
>> BadgerClaw, llc
>> All things Unix         All things IP
>> [hidden email] e          414-273-6666 v          262-364-2929 f
>>
>> _______________________________________________
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - POS: No productStoreId set on facility

Gordon B Lugauer
In reply to this post by Gordon B Lugauer
Once upon a time (Wed, Nov 09, 2005 at 04:25:41PM -0600 to be precise),
the illustrious David E. Jones said:

>
> Yes, looks like when that field was added to the entity out of some  
> overly human attribute it was never added to the admin forms. I think  
> probably because most of the stores were setup through XML seed data.  
> As I understand it there are a lot of things like this in the POS  
> system.

Are these things documented somewhere?  Is there some sort of crib
sheet to help a newbie get POS working with live, i.e. non-demo,
data?  Or, if most stores are setup through XML seed data, is there
someplace I can look for guidance on how to do it that way?

As an aside, I am now getting an error:
"Invalid Locale for POS!", also generated from
applications/pos/src/org/ofbiz/pos/container/PosContainer.java.
Haven't spent too much time trying to track this one down yet,
though.

Thanks,

--
-Gordon B Lugauer

BadgerClaw, llc
All things Unix         All things IP
[hidden email] e          414-273-6666 v          262-364-2929 f
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - POS: No productStoreId set on facility

David E. Jones
In reply to this post by Si Chen-2

There are 2 different types of facilities that come into play here.  
The first is the "store" or the building where stuff is sold. The  
second is the inventory facility, which can be the same and often is  
but it doesn't have to be. The code needs to know which is the  
"store" facility as there are certain settings there for the store  
facility and it gets that from the POS config. One of the things it  
needs to know from the store facility is the productStoreId. The  
other facility it needs to know about is the facility to use for the  
inventory operations, and it gets that from the ProductStore.

-David


On Nov 9, 2005, at 4:09 PM, Si Chen wrote:

> Hey there -
>
> I'm just joining this for the first time and am not too familiar  
> with the POS app, so please pardon my ignorance, but why does it  
> require a productStoreId in Facility?  Is it not set up like an  
> ecommerce store where the POS points to a productStoreId?  In which  
> case, then, why don't we just go from product store to facility?
>
> It just seemed a little odd that ProductStore has a facilityId and  
> Facility has a productStoreId...
>
> Si
>
>
> David E. Jones wrote:
>
>>
>> Yes, looks like when that field was added to the entity out of  
>> some  overly human attribute it was never added to the admin  
>> forms. I think  probably because most of the stores were setup  
>> through XML seed data.  As I understand it there are a lot of  
>> things like this in the POS  system.
>>
>> -David
>>
>>
>> On Nov 9, 2005, at 3:17 AM, Gordon B Lugauer wrote:
>>
>>> Once upon a time (Tue, Nov 08, 2005 at 09:48:43PM -0600 to be  
>>> precise),
>>> the illustrious Gordon B Lugauer said:
>>>
>>>
>>>> Once upon a time (Tue, Nov 08, 2005 at 11:10:05AM -0600 to be  
>>>> precise),
>>>> the illustrious David E. Jones said:
>>>>
>>>>
>>>>>
>>>>> Part of the setup for the POS is to have a Facility that is  
>>>>> used for
>>>>> inventory and represents the physical store as well (can have
>>>>> address, phone number, etc). That Facility needs to point to the
>>>>> ProductStore that has all of the settings necessary for the  
>>>>> commerce
>>>>> part to run, like tax, inventory control settings, etc, etc.
>>>>>
>>>>
>>>> There is a field on the Create Product Store page,
>>>> https://localhost:8443/catalog/control/EditProductStore, where you
>>>> set the Facility Inventory Id.  This was to the already-created
>>>> Facility ID:10000.
>>>>
>>>> Is there something additional that must be done on the facility
>>>> to point back to the Product Store?  Under which tab at
>>>> https://localhost:8443/facility/control/EditFacility is such a
>>>> setting hiding?
>>>>
>>>
>>> [snip]
>>>
>>> Allow me to answer my own question.
>>>
>>> Ok, yes, I have found where to add the productStoreId for a  
>>> facility.
>>> Poking around the webtools in the view/edit entity: facility,
>>> one can manually add the productStoreId field.
>>>
>>> Webtools->Entity Data Maintenance->Facility:All->View->Edit Facility
>>>
>>> Then enter the productStoreId in the appropriate field, and update.
>>>
>>> Seems a bit cumbersome, non-obvious, and less-than-intuitive.
>>> Is this something that should be automatically set on the facility
>>> when it is set on the store?  If not, then at least a more-
>>> forthright
>>> placement to set productStoreId on one of the facility screens
>>> would be preferred.
>>>
>>> Being somewhat new to ofbiz, is this the sort of thing I should
>>> report via Jira?
>>>
>>> Thanks,
>>>
>>> --
>>> -Gordon B Lugauer
>>>
>>> BadgerClaw, llc
>>> All things Unix         All things IP
>>> [hidden email] e          414-273-6666 v          262-364-2929 f
>>>
>>> _______________________________________________
>>> 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

smime.p7s (3K) Download Attachment