[FIX] account_dashboard: ensure that journal sale and purchase have a refund_journal defined before performing sql query