Fixes #1541 duplicate of #1261

Client Side Error when trying to click on Journal Voucher Menue Item
#1541
#1261