[ic] How to round up the handling fee and sales tax
Xiaowen Wu
xiaowen@safetopia.com
Mon, 2 Apr 2001 19:03:43 -0700 (PDT)
Dan,
Thank you for your reply, but that "round off" function will round of the
value to the next integer, for example $5.32 => $6.00. I'm looking for
to round off at the the position of 2, for example $5.315 => $5.32. I
tried to change the {'round' => "0.1", }, but still not working.
any other way to do it ?
thanx
Wen
On Mon, 2 Apr 2001, Dan B wrote:
> At 06:04 PM 4/2/2001 -0700, you wrote:
> >We have setup the shiping and handing fee based on the sub-total of the
> >order, and the minivend calculate the handlnig fee correctly.
> >
> >zzz Handling [subtotal noformat=1] 0 0 e f
> >{'round' => "0.1",'ups' => "0",'ui_ship_type' => "_subtotal",}
> >zzz Handling [subtotal noformat=1] 0 999999 f
> >[subtotal noformat=1] * 35 / 1000 {} {}
> >
> >but we have a round of problem, such as:
> >
> > subtotal $250.00
> > sales tax $20.63
> > S&H $5.32
> > =======================
> > total $275.94 <==== (should be $275.95)
> >
> >I think the problem is because minivend didn't round off the S&H fee, and
> >the sales tax. So my quesiont is: are there any way to round of the
> >calculate in the shipping.asc to avoid this problem .
>
> Check out the Admin interface. You can specify Round? (YES) in the
> admin-shipping-edit method page, which this to your shipping method:
>
> {'round' => "1",}
>
> Which I believe is what you are looking for.
>
> Dan Browning, Cyclone Computer Systems, danb@cyclonecomputers.com
>
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
>