Revision 0c404f20
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
bin/mozilla/acctranscorrections.pl | ||
---|---|---|
14 | 14 |
my $form = $main::form; |
15 | 15 |
my $locale = $main::locale; |
16 | 16 |
|
17 |
$form->{jsscript} = 1; |
|
18 | 17 |
$form->{title} = $locale->text('General ledger corrections'); |
19 | 18 |
$form->header(); |
20 | 19 |
print $form->parse_html_template('acctranscorrections/analyze_filter'); |
bin/mozilla/ap.pl | ||
---|---|---|
296 | 296 |
$taxcharts{$item->{id}} = $item; |
297 | 297 |
} |
298 | 298 |
|
299 |
$form->{jsscript} = 1; |
|
300 |
|
|
301 | 299 |
my $follow_up_vc = $form->{vendor}; |
302 | 300 |
$follow_up_vc =~ s/--.*?//; |
303 | 301 |
my $follow_up_trans_info = "$form->{invnumber} ($follow_up_vc)"; |
... | ... | |
807 | 805 |
$form->all_vc(\%myconfig, "vendor", "AP"); |
808 | 806 |
|
809 | 807 |
$form->{title} = $locale->text('AP Transactions'); |
810 |
$form->{jsscript} = 1; |
|
811 | 808 |
|
812 | 809 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, |
813 | 810 |
"departments" => "ALL_DEPARTMENTS", |
814 | 811 |
"vendors" => "ALL_VC"); |
815 | 812 |
|
816 | 813 |
# constants and subs for template |
817 |
$form->{jsscript} = 1; |
|
818 | 814 |
$form->{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; |
819 | 815 |
|
820 | 816 |
$form->header; |
bin/mozilla/ar.pl | ||
---|---|---|
834 | 834 |
my $locale = $main::locale; |
835 | 835 |
my $cgi = $::request->{cgi}; |
836 | 836 |
|
837 |
my ($customer, $department); |
|
838 |
my ($jsscript, $button1, $button2); |
|
839 |
|
|
840 | 837 |
# setup customer selection |
841 | 838 |
$form->all_vc(\%myconfig, "customer", "AR"); |
842 | 839 |
|
843 | 840 |
$form->{title} = $locale->text('AR Transactions'); |
844 |
$form->{jsscript} = 1; |
|
845 | 841 |
|
846 | 842 |
# Auch in Rechnungsübersicht nach Kundentyp filtern - jan |
847 | 843 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, |
... | ... | |
852 | 848 |
$form->{SHOW_BUSINESS_TYPES} = scalar @{ $form->{ALL_BUSINESS_TYPES} } > 0; |
853 | 849 |
|
854 | 850 |
# constants and subs for template |
855 |
$form->{jsscript} = 1; |
|
856 | 851 |
$form->{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; |
857 | 852 |
|
858 | 853 |
$form->header; |
bin/mozilla/ct.pl | ||
---|---|---|
101 | 101 |
'include_prefix' => 'l_', |
102 | 102 |
'include_value' => 'Y'); |
103 | 103 |
|
104 |
$form->{jsscript} = 1; |
|
105 | 104 |
$form->{title} = $form->{IS_CUSTOMER} ? $locale->text('Customers') : $locale->text('Vendors'); |
106 | 105 |
|
107 | 106 |
$form->header(); |
... | ... | |
474 | 473 |
$form->{shipto_label} = \&_shipto_label; |
475 | 474 |
$form->{contacts_label} = \&_contacts_label; |
476 | 475 |
$form->{taxzone_id} = 0 if !$form->{id}; |
477 |
$form->{jsscript} = 1; |
|
478 | 476 |
$form->{SHIPTO_ALL} = [ +{ shipto_id => '0', shiptoname => $::locale->text('All') }, @{ $form->{SHIPTO} } ]; |
479 | 477 |
|
480 | 478 |
$form->{title} = $form->{title_save} |
bin/mozilla/dn.pl | ||
---|---|---|
105 | 105 |
$form->{SHOW_DEPARTMENT_SELECTION} = $form->{all_departments} && scalar @{ $form->{all_departments} || [] }; |
106 | 106 |
|
107 | 107 |
$form->{title} = $locale->text('Start Dunning Process'); |
108 |
$form->{jsscript} = 1; |
|
109 | 108 |
$form->header(); |
110 | 109 |
|
111 | 110 |
print $form->parse_html_template("dunning/add"); |
... | ... | |
143 | 142 |
|
144 | 143 |
$form->{type} = 'dunning'; |
145 | 144 |
$form->{rowcount} = scalar @{ $form->{DUNNINGS} }; |
146 |
$form->{jsscript} = 1; |
|
147 | 145 |
$form->{callback} ||= build_std_url("action=show_invoices", qw(customer invnumber ordnumber groupinvoices minamount dunning_level notes)); |
148 | 146 |
|
149 | 147 |
$form->{PRINT_OPTIONS} = print_options('inline' => 1, |
... | ... | |
307 | 305 |
$form->{SHOW_DEPARTMENT_DDBOX} = scalar @{ $form->{ALL_CUSTOMERS} }; |
308 | 306 |
$form->{SHOW_DUNNING_LEVELS} = scalar @{ $form->{DUNNING} }; |
309 | 307 |
|
310 |
$form->{jsscript} = 1; |
|
311 | 308 |
$form->{title} = $locale->text('Dunnings'); |
312 | 309 |
|
313 | 310 |
$form->header(); |
bin/mozilla/do.pl | ||
---|---|---|
166 | 166 |
|
167 | 167 |
# retrieve order/quotation |
168 | 168 |
$form->{webdav} = $::lx_office_conf{features}->{webdav}; |
169 |
$form->{jsscript} = 1; |
|
170 | 169 |
|
171 | 170 |
my $editing = $form->{id}; |
172 | 171 |
|
... | ... | |
255 | 254 |
$form->{employee_id} = $form->{old_employee_id} if $form->{old_employee_id}; |
256 | 255 |
$form->{salesman_id} = $form->{old_salesman_id} if $form->{old_salesman_id}; |
257 | 256 |
|
258 |
# use JavaScript Calendar or not |
|
259 |
$form->{jsscript} = 1; |
|
260 |
|
|
261 | 257 |
my @old_project_ids = ($form->{"globalproject_id"}); |
262 | 258 |
map({ push(@old_project_ids, $form->{"project_id_$_"}) |
263 | 259 |
if ($form->{"project_id_$_"}); } (1..$form->{"rowcount"})); |
... | ... | |
460 | 456 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); |
461 | 457 |
|
462 | 458 |
$form->{SHOW_VC_DROP_DOWN} = $myconfig{vclimit} > scalar @{ $form->{ALL_VC} }; |
463 |
$form->{jsscript} = 1; |
|
464 | 459 |
$form->{title} = $locale->text('Delivery Orders'); |
465 | 460 |
|
466 | 461 |
$form->header(); |
... | ... | |
1125 | 1120 |
my %myconfig = %main::myconfig; |
1126 | 1121 |
my $locale = $main::locale; |
1127 | 1122 |
|
1128 |
$form->{jsscript} = 1; |
|
1129 |
|
|
1130 | 1123 |
$form->{title} = $locale->text('Stock'); |
1131 | 1124 |
|
1132 | 1125 |
my $part_info = IC->get_basic_part_info('id' => $form->{parts_id}); |
bin/mozilla/fu.pl | ||
---|---|---|
99 | 99 |
$params{trans_id} = $form->{LINKS}->[0]->{trans_id} if (@{ $form->{LINKS} }); |
100 | 100 |
$form->{FOLLOW_UPS} = FU->follow_ups(%params); |
101 | 101 |
|
102 |
$form->{jsscript} = 1; |
|
103 |
|
|
104 | 102 |
$form->header(no_layout => $::form->{POPUP_MODE}); |
105 | 103 |
print $form->parse_html_template('fu/add_edit'); |
106 | 104 |
|
... | ... | |
232 | 230 |
|
233 | 231 |
$form->get_lists("employees" => "EMPLOYEES"); |
234 | 232 |
|
235 |
$form->{jsscript} = 1; |
|
236 | 233 |
$form->{title} = $locale->text('Follow-Ups'); |
237 | 234 |
|
238 | 235 |
$form->header(); |
bin/mozilla/ic.pl | ||
---|---|---|
106 | 106 |
$form->{title} = $locale->text($form->{title}); |
107 | 107 |
$form->{title} = $locale->text('Assemblies') if ($is_xyz{is_assembly}); |
108 | 108 |
|
109 |
$form->{jsscript} = 1; |
|
110 |
|
|
111 | 109 |
$form->{CUSTOM_VARIABLES} = CVar->get_configs('module' => 'IC'); |
112 | 110 |
($form->{CUSTOM_VARIABLES_FILTER_CODE}, |
113 | 111 |
$form->{CUSTOM_VARIABLES_INCLUSION_CODE}) = CVar->render_search_options('variables' => $form->{CUSTOM_VARIABLES}, |
... | ... | |
1610 | 1608 |
flash('info', $::locale->text('This partnumber is not unique. You should change it.')); |
1611 | 1609 |
} |
1612 | 1610 |
|
1613 |
# use JavaScript Calendar or not (yes!) |
|
1614 |
$form->{jsscript} = 1; |
|
1615 |
|
|
1616 | 1611 |
my $units = AM->retrieve_units(\%myconfig, $form); |
1617 | 1612 |
$form->{ALL_UNITS} = [ map +{ name => $_ }, sort { $units->{$a}{sortkey} <=> $units->{$b}{sortkey} } keys %$units ]; |
1618 | 1613 |
|
bin/mozilla/ir.pl | ||
---|---|---|
102 | 102 |
|
103 | 103 |
# create links |
104 | 104 |
$form->{webdav} = $::lx_office_conf{features}->{webdav}; |
105 |
$form->{jsscript} = 1; |
|
106 | 105 |
|
107 | 106 |
$form->create_links("AP", \%myconfig, "vendor"); |
108 | 107 |
|
... | ... | |
355 | 354 |
), @custom_hiddens, |
356 | 355 |
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}]; |
357 | 356 |
|
358 |
$form->{jsscript} = 1; |
|
359 | 357 |
$form->header(); |
360 | 358 |
|
361 | 359 |
print $form->parse_html_template("ir/form_header", \%TMPL_VAR); |
bin/mozilla/is.pl | ||
---|---|---|
76 | 76 |
|
77 | 77 |
$form->{callback} = "$form->{script}?action=add&type=$form->{type}" unless $form->{callback}; |
78 | 78 |
|
79 |
$form->{jsscript} = "date"; |
|
80 |
|
|
81 | 79 |
&invoice_links; |
82 | 80 |
&prepare_invoice; |
83 | 81 |
&display_form; |
... | ... | |
379 | 377 |
), @custom_hiddens, |
380 | 378 |
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}]; |
381 | 379 |
|
382 |
$form->{jsscript} = 1; |
|
383 | 380 |
$form->header(); |
384 | 381 |
|
385 | 382 |
print $form->parse_html_template("is/form_header", \%TMPL_VAR); |
bin/mozilla/oe.pl | ||
---|---|---|
230 | 230 |
|
231 | 231 |
# retrieve order/quotation |
232 | 232 |
$form->{webdav} = $::lx_office_conf{features}->{webdav}; |
233 |
$form->{jsscript} = 1; |
|
234 | 233 |
|
235 | 234 |
my $editing = $form->{id}; |
236 | 235 |
|
... | ... | |
318 | 317 |
$form->{employee_id} = $form->{old_employee_id} if $form->{old_employee_id}; |
319 | 318 |
$form->{salesman_id} = $form->{old_salesman_id} if $form->{old_salesman_id}; |
320 | 319 |
|
321 |
# use JavaScript Calendar or not |
|
322 |
$form->{jsscript} = 1; |
|
323 |
|
|
324 | 320 |
# openclosed checkboxes |
325 | 321 |
my @tmp; |
326 | 322 |
push @tmp, sprintf qq|<input name="delivered" id="delivered" type="checkbox" class="checkbox" value="1" %s><label for="delivered">%s</label>|, |
... | ... | |
725 | 721 |
$form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); |
726 | 722 |
|
727 | 723 |
# constants and subs for template |
728 |
$form->{jsscript} = 1; |
|
729 | 724 |
$form->{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; |
730 | 725 |
|
731 | 726 |
$form->header(); |
bin/mozilla/sepa.pl | ||
---|---|---|
127 | 127 |
|
128 | 128 |
my $bank_account_label_sub = sub { $locale->text('Account number #1, bank code #2, #3', $_[0]->{account_number}, $_[0]->{bank_code}, $_[0]->{bank}) }; |
129 | 129 |
|
130 |
$form->{jsscript} = 1; |
|
131 |
|
|
132 | 130 |
$form->header(); |
133 | 131 |
print $form->parse_html_template('sepa/bank_transfer_create', |
134 | 132 |
{ 'BANK_TRANSFERS' => \@bank_transfers, |
... | ... | |
169 | 167 |
my $vc = $form->{vc} eq 'customer' ? 'customer' : 'vendor'; |
170 | 168 |
|
171 | 169 |
$form->{title} = $vc eq 'customer' ? $::locale->text('List of bank collections') : $locale->text('List of bank transfers'); |
172 |
$form->{jsscript} = 1; |
|
173 | 170 |
|
174 | 171 |
$form->header(); |
175 | 172 |
print $form->parse_html_template('sepa/bank_transfer_search', { vc => $vc }); |
... | ... | |
330 | 327 |
$form->error($locale->text('That export does not exist.')); |
331 | 328 |
} |
332 | 329 |
|
333 |
$form->{jsscript} = 1; |
|
334 | 330 |
$form->{title} = $locale->text('View SEPA export'); |
335 | 331 |
$form->header(); |
336 | 332 |
print $form->parse_html_template('sepa/bank_transfer_edit', |
bin/mozilla/vk.pl | ||
---|---|---|
61 | 61 |
$form->all_vc(\%myconfig, "customer", "AR"); |
62 | 62 |
|
63 | 63 |
$form->{title} = $locale->text('Sales Report'); |
64 |
$form->{jsscript} = 1; |
|
65 | 64 |
|
66 | 65 |
$form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, |
67 | 66 |
"departments" => "ALL_DEPARTMENTS", |
... | ... | |
104 | 103 |
|
105 | 104 |
# can't currently be configured from report, empty line between main sortings |
106 | 105 |
my $addemptylines = 1; |
107 |
|
|
106 |
|
|
108 | 107 |
# don't add empty lines between mainsort subtotals when only subtotal_mainsort is selected |
109 | 108 |
if ($form->{l_subtotal_mainsort} eq "Y" and not defined $form->{l_headers_mainsort} and not defined $form->{l_headers_subsort} and not defined $form->{l_subtotal_subsort} ) { |
110 |
$addemptylines = 0
|
|
109 |
$addemptylines = 0 |
|
111 | 110 |
}; |
112 | 111 |
|
113 | 112 |
if ( $form->{customer} =~ /--/ ) { |
bin/mozilla/wh.pl | ||
---|---|---|
105 | 105 |
|
106 | 106 |
my $content; |
107 | 107 |
|
108 |
$form->{jsscript} = 1; |
|
109 |
|
|
110 | 108 |
if ($form->{trans_type} eq 'removal') { |
111 | 109 |
$form->{nextsub} = "removal_parts_selection"; |
112 | 110 |
$form->{title} = $locale->text('Removal from Warehouse'); |
... | ... | |
657 | 655 |
|
658 | 656 |
show_no_warehouses_error() if (!scalar @{ $form->{WAREHOUSES} }); |
659 | 657 |
|
660 |
$form->{jsscript} = 1; |
|
661 |
|
|
662 | 658 |
$form->header(); |
663 | 659 |
print $form->parse_html_template("wh/journal_filter", { "UNITS" => AM->unit_select_data(AM->retrieve_units(\%myconfig, $form)) }); |
664 | 660 |
|
... | ... | |
803 | 799 |
|
804 | 800 |
show_no_warehouses_error() if (!scalar @{ $form->{WAREHOUSES} }); |
805 | 801 |
|
806 |
$form->{jsscript} = 1; |
|
807 |
|
|
808 | 802 |
$form->{title} = $locale->text("Report about warehouse contents"); |
809 | 803 |
|
810 | 804 |
$form->header(); |
Auch abrufbar als: Unified diff
Nicht mehr verwendete Einstellung $::form->{jsscript} entfernt