Revision cc63261c
Von Philip Reetz vor fast 19 Jahren hinzugefügt
bin/mozilla/is.pl | ||
---|---|---|
57 | 57 |
{ |
58 | 58 |
$form->error("Access Denied"); |
59 | 59 |
} |
60 |
|
|
61 | 60 |
&invoice_links; |
62 | 61 |
&prepare_invoice; |
62 |
$form->{format} ="pdf"; |
|
63 |
|
|
63 | 64 |
&display_form; |
64 | 65 |
|
65 | 66 |
$lxdebug->leave_sub(); |
... | ... | |
74 | 75 |
{ |
75 | 76 |
$form->error("Access Denied"); |
76 | 77 |
} |
77 |
|
|
78 |
if ($form->{print_and_post}) { |
|
79 |
$form->{action} = "print"; |
|
80 |
$form->{resubmit} = 1; |
|
81 |
} |
|
78 | 82 |
&invoice_links; |
79 | 83 |
&prepare_invoice; |
80 | 84 |
&display_form; |
... | ... | |
187 | 191 |
|
188 | 192 |
$form->{type} = "invoice"; |
189 | 193 |
$form->{formname} = "invoice"; |
190 |
$form->{format} = "html"; |
|
191 | 194 |
$form->{media} = "screen"; |
192 | 195 |
|
193 | 196 |
if ($form->{id}) { |
... | ... | |
344 | 347 |
$button2 = |
345 | 348 |
qq|<td width="13"><input name=duedate size=11 title="$myconfig{dateformat}" value=$form->{duedate}></td>|; |
346 | 349 |
} |
347 |
if ($form->{resubmit}) { |
|
348 |
$onload = "document.invoice.submit()"; |
|
350 |
if ($form->{resubmit} && ($form->{format} eq "html")) { |
|
351 |
$onload = qq|window.open('about:blank','Beleg'); document.invoice.target = 'Beleg';document.invoice.submit()|; |
|
352 |
} elsif($form->{resubmit}) { |
|
353 |
$onload = qq|document.invoice.submit()|; |
|
349 | 354 |
} else { |
350 | 355 |
$onload = "fokus()"; |
351 | 356 |
} |
... | ... | |
763 | 768 |
<input type=hidden name=selectAR_paid value="$form->{selectAR_paid}"> |
764 | 769 |
<input type=hidden name=oldinvtotal value=$form->{oldinvtotal}> |
765 | 770 |
<input type=hidden name=oldtotalpaid value=$totalpaid> |
766 |
<input type=hidden name=print_and_post value=$form->{print_and_post}> |
|
767 |
<input type=hidden name=second_run value=$form->{second_run}> |
|
768 | 771 |
</table> |
769 | 772 |
</td> |
770 | 773 |
</tr> |
... | ... | |
1092 | 1095 |
$form->{print_and_post} = 1; |
1093 | 1096 |
&post(); |
1094 | 1097 |
|
1095 |
&display_form();
|
|
1098 |
&edit();
|
|
1096 | 1099 |
$lxdebug->leave_sub(); |
1097 | 1100 |
|
1098 | 1101 |
} |
Auch abrufbar als: Unified diff
Druckvorschau, Drucken und Drucken+Buchen ueberarbeitet, Fehler bei der HTML-Vorschau beseitigt