case ST_JOURNAL : // it's a journal entry
if (!exists_gl_trans($type, $type_no))
return _('Selected transaction does not exists.');
+ if ($wo = check_wo_costing($type, $type_no))
+ return sprintf(_('This transaction cannot be voided because it is part of Work Order %s costs.'), $wo);
void_journal_trans($type, $type_no);
break;