Re: Can't Approve Orders with service products

2008-03-23 Thread Mridul Pathak
 Enrique,
According to my understanding, Digital as well as Service products are
the non-shippable products.  Hence whenever you create an order for them
they are directly fulfilled (payment is captured as well) and the status is
set to COMPLETE by default.  You need not to first create an order, approve
it and then set it to complete status.  This type of flow is followed for
Physical Products where, first the order is created, then approved and
finally shipped (COMPLETED) based on the Inventory available.
Also a completed Order can never be set back to approved status.  This
is against business logic hence such functionality is restricted in OFBiz
using StatusValidChange entity.

On Mon, Mar 24, 2008 at 5:05 AM, Enrique Ruibal A. <[EMAIL PROTECTED]>
wrote:

> I placed the following order in Managment demo -trunk-, but when I tried
> to approve it, it sends the following error:
>
> The Following Errors Occurred:
>
> ERROR : Could not change order status ; status is not a valid change.:
> [ORDER_COMPLETED] -> [ORDER_APPROVED]
>
>
> I also tried with other digital goods and no success..
>
>
> Product Status  QuantityUnit / List Adjustments
> Sub Total
> GZ-NEWS-1MO - Gizmo Newsletter 1 Month
> Catalog
> <
> https://demo.hotwaxmedia.com/catalog/control/EditProduct?productId=GZ-NEWS-1MO
> >
> Ecommerce
> <
> https://demo.hotwaxmedia.com/ecommerce/control/product?product_id=GZ-NEWS-1MO
> >
>
> Inventory
> <
> https://demo.hotwaxmedia.com/catalog/control/EditProductInventoryItems?productId=GZ-NEWS-1MO&showAllFacilities=Y&externalLoginKey=EL91956417685
> >
>
> Required for SO 1
> In Inventory [Web Store Warehouse] QOH  0 (ATP: 0)
> In Inventory [All Facilities] QOH   0 (ATP: 0)
> On Order0
> In Production   0
> Unplanned   1
>
>
> Current Created
> 2008-03-23 18:24:00.126  Created
>
> *Ordered*   1   *Ship Request*  0
> *Cancelled* 0   *Qty Picked*0
> *Remaining* 1   *Qty Shipped*   0
> *Shortfalled*   0   *Outstanding*   1
> *Invoiced*  0   *Returned*  0
>
>$3.99 / $5.00   ($3.99) $0.00
>
>
>


-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: Catalog -- Stores -- Emails

2008-03-23 Thread Mridul Pathak
Heidi,
The screen you have specified here represents Email Settings for your
product store.  Here are the answers to your questions.

1)  *Body Screen Location:* Here you specify the Component Uri location for
the screen-widget which contains the template for your email body and will
be renered in your email.

2) *Attachment Screen Location (XSL-FO):*  Here you specify the Component
Uri location for the screen-widget which contains the template for your
email attachment (pdf) and will be sent as an attachment in your email.

3) If you want the system to send emails than you must need to change the
value of *mail.notifications.enabled* property to *Y* in *general.properties
* file.

On Mon, Mar 24, 2008 at 4:33 AM, Heidi Dehaes <[EMAIL PROTECTED]> wrote:

> Can someone explain me the fields in this screen:
> Catalog -- Stores -- Emails
>
> What is meant by:
> Body Screen Location: 
> &
> Attachment Screen Location (XSL-FO) : ???
>
> What do i have to fill in?
>
> Also if i select "registration" for the email, will the system send
> automatically an email after someone registrates???
>
> It seems this doesn't work by me!
>
> Regards,
> Heidi Dehaas
>



-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: How to use event to send session parameter

2008-03-23 Thread Mridul Pathak
There can be two cases:
1) In the request-map you are using Java Engine.  In this case of a Java
Event you can get the session object from a request object available to you
in the event by useing *getSession()* method on request object.  Now you can
get all your required session infromation from the session object.
There are lots of examples that you can find in OFBiz for this approach.

