added bankupdate trigger
added createpayment() function to create sales/purchase payments from bank entries
return id from createpayment()
ensure bank entry doesn't already exist in createpayment() target table