Small fix on CashOut and CashIn editors

-Set sensitive to False on 'ok_button' if there is no reason.
-Refactoring the code to avoid duplicity.

Change-Id: Ie4368f5d195be6e06703c0e5dd199b8a5ec62153