[ic] Admin Order Entry

Stefan Hornburg Racke interchange-users@interchange.redhat.com
Tue May 7 04:00:01 2002


Andrew Baerg <andrew@baerg.ca> writes:

> On Fri, 2002-05-03 at 12:52, Mike Heins wrote:
> > Quoting Andrew Baerg (andrew@baerg.ca):
> > > On Fri, 2002-05-03 at 11:47, Mike Heins wrote:
> > > > Quoting Andrew Baerg (andrew@baerg.ca):
> > > > > In case anyone cares about this issue, I have investigated it further
> > > > > and submitted the following to bug #361:
> > > > > 
> > > > > It seems to me that the problem lies in Routing. I have found that
> > > > > only the default route is ever performed so that if you remove it, as
> > > > > one of the suggestions states, the last route defined in catalog.cfg
> > > > > becomes the default and is the only one which is performed(whether
> > > > > through the admin UI or not).
> > > > 
> > > > No. All routes defined in mv_order_route or through the cascade
> > > > mechanism are performed.
> > > > 
> > > > > My temporary solution, which I realize
> > > > > is a horrible hack but which works without issues, is to define a log
> > > > > Route which includes both log_entry stuff and log_transaction stuff
> > > > > and decides which to do based on a variable I pass
> > > > > it. receipt.html also uses the variable to decide whether to diplay
> > > > > the admin UI or the customer UI. Anyways, that's my two cents for
> > > > > what it's worth.
> > > > > 
> > > > 
> > > > I think all you need to do is set in a page:
> > > > 
> > > > 	[value name=mv_order_route set="route1 route2 route3"]
> > > > 
> > > > You should find all routes executed just fine...
> > > 
> > > This is what is in the admin/entry.html page, although it is in the form
> > > <input type=hidden name=mv_order_route value="route1 route2 route3">,
> > 
> > Bingo.
> > 
> > Since the standard catalog.cfg has this:
> > 
> > 	FormIgnore  mv_order_route
> > 
> > that has zero effect.
> 
> OK, so using the [value] tag does in fact work, however, there are still
> some issues which I had to address which I will outline here for those
> who need to use the admin UI for order entry.

I made a patch to entry.html, which will enter CVS after the 4.8.5
releasing. This avoids the auto-logout. I investigate the other
issues you described then too. Thank you for examining the problem !

Index: dist/lib/UI/pages/admin/entry.html
===================================================================
RCS file: /anon_cvs/repository/interchange/dist/lib/UI/pages/admin/entry.html,v
retrieving revision 2.3.2.2
diff -u -r2.3.2.2 entry.html
--- dist/lib/UI/pages/admin/entry.html	6 Mar 2002 22:38:06 -0000	2.3.2.2
+++ dist/lib/UI/pages/admin/entry.html	7 May 2002 07:36:51 -0000
@@ -544,10 +544,6 @@
 
 </TABLE><br>
 
-[set Place Order!]
-mv_todo=submit
-[/set]
-
 <TABLE WIDTH=600><TR><TD BGCOLOR="__UI_C_TITLEBARBG__">
 <FONT COLOR="__UI_C_TITLEBARTXT__"><B>Email preferences</B></FONT>
 </TD></TR></TABLE>
@@ -576,6 +572,8 @@
 <CENTER>
 [set Place Order]
 mv_todo=submit
+mv_nextpage=admin/order
+[value name=mv_order_route set="log_entry main copy_user" hide=1]
 [/set]
 
 <INPUT name=mv_click TYPE=submit VALUE="Place Order">

Ciao
        Racke

-- 
Think of it !

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)