Topic: disabling journal reference

I want to disable journal reference so that users can't change it and use the system generated sequence. What do I put in the script to do this?

Re: disabling journal reference

You can fix that in access setup, setup tab

Joe

Re: disabling journal reference

I mean the the general journal reference number and not the access to journal entries. I don't want the users to change the default number which I've set up in forms.

Re: disabling journal reference

You will have to change the php code in gl/includes/ui/gl_journal_ui about line 30 replacing ref_cells() call with respective label_cells() plus hidden() helper calls.

Janusz

Re: disabling journal reference

Sorry not familiar with PHP. This is the code. what code I need to put to disable it.

table_section(2, $qes ? "20%" : "50%");
    ref_cells(_("Reference:"), 'ref', '');
    hidden('ref_original');
    end_row();

Many thanks

Re: disabling journal reference

If this is important, can it be selected by a config variable?