Added a lot of logic to the ItemTransactionTigger, also update the add_sale transaction as the trigger is now doing most of the work