Fixed bugs in itemtransactiontrig.sql