[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Perl function for calculating pricing?
****** message to minivend-users from "Alan Sparks" <asparks@nss.harris.com> ******
I'm coming up fast on deadline, and still can't understand how to do this.
Would appreciate _any_ thoughts.
I have a pricing structure here that essentially requires me to calculate
pricing on items as follows:
price = ((int(quantity / unitspercarton)) * cartonunitprice) + ((quantity
mod unitspercarton) * unitprice)
This looks way outside of anything standard for MiniVend. It seems logical
to write the equation as a Perl function and have MiniVend call it. BUT
HOW?
I've been rereading the manuals but I can't find any mention how to do this.
The closest seems CommonAdjust, but it doesn't feel right. And I can't get
it to call a catalog sub (seems like I get a lot of Safe errors in the log
that I can't understand).
Has anyone any hints they can give? Lots of thanks in advance.
-Alan
=============
Alan Sparks, IS Engineering Support
<asparks@nss.harris.com>
Harris Communications, Camarillo CA (805) 389-2430
-
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