2) In the request-map you are using Service engine, and in the service
definition you are using engine type of Java.  In this case session object
is not available to you, but it can be made availabel by adding an IN
attribute to your service definition in the following way: .
Now you can get this session object in your Java Service from the
context map in the following way:
HttpSession session = (HttpSession)context.get("session");

I think this way you can access the session information.


On Sat, Mar 22, 2008 at 7:03 AM, Nattanicha Rittammanart <[EMAIL PROTECTED]>
wrote:

> Dear all,
>  I need to work with session information. I knew that we can send
> session information to Java engine by using event. Anyway, I don't know
> how to do this. Who used to do this please tell me or tell me where I
> can read this is also OK. Thanks in advance.
>
> Nattanicha
>



-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: Controller Entry related to include other application controller.

2008-03-23 Thread Mridul Pathak
That was a really awesome explaination from David.  I too agree with the
Rishi's point here.  I would like to add one more point in this discussion.
If we want to use a couple of request from other controller then instead of
including that controller we can make use of inter-application request call
functionality in OFBiz.  This exists in both, form-widgets and ftl's.  Like
for example, in ftl's I have seen and used call's to *
/content/control/ViewSimpleContent*, here we didn't included controller of *
Content* component and have reused the request from its controller as well.
I think this way we can call requests from other components as well.  This
can solve both the problems at times, i.e. you won't need to include another
controller, and also no need to define a duplicate request in your
controller.  And the concept of reusability is sustaines as well.


On Thu, Mar 20, 2008 at 9:09 PM, David E Jones <[EMAIL PROTECTED]>
wrote:

>
> This is something that could certainly swing both ways. In general
> though if you don't want all requests and views from another
> controller.xml file then including it is probably not the best idea.
>
> Controller request and view entries are so small that some redundancy
> there is not a big deal, and is a cost that could be outweighed by the
> benefit of being able to look at the controller.xml file, in this case
> for the Project Manager app, and see all of the requests and views
> involved in the app. If request and view definitions from a bunch of
> other controller.xml files are simply included then it is a LOT of
> work to figure out which ones are used and which ones aren't, making
> maintenance and future development significantly more difficult.
>
> In general Vikas is right that reusing as much as possible is the way
> to go and will result in less code and easier to maintain
> applications. However, if you are getting a lot more than your want in
> reusing something it may be worse (which isn't the case for most
> tools, but certainly applies here) then it may actually be a bad thing
> and not a good one.
>
> If there was a way to specify requests and views to leave out when
> including another controller.xml file then including them from 5 other
> apps for just a few here and there would be acceptable (there wouldn't
> be a bunch of bogus and unused requests and views), but it wouldn't be
> very efficient because you would have so many exclusions just to
> include a few things here and there.
>
> So yes, I'd say the approach Rishi is proposing is the better way:
> only include the controller.xml files if you want all of the requests
> and views, and don't worry about the minimal redundancy in redefining
> the requests and views for a derived application. In fact, this is
> usually a good thing as it allows for variations in screen flows and
> such.
>
> -David
>
>
> On Mar 20, 2008, at 5:58 AM, Rishi Solanki wrote:
> > Thanks for involvement in this discussion and reply.
> > But We are reusing the view,  Services and Screens as well.
> > only enter new uri for that. So the searching for the uri will be
> > among
> > less number of uri's by the ControlServlet.
> > Please Correct me, I may be wrong.
> >
> > Thanks and Regards :
> > [Rishi Solanki]
> >
> >
> > On Thu, Mar 20, 2008 at 3:44 PM, Vikas Mayur <[EMAIL PROTECTED]>
> > wrote:
> >
> >> On Thu, Mar 20, 2008 at 2:25 PM, Rishi Solanki <[EMAIL PROTECTED]
> >> >
> >> wrote:
> >>
> >>> Hi All,
> >>>
> >>> I have a question related to including other application
> >>> controller in
> >> to
> >>> new under development application.
> >>> For example : We have included five more controller in projectmgr
> >>> application as ; catalog, ordermgr, accounting, workeffort, and
> >> humanres.
> >>> Here I think that if we have to use 20 - 30 uri of other
> >>> controller, and
> >>> suppose all controllers have 100 uri.
> >>> So, Here is my question that,
> >>> Should we include these five controllers in projectmgr or we may
> >>> create
> >>> new
> >>> uri's for the same in the projectmgr component. Because
> >>> as per my understanding, every time the uri when not found in the
> >>> controller
> >>> of projectmgr it will search the same uri in other controller
> >>> as per sequence they included in the projectmgr controller.
> >>> Now which approach is better in such case if we consider the
> >>> performance
> >> :
> >>> " Either we should include the controller in the new application
> >>> controller
> >>> or we may write our own uri's in new application controller. "
> >>>
> >>> My vote is we should go for Write our own uri in the new application
> >>> controller.
> >>
> >>
> >>
> >> This is not a best practice, this totally does not favour code
> >> re-usability
> >> and maintenance.
> >>
> >> Vikas
> >>
> >>
> >>
> >>>
> >>> Suggestion's are most welcome.
> >>>
> >>>
> >>> Thanks and Regards :
> >>> [Rishi Solanki]
> >>>
> >>
>
>


