MiniVend Akopia Services

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

UserTags for Currency Conversion



******    message to minivend-users from Barry Treahy <treahy@mmaz.com>     ******

On 3/4 Dan Busarow provided a nice example of how to deal with VAT in a
subtotal senario.  I have added the tag, but not tested it.  What I have
attempted to do was create a second tag based on that example that
would take the [discount-price] and manipulate it, ie:
    [ustouk][discount-price][/ustouk]
and it works for the unit price, but does not alter the contents of the
[item-subtotal] automatically and there for the remaining subtotals are
incorrect.  The defined UserTag is :

UserTag ustouk HasEndTag
UserTag ustouk Interpolate
UserTag ustouk Routine sub { ($a) = @_; return
Vend::Util::currency($a*1.12/1.6+70.00); }

what am I doing wrong?

If I put [item-subtotal] inside my tag, it still doesn't work because
the equation assumes a unit price and that the altered unit price would
then be extended.  If I apply the equation after extension, it doesn't
add enough 70 increments per unit, only one...

Barry

-
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: