accounting: fix the way to get precision in Alarm_checkPayableAndReceivableAccountGrouped

(cherry picked from commit e8c3c849c63bb87d1c424012551bbe3446515ecd)