$::form->header;
print $::form->parse_html_template('bp/list_spool', {
- spool => $::lx_office_conf{paths}->{spool},
href => build_std_url('bp.pl', @href_options),
is_invoice => scalar ($::form->{type} =~ /^invoice$/),
is_order => scalar ($::form->{type} =~ /_order$/),
$form->header;
$form->get_lists('partsgroup' => 'ALL_PARTSGROUPS');
- print $form->parse_html_template('ic/search', { %is_xyz,
- dateformat => $myconfig{dateformat},
- limit => $myconfig{vclimit}, });
+ print $form->parse_html_template('ic/search', { %is_xyz, });
$lxdebug->leave_sub();
} #end search()
ITEM_LIST => \@item_list,
IS_ASSEMBLY => $mode eq 'IC',
IS_PURCHASE => $mode eq 'IS',
- SHOW_NOTES => $::instance_conf->get_show_longdescription_select_item(),
PRE_ENTERED_QTY => $pre_entered_qty, });
$main::lxdebug->leave_sub();
$form->header();
print $form->parse_html_template('oe/search', {
- %myconfig,
is_order => scalar($form->{type} =~ /_order/),
});
year => DateTime->today->year,
today => DateTime->today,
nextsub => $nextsub,
- accrual => $::instance_conf->get_accounting_method ne 'cash',
- cash => $::instance_conf->get_accounting_method eq 'cash',
is_payments => $is_payments,
is_trial_balance => $is_trial_balance,
is_balance_sheet => $is_balance_sheet,
$::form->header;
print $::form->parse_html_template('rp/e_mail', {
- show_bcc => $::auth->assert('email_bcc', 'may fail'),
print_options => print_options(inline => 1),
hidden_values => \@hidden_values,
});
$::form->{SM}{ $::form->{sendmode} } = "selected";
my $output = $::form->parse_html_template('rp/print_options', {
- got_printer => $::myconfig{printer},
- show_latex => $::lx_office_conf{print_templates}->{latex},
is_email => $::form->{media} eq 'email',
});
</td>
</tr>
- [%- IF AUTH_RIGHTS_SALES_QUOTATION_EDIT %]
+ [%- IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
<tr>
<th align="right">[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
<td>
<td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.quonumber) %]</td>
[%- END %]
<td>[% row.name | html %]</td>
- <td>[% L.link(spool _ '/' _ row.spoolfile, row.spoolfile) %][% L.hidden_tag('spoolfile_' _ loop.count, row.spoolfile) %]</td>
+ <td>[% L.link(LXCONFIG.paths.spool _ '/' _ row.spoolfile, row.spoolfile) %][% L.hidden_tag('spoolfile_' _ loop.count, row.spoolfile) %]</td>
</tr>
[%- END %]
id_key = 'id',
label_key = 'partsgroup',
style = 'width:250px',
- limit = limit,
+ limit = MYCONFIG.vclimit,
allow_textbox = 1
-%]
</td>
[%- END %]
<th>[% LxERP.t8('Number') %]</th>
<th>[% LxERP.t8('Part Description') %]</th>
- [%- IF SHOW_NOTES %]
+ [%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
<th>[% LxERP.t8('Long Description') %]</th>
[%- END %]
<th>[% LxERP.t8('Other Matches') %]</th>
[%- END %]
<td>[% HTML.escape(item.partnumber) %]</td>
<td>[% HTML.escape(item.description) %]</td>
- [%- IF SHOW_NOTES %]
+ [%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
[% USE P %]
<td>[% P.restricted_html(item.notes) %]</td>
[%- END %]
<td>[% HTML.escape(MYCONFIG.name) %]</td>
</tr>
<tr>
- <th align="left">[% IF AUTH_RIGHTS_ADMIN %]<a href="controller.pl?action=ClientConfig/edit" title="[% 'Client Configuration' | $T8 %]">[% END %][% 'Client' | $T8 %][% IF AUTH_RIGHTS_ADMIN %]</a>[% END %]</th>
+ <th align="left">[% IF AUTH.assert('admin', 'may_fail') %]<a href="controller.pl?action=ClientConfig/edit" title="[% 'Client Configuration' | $T8 %]">[% END %][% 'Client' | $T8 %][% IF AUTH.assert('admin', 'may_fail') %]</a>[% END %]</th>
<td>[% HTML.escape(client.name) %]</td>
</tr>
<tr>
id_sub = 'vc_keys',
label_key = 'name',
select = vc_select,
- limit = vclimit,
+ limit = MYCONFIG.vclimit,
show_empty = 1,
allow_textbox = 1,
class = 'initial_focus',
DATA = ALL_DEPARTMENTS,
id_key = 'id',
label_key = 'description',
- limit = vclimit,
+ limit = MYCONFIG.vclimit,
show_empty = 1,
allow_textbox = 1,
-%]
<th align="right">[% 'Project Number' | $T8 %]</th>
<td colspan="3">
[%- INCLUDE 'generic/multibox.html'
- name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
+ name = MYCONFIG.vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
style = "width: 250px",
DATA = ALL_PROJECTS,
id_key = 'id',
label_key = 'projectnumber',
- limit = vclimit,
+ limit = MYCONFIG.vclimit,
show_empty = 1,
allow_textbox = 1,
-%]
<tr>
<th align=right nowrap>[% 'Subject' | $T8 %]</th>
<td><input name=subject size=30 value="[% subject %]"></td>
-[% IF show_bcc %]
+[% IF AUTH.assert('email_bcc', 'may_fail') %]
<th align=right nowrap=true>[% 'Bcc' | $T8 %]</th>
<td><input name=bcc size=30 value="[% bcc | $T8 %]"></td>
[%- END %]
<option value=inline [% SM.inline %]>[% 'In-line' | $T8 %]</option>
[%- ELSE %]
<option value=screen [% OP.screen %]>[% 'Screen' | $T8 %]</option>
- [%- IF got_printer && show_latex %]
+ [%- IF MYCONFIG.printer && LXCONFIG.primt_templates.latex %]
<option value=printer [% OP.printer %]>[% 'Printer' | $T8 %]</option>
[%- END %]
[%- END %]
</select>
</td>
-[%- IF got_printer && show_latex && !is_email %]
+[%- IF MYCONFIG.printer && LXCONFIG.primt_templates.latex && !is_email %]
<td>[% 'Copies' | $T8 %]<input name=copies size=2 value=[% copies %]></td>
[%- END %]
</tr>
<tr>
<th align=left>[% 'Method' | $T8 %]</th>
<td colspan=3>
- [% L.radio_button_tag('method', value='accrual', checked=accrual, label=LxERP.t8('Accrual')) %]
- [% L.radio_button_tag('method', value='cash', checked=cash, label=LxERP.t8('cash')) %]
+ [% L.radio_button_tag('method', value='accrual', checked=(INSTANCE_CONF.get_accounting_method=='accrual'), label=LxERP.t8('Accrual')) %]
+ [% L.radio_button_tag('method', value='cash', checked=(INSTANCE_CONF.get_accounting_method=='cash'), label=LxERP.t8('cash')) %]
</td>
</tr>
[%- END %]