[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] FATAL Error ....
Instead of using [calc] try [perl interpolate=1] *guessing* it doesn't
like something about the '$\MySubTotal' part...
At 04:53 PM 12/16/1999 , you wrote:
>****** message to minivend-users from AGRE Enterprises Limited
><agree@godzone.net.nz> ******
>
>So much for my dissappearing prices - :-( At sometime over the last few
>days, I must have commented out the CommonAdjust line in catalog.cfg,
>so that one is fixed.
>
>I now have my discount total appearing in basket.html, checkout.html
>and receipt.html but when I add the same code to report, I get
>
>FATAL error
>glob trapped by operation mask at (eval 77) line 1.
>
>The code is
>[column width=59 align=right]NEW RELEASE DISCOUNT[/column]
>[column width=10 align=right gutter=0][currency][calc][subtotal
>noformat=1] - $\MySubTotal[/calc][/currency][/column]
>
>further up the file I have the following
>[calc]
> $MySubTotal = 0;
> [item-list]
> $NewReleaseCD += [item-quantity]
> if ( "[item-code]" =~
> /^VMD(9310|9282|9305|9316|9300|93019304|9728)$/ )\;
> $NewReleaseTape += [item-quantity]
> if ( "[item-code]" =~
> /^VMC(9310|9282|9305|9316|9300|93019304|9728)$/ \);
> $MySubTotal += [item-price noformat=1] * [item-quantity];
> [/item-list]
> return( '' );
>[/calc]
>[discount ENTIRE_ORDER]
> my( $d ) = 0;
> $d += 10.00 if ( $NewReleaseCD > 3 );
> $d += 5.00 if ( $NewReleaseTape > 3 );
> return( $s - $d );
>[/discount]
>
>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Glen Eustace, on behalf of
>GodZone Internet Services, a division of AGRE Enterprises Limited
>P.O. Box 8020, Palmerston North, New Zealand
>Ph: +64 6 356 2562, Fax: +64 6 357 0271
>http://www.godzone.net.nz, EMail: agree@godzone.net.nz, ICQ: 10397208
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>-
>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
Ryan Hertz tel 800-645-BAIT
Webmaster fax 520-645-2588
Advertising Director http://www.insideline.net
Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com