-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PRO

Re: POS - Epson TM-T88III installation Where are the JARs?

2008-03-23 Thread Branden Strickland
Jacques,

That page was a huge amount of help.  Unfortunately I'm still stuck at one
particular par that I think you may at least (with your knowledge of how
JAVA works).

I'm still getting the "Service does not exist in loaded JCL registry" error.


Can you please shed some light on the following.

I think it may have to do with my jpos.xml config and / or my
epsonJposService18*.jar files.

1) In th example (I realize they'll be a bit different depending on the
version of ADK and your specific printer.) but in my jpos.xml entry I have



the class path is so much different than the example.  My question is
this.   How do I follow this path back to confirm?  I know in ofbiz (where I
actually learned how to follow these paths) that it's all in the "src" files
and you just follow the path org.ofbiz.pos etc. etc.  How do I follow the
JPOS entry?  I can't find anything to confirm if I need to change the
uposcommon to jpos180 (like in the instructions that you pointed me to).

2)  I still can't for the life of me find the 2 jars except where I found
them before.  I feel like I should be able to build them but I don't have a
build file ANYWHERE in my Epson ADK directory.   If there should be, than
that MAY be my problem!! ;)

as always,

Thanks guys!


On Sat, Mar 22, 2008 at 10:36 PM, Branden Strickland <
[EMAIL PROTECTED]> wrote:

> I'll read over that this weekend.
>
> Thanks Jacques.. .I was actually looking for this page earlier but
> couldn't find it by searching at ofbiz.apache.org.
>
> Appreciate it.. I'll be sure to post back if I don't get it.
> :P
>
> On Fri, Mar 21, 2008 at 8:46 AM, Jacques Le Roux <
> [EMAIL PROTECTED]> wrote:
>
> > Did you read this carefully :
> >
> > http://docs.ofbiz.org/display/OFBIZ/POS+System#POSSystem- HowsetuptheEpsonJavaPOSADK1.801.82forOFBiz?\! ;
> > Actually all the
> > page should interest you...
> >
> > Jacques
> >
> > From: "Branden Strickland" <[EMAIL PROTECTED]>
> > > Update: still not working:
> > > I stole the .jars from
> > >
> > https://svn.hotwaxmedia.com/crucible/browse/ofbiz/trunk/applications/pos/lib/epsonJposServiceCommon.jar
> > >
> > > put them in specialpurpose/pos/lib/
> > > I'm using JDK 1.6
> > > EPSON JavaPOS ADK Ver.1.11L
> > >
> > > I get this
> > > 2008-03-20 13:42:43,575 (main) [   DeviceLoader.java:62 :ERROR]
> > >  exception report
> > > --
> > > JPOS Exception
> > > Exception: jpos.JposException
> > > Message: Service does not exist in loaded JCL registry
> > >  stack trace
> > > ---
> > > jpos.JposException: Service does not exist in loaded JCL registry
> > > jpos.loader.simple.SimpleServiceManager.createConnection(Unknown
> > Source)
> > > jpos.loader.JposServiceLoader.findService(Unknown Source)
> > > jpos.BaseJposControl.open(Unknown Source)
> > > org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)
> > > org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:60)
> > > org.ofbiz.pos.container.JposDeviceContainer.start(
> > JposDeviceContainer.java
> > > :50)
> > > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java
> > :79)
> > > org.ofbiz.base.start.Start.startStartLoaders(Start.java:261)
> > > org.ofbiz.base.start.Start.startServer(Start.java:310)
> > > org.ofbiz.base.start.Start.start(Start.java:314)
> > > org.ofbiz.base.start.Start.main(Start.java:397)
> > >
> > >
> > > Thanks guys!
> > > On Thu, Mar 20, 2008 at 1:40 PM, Branden Strickland <
> > > [EMAIL PROTECTED]> wrote:
> > >
> > >> Ok, I think about set up with this thermal printer, but I have a very
> > >> important question.
> > >>
> > >> I've gone through and set up  Linux's  RXTX for the serial cable .
> > >> I've set up  EPSON JavaPOS ADK for TM series printers. (which
> > included
> > >> also setting up Java Communications API)
> > >>
> > >> I can't for the life of me figure out 2 things.
> > >> 1) I'm required to provide 2 jar files that I can't find anywhere,
> > and as
> > >> far as I can tell, I can't build the jar from anything either.
> > >> 2) My thermal printer is parallel right now, I probably have to get a
> > >> parallel to serial converter for this to work eh?  Or is parallel
> > considered
> > >> a 24 pin serial?
> > >>
> > >> Thanks!
> > >>
> > >
> >
> >
>


Clarify invoice status 'ready for posting'

2008-03-23 Thread Enrique Ruibal A.
I entered a 'manual' sales invoice, went directly to invoice menu in 
accounting module. I selected any product e.g. GZ-2644 and set status of 
invoice to 'ready'.


Then I go and check the accounting postings and they seem to have been 
correctly set:


Y 	ACTUAL 	SALES_INVOICE 	2008-03-23 19:18:12.596 	2008-03-23 
19:18:12.781 	  	  	Sales Invoice 	CI6 	  	  	  	  	  	10007 	1 
40 	GZ-2644 	C 	38.4 	USD 	Company 	  	40 	SALES 	REVENUE 	  
AES_NOT_RECONCILED 	_NA_
Y 	ACTUAL 	SALES_INVOICE 	2008-03-23 19:18:12.596 	2008-03-23 
19:18:12.781 	  	  	Sales Invoice 	CI6 	  	  	  	  	  	10007 	2 
12 	  	D 	38.4 	USD 	Company 	ACCOUNTS_RECEIVABLE 	12 	ACCOUNTS 
RECEIVABLE 	CURRENT_ASSET 	DemoCustomer 	AES_NOT_RECONCILED 	_NA_



My question is ¿Why does the status of this invoice appears as 'Ready 
for Posting' when the document has already been (successfuly) posted?









Re: 1200 variants with 6 feature types

2008-03-23 Thread Manuel Desdin

Hi Hans:
Try a different approach, AJAX maybe?
The html output is too big probably and in any case no browser will  
handle so big select field, at least not fast!

Hope this helps,
Manuel.

On 23/03/2008, at 11:20, Hans Bakker wrote:

I have a customer with a rather large number of selectable variants.
To show the product in ecommerce with the selectable options takes  
very

long.
My question is : is the system not designed for these large number of
variants or could it be something else is wrong?
I checked the cache and it seems to be working fine.

Regards,
Hans





Re: 1200 variants with 6 feature types

2008-03-23 Thread Scott Gray
You could consider breaking the virtual product up into multiple products.
In the demo data, you could in theory create a single widget virtual product
to encompass all the other widgets as variants but practically it's much
better to use categories for this and then present the user with only a few
options to get from the chosen virtual to the variant.

I haven't looked at the code for ages but there is a good chance every
single variant is looked up individually before the page is displayed.

Regards
Scott

