[ic] [interchange] "total weight" adder for weight.tag, by Greg Hanson. Documented in tag.

Peter peter at pajamian.dhs.org
Wed Aug 14 20:05:14 UTC 2013


On 08/15/2013 06:13 AM, Josh Lavin wrote:
> commit a3d0ed149ee03ce45e5f8766cb77f2495d187edd
> Author: Josh Lavin <josh at perusion.com>
> Date:   Wed Aug 14 11:09:36 2013 -0700
> 
>     "total weight" adder for weight.tag, by Greg Hanson. Documented in tag.
>     
>     Similar to 'adder' in shipping.asc, except that it allows you to add
>     lbs vs dollars to the total weight. There are 3 ways to add
>     
>     1. Simply add X lbs per cart
>     
>     2. Add X lbs depending on a range of weight
>     
>     Will add 2 lbs to total_weight if weight between 0 and including 25, after all other weight calcs.
>     (The 'k' is simply a separator.)
>     
>     3. Add X lbs depending on multiple ranges of weight
>     
>     Will add 1 lbs to total_weight if weight greater than 0 and including 3, after all other weight calcs.
>     Will add 2 lbs to total_weight if weight greater than 3 and including 6, after all other weight calcs.
>     Will add 3 lbs to total_weight if weight greater than 6 and including 10, after all other weight calcs.
>     Will add 4 lbs to total_weight if weight greater than 10 and including 16, after all other weight calcs.
>     Will add 5 lbs to total_weight if weight greater than 16 and including 25, after all other weight calcs.

Please remove the reference to "lbs" from this.  In Interchange weight
is unit agnostic, it could be lbs, kg, stones, etc.


Peter



More information about the interchange-users mailing list