- bugfix: check available cash in operation

- bugfix: type of operation
Merge branch 'master' of https://github.com/ShadowCZ/PIS