improved code for box in sale line