[ic] Order routes, please help, i'm going crazy :(

Cameron interchange-users@icdevgroup.org
Fri Oct 25 08:58:00 2002


Ok, i've simplified my order routes right back to essentially exactly what's
shown in the docs
(http://www.icdevgroup.org/cgi-bin/ic/docfly.html?mv_arg=icdatabase10%2e03)
and well... it's working better, but there's some exceptionally weird
behaviour. Before i leap up and scream BUG IN INTERCHANGE!!! i'd like to see
if anyone knows if i'm doing the wrong thing

Basically what happens is that the only report that IC will read is the one
in the main Route - eg, "Route  mail      report           etc/report"
doesn't get placed into the apropriate variables within Order.pm - i've
stuck some dubug code in the module to check. It simply isn't in there -
UNLESS - i specify the report attribute in the main order route. This, of
course, means i can't log transactions (Route  log       report
etc/log_transaction), and things are breaking. On the bright side, PGP
encryption works :)

Anyone know where i'm going wrong? Note: the actual error is:
> Error during creation of order routing main:
> No order report  or  found. at /usr/lib/interchange/lib/Vend/Order.pm line
1491.

---------BEGIN CATALOG SNIPPING-----------

Route  mail      pgp_key          "__PGP_KEY__"
Route  mail      email            email@address
Route  mail      reply            testing@test.com
Route  mail      encrypt          1
Route  mail      report           etc/report

Route  log       empty            1
Route  log       report           etc/log_transaction
Route  log       transactions     "transactions orderline inventory"
Route  log       track            logs/log

Route  main      supplant         1
Route  main      receipt          etc/receipt.html
Route  main      master           log mail
Route  main      cascade          log mail

*fin*