F9:Creditor balances at date option SQL Error - Payments batches

http://sourceforge.net/p/turbocash/bugs/477/

violation of PRIMARY or UNIQUE KEY constraint "INTEG_249" on table "BAT0T3" 

Need to delete the line 2x before the batch can be closed.