Fixed check box behaviour in pay slip doc.
Fixed calculation of incoming and outgoing buffers in pay slip.