The deductions are being sorted on the Pay Stub in reverse order. Items that were listed first in the Pay Stub Account List were listed last in the Deductions section of the Pay Stub. Our company prefers to have them sorted in the order they are listed in the Account List.
To reverse the sort order, edit the file /classes/modules/pay_stub/PayStubFactory.class.php. The Deductions section is approximately line 2957. Scroll down to about line 2993 and you will see a comment stating "Start with the right side." Change the values for $tmp_adjust_x to the following.
Code: Select all
//Start with the right side. No, no - start with the LEFT.
if ( $x < floor($max_deductions / 2) ) {
$tmp_adjust_x = 0;
} else {
if ( $tmp_block_adjust_y != 0 ) {
$block_adjust_y = $tmp_block_adjust_y;
$tmp_block_adjust_y = 0;
}
$tmp_adjust_x = 90;
}