Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def outboundweight
- result = weight
- return (0.25 + weight).ceil if size == :smallstandard && weight <= 1
- dimweight = width * height * length / 166
- result = dimweight if dimweight > result
- return (0.25 + result).ceil if size == :smallstandard && weight > 1
- (1 + result).ceil
- end
- def realweight
- result = weight
- return result if size == :smallstandard
- return 1 if size == :largestandard && result <= 1
- dimweight = width * height * length / 166
- result = dimweight if dimweight > result
- result.ceil
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement