Added modal and updating inventory while adding transaction.