[% PROCESS elements.html %] [% INCLUDE OPEN_STATUS_DIV id=form.id approved = form.approved action=form.action %]
[% form.title %]
[% text('Reference') %] [% INCLUDE input element_data = { name = "reference", value = form.reference, type = "text", size = "20", class = 'reference' id = "ref_1" }; IF form.sequences; form.sequences.unshift({}); PROCESS select element_data = { name = 'setting_sequence' default_values = [form.setting_sequence] options = form.sequences text_attr = 'label' value_attr = 'label' }; END; %] [% text('Date') %] [% INCLUDE input element_data = { name = "transdate" id = "transdate" value = form.transdate size = "11" type = 'text' class = 'date' } %]
[% text('Description') %] [% IF form.colrowdesc ==1 %] [% INCLUDE textarea element_data={ name = "description" rows = form.rowsdesc cols = form.colsdesc text = form.description id = "des_1" } %] [% ELSE %] [% INCLUDE textarea element_data = { name = "description", text = form.description, type = "text", size = "50", class = 'description' id = "des_1" } %] [% END %]
[% text('Notes') %] [% IF form.colrownotes ==1 %] [% INCLUDE textarea element_data={ name = "notes" rows = form.rowsnotes cols = form.colsnotes text = form.notes id = "not_1" } %] [% ELSE %] [% INCLUDE textarea element_data = { name = "notes", value = form.notes, size = "50", class = 'notes' id = "not_1" } %] [% END %]
[% text('FX') %] [% PROCESS input element_data = { name="fx_transaction" type='checkbox' class='fx_checkbox' "data-dojo-type"="lsmb/journal/fx_checkbox" value=1 checked=form.fx_transaction } %]
[% IF form.projectset == 1 %] [% END %] [% FOREACH cls IN form.bu_class %] [% IF form.b_units.${cls.id} %] [% END %] [% END %] [% curr = []; FOREACH c IN form.currencies; curr.push({ text = c, value = c }); END; FOREACH displayrow IN displayrows %] [% INDEX=displayrow.index %] [% IF form.projectset == 1 %] [% END %] [% FOREACH cls IN form.bu_class %] [% IF form.b_units.${cls.id} %] [% END %] [% END %] [% END %] [% IF form.projectset == 1 %] [% END %] [% FOREACH cls IN form.bu_class %] [% IF form.b_units.${cls.id} %] [% END %] [% END %]
[% text('Account') %] [% text('FX') %] [% text('Debit') %] [% text('Credit') %] [% text('Source') %] [% text('Memo') %][% text('Project') %][% text(cls.label) %]
[% IF displayrow.accnoset == 0 %] [% PROCESS input element_data = { name = "accno_$INDEX" type = "text" initial_value = ${"accno_$INDEX"} value = ${"accno_$INDEX"} text_attr = 'accno' value_attr = 'id' class = 'AccountBox' 'data-dojo-type' = 'lsmb/accounts/AccountSelector' 'data-dojo-props' = 'required: false' } %] [% ELSE %] [% PROCESS label element_data = { text = displayrow.accno align = 'right' id = "acc_$INDEX" } %] [% END %] [% form.currencies.0 %] [% PROCESS input element_data = { value = displayrow.debit name = "debit_$INDEX" type = "currency" size = 12 accesskey = displayrow.index id = "deb_$INDEX" } %] [% PROCESS input element_data = { value = displayrow.credit name = "credit_$INDEX" type = "currency" size = 12 id = "cre_$INDEX" } %] [% PROCESS input element_data = { value = displayrow.source name = "source_$INDEX" type = "text" size = 10 id = "sou_$INDEX" } %] [% PROCESS textarea element_data = { value = displayrow.memo name = "memo_$INDEX" size = 30 id = "mem_$INDEX" } %] [% IF displayrow.projectset == 1 %] [% PROCESS label element_data = { text = displayrow.projectnumber align = 'right' id = "pro_$INDEX" } %] [% ELSE %] [% INCLUDE select element_data = { text_attr = "projectnumber" value_attr = "projectstyle" default_values = [] options = form.all_project name = "projectnumber_$INDEX" id = "pro_$INDEX" } %] [% END %] [% clsid = cls.id; bucid = "b_unit_$clsid"; burow = "${bucid}_$INDEX"; form.b_units.${clsid}.unshift({}); INCLUDE select element_data = { text_attr = "control_code" value_attr = "id" default_values = [displayrow.${bucid}] name = "$burow" options = form.b_units.${clsid} } %]
[% PROCESS select element_data = { options = curr name = "curr_$INDEX" default_values = [displayrow.curr] } %] [% PROCESS input element_data = { value = displayrow.debit_fx name = "debit_fx_$INDEX" type = "currency" size = 12 accesskey = displayrow.index id = "deb_fx_$INDEX" } %] [% PROCESS input element_data = { value = displayrow.credit_fx name = "credit_fx_$INDEX" type = "currency" size = 12 id = "cre_fx_$INDEX" } %]
    [% form.totaldebit %] [% form.totalcredit %]      

[% FOREACH hidden IN hiddens.keys; PROCESS input element_data={ type => 'hidden', name => hidden, value => hiddens.item(hidden) }; END %] [% FOREACH button IN buttons; PROCESS button element_data=button; END %] [% IF form.recurringset ==1 %] [% PROCESS label element_data = { text => text('Scheduled') align => 'right' } %] [% END %] [% IF form.id %] [% FOREACH file IN form.files %] [% END %]
[% text('Attached and Linked Files') %]
[% text('File name') %] [% text('File type') %] [% text('Attached at') %] [% text('Attached by') %]
[% file.file_name %] [% file.mime_type %] [% file.uploaded_at %] [% file.uploaded_by_name %]
[% FOREACH link IN form.file_links; aclass=" "; IF link.src_class() == 1; aclass="Transaction"; ELSIF link.src_class() == 2; aclass="Order"; END; %] [% END # FOREACH %]
[% text('File name') %] [% text('File type') %] [% text('Attached To Type') %] [% text('Attached To') %] [% text('Attached at') %] [% text('Attached by') %]
[% file.file_name %] [% file.mime_type %] [% aclass %] [% file.reference() %] [% file.attached_at() %] [% file.attached_by() %]
[% callback = "gl.pl?action=edit&id=" _ form.id -%] [[% text('Attach') %]] [% END # IF for[% INCLUDE CLOSE_STATUS_DIV id=form.id approved = form.approved %]
[% INCLUDE CLOSE_STATUS_DIV %]