On 23/03/2008, Hans Bakker <[EMAIL PROTECTED]> wrote:
>
> I have a customer with a rather large number of selectable variants.
> To show the product in ecommerce with the selectable options takes very
> long.
> My question is : is the system not designed for these large number of
> variants or could it be something else is wrong?
> I checked the cache and it seems to be working fine.
>
> Regards,
>
> Hans
>
>


Can't Approve Orders with service products

2008-03-23 Thread Enrique Ruibal A.
I placed the following order in Managment demo -trunk-, but when I tried 
to approve it, it sends the following error:


The Following Errors Occurred:

ERROR : Could not change order status ; status is not a valid change.: 
[ORDER_COMPLETED] -> [ORDER_APPROVED]



I also tried with other digital goods and no success..


Product 	Status 	Quantity 	Unit / List 	Adjustments 	Sub Total 	 
GZ-NEWS-1MO - Gizmo Newsletter 1 Month
Catalog 
 
Ecommerce 
 

Inventory 
 
	 
Required for SO 	1

In Inventory [Web Store Warehouse] QOH  0 (ATP: 0)
In Inventory [All Facilities] QOH   0 (ATP: 0)
On Order0
In Production   0
Unplanned   1


Current Created
2008-03-23 18:24:00.126  Created

*Ordered*   1   *Ship Request*  0
*Cancelled* 0   *Qty Picked*0
*Remaining* 1   *Qty Shipped*   0
*Shortfalled*   0   *Outstanding*   1
*Invoiced*  0   *Returned*  0

	$3.99 / $5.00 	($3.99) 	$0.00 	 





Catalog -- Stores -- Emails

2008-03-23 Thread Heidi Dehaes
Can someone explain me the fields in this screen:
Catalog -- Stores -- Emails

What is meant by:
Body Screen Location: 
&
Attachment Screen Location (XSL-FO) : ???

What do i have to fill in?

Also if i select "registration" for the email, will the system send
automatically an email after someone registrates???

It seems this doesn't work by me!

Regards,
Heidi Dehaas


Re: 1200 variants with 6 feature types

2008-03-23 Thread David E Jones


Usually when working with clients the distinction I prefer between  
virtual/variant and configurable products is that with virtual/variant  
products they exist in advance and need to be inventoried, and with  
configurable products they will be built-to-order from a common set of  
parts that are in inventory.


As for this scale, who knows... this sounds like a case where a  
profiling tool or some manual timing code here and there to determine  
the main performance problem is needed.


-David


On Mar 23, 2008, at 4:20 PM, Vince M. Clark wrote:
1200 variants of a single product? Are there dependencies within the  
variants that might suggest using a configurable product instead?


- Original Message -
From: "Hans Bakker" <[EMAIL PROTECTED]>
To: user@ofbiz.apache.org
Sent: Sunday, March 23, 2008 4:20:36 AM (GMT-0700) America/Denver
Subject: 1200 variants with 6 feature types

I have a customer with a rather large number of selectable variants.
To show the product in ecommerce with the selectable options takes  
very

long.
My question is : is the system not designed for these large number of
variants or could it be something else is wrong?
I checked the cache and it seems to be working fine.

Regards,
Hans





Re: 1200 variants with 6 feature types

2008-03-23 Thread Vince M. Clark
1200 variants of a single product? Are there dependencies within the variants 
that might suggest using a configurable product instead? 

- Original Message - 
From: "Hans Bakker" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Sunday, March 23, 2008 4:20:36 AM (GMT-0700) America/Denver 
Subject: 1200 variants with 6 feature types 

I have a customer with a rather large number of selectable variants. 
To show the product in ecommerce with the selectable options takes very 
long. 
My question is : is the system not designed for these large number of 
variants or could it be something else is wrong? 
I checked the cache and it seems to be working fine. 

Regards, 
Hans 



1200 variants with 6 feature types

2008-03-23 Thread Hans Bakker
I have a customer with a rather large number of selectable variants.
To show the product in ecommerce with the selectable options takes very
long. 
My question is : is the system not designed for these large number of
variants or could it be something else is wrong?
I checked the cache and it seems to be working fine.

Regards,
Hans