Screen comes up with the unsatisfied orders all ticked, so far OK
Click on "Generate Purchase orders"
Error!
SELECT partnumber, description, lastcost
FROM parts
WHERE id = ?
ERROR: current transaction is aborted, commands ignored until
end of transaction block