fix bug of extra lined added on save when foreign currency

Caused by direction radio value out always checked.
Merge remote-tracking branch 'origin/master'