MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: shipping (was Re: [mv] minivend and sql, it is not true)



Quoting Kyle Hayes (kyle540@quicknet.net):
> > upsg    UPS Ground  weight  150 999999  e @@TOTAL@@ lbs too heavy for UPS
> > 
> > is the same as:
> > 
> >     upsg: UPS Ground
> > 
> >         criteria    weight
> > 
> >         min         0
> >         max         0
> >         type        error
> >         message     Nothing to ship!
> >         
> >         min         0
> >         max         150
> >         type        ups
> >         table       2ndDayAir
> >         geo         zip
> >         default_geo 98366
> >         adder       3
>                  ^^^^^^
> 
> What is this?

  upsg    UPS Ground  weight  0   150 u Ground [default zip 98366] 3.00 min5.00
                                                                   ^^^^
> 
> This is nice!  Much cleaner than the ideas I was looking at a while ago. 
> Is this code compiled when the catalog is brought up, or when the shipping
> mode is called?  One thing I like about the old subroutine system is that
> the code is precompiled.  I have complex shipping calculations and the
> resultant routine is several pages of code.  If it is compiled each
> time a shipping calculation is needed, it will add to the overall latency
> significantly.
> 
> >     heavy: Surcharge for heavy items
> > 		perl       1

On the fly, because if it is the first Perl called we must reset the
object structure. But you can do:

	formula   my_precompiled_routine();
	next      mode_to_go_to_if_zero

MiniVend 4 allows you to define any number of named subroutines with the
same exact programming interface.

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
Be patient. God isn't               131 Willow Lane, Floor 2  | ||  _ \
finished with me yet.               Oxford, OH  45056         | || |_) |
 -- unknown                         <mikeh@minivend.com>     |___|  _ <
                                    513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: