Remove $sth->finish() inside loop running over statement results.
Add 'id'-s to form elements for optimal Dojo interaction.
Fix posted amounts on tax accounts without AR_tax or AP_tax link
 (the new standard) not showing up on AR/AP transaction screen.