MiniVend Akopia Services

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

Re: Pricing Routines to perform Unit Price conversions before used in sub/totaling



******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>     ******

At 03:06 PM 4/20/99 , Barry Treahy wrote:
>******    message to minivend-users from Barry Treahy <treahy@mmaz.com>
 ******
>
<--snip-->
>From the little that I have learned about Perl, this routine from
>Data.pm:
>
>sub item_price {
>        &{$Vend::Cfg->{ItemPriceRoutine}}(@_);
>}
>
>is being passed parameters, the item-code and the item-quantity as well
>as an optional pricing database.  I've also learned that the & in Perl
>is a reference pointer to a procedural routine entry point.  So it would
>seem that calls to item_price is just a generic dispatch to a
>configurable pricing routine.
>
>Great, but I have been unable to put together, based on looking at
>Config.pm, what the default pricing routine is, to use this as a
>template to construct a custom one nor do I know how to correctly
>reference it in the configuration file...
>

Barry,

	My word, you're way over my head!  I'm confused because lib/Vend/Config.pm
declares itself (package) as Vend::Config not Vend:Cfg.  Have you stumbled
onto something that is deprecated?  I can't even find ItemPriceRoutine in
Config.pm.



Ryan Hertz                                              tel  520-645-3812
Webmaster                                               tel  800-645-BAIT
Advertising Director                                    fax  520-645-2588
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: