| 2 |
lars |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
|
|
|
3 |
|
|
|
4 |
<head>
|
|
|
5 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
|
6 |
<meta name="author" content="Webagentur Niewerth" />
|
|
|
7 |
|
|
|
8 |
<title>Mahnwesen: Mahnung erstellen</title>
|
|
|
9 |
|
|
|
10 |
<link rel="stylesheet" type="text/css" href="../styles/styles.php" />
|
|
|
11 |
<script type="text/javascript" src="../js/overlib.js"></script>
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
{if file_exists("../css/$site/jquery-ui.custom.css")}
|
|
|
15 |
<link rel="stylesheet" type="text/css" href="../css/{$site}/jquery-ui.custom.css">
|
|
|
16 |
{else}
|
|
|
17 |
<link rel="stylesheet" type="text/css" href="../css/ui-darkness/jquery-ui.custom.css">
|
|
|
18 |
{/if}
|
|
|
19 |
<link rel="stylesheet" type="text/css" href="../styles/bestellung.css" />
|
|
|
20 |
<script type="text/JavaScript" src="../systemtermine/systemtermine.js.php"></script>
|
|
|
21 |
<script type="text/javascript" src="../Online-Shop/ajax.js"></script>
|
|
|
22 |
<script type="text/JavaScript" src="../checkDate.js"></script>
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
<script src="/js/jquery-1.4.4.min.js"></script>
|
|
|
26 |
<script src="/js/jquery-ui-1.8.9.custom.min.js"></script>
|
|
|
27 |
<script src="/js/i18n/jquery.ui.datepicker-de.js"></script>
|
|
|
28 |
|
|
|
29 |
<script>
|
|
|
30 |
$(function() {
|
|
|
31 |
$('#neues_zahlungsziel').datepicker();
|
|
|
32 |
});
|
|
|
33 |
</script>
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
<style>
|
|
|
37 |
|
|
|
38 |
th {
|
|
|
39 |
background-color:#ccc;
|
|
|
40 |
border-right:1px solid #666;
|
|
|
41 |
}
|
|
|
42 |
td {
|
|
|
43 |
border-right:1px solid #666;
|
|
|
44 |
border-top:1px solid #666;
|
|
|
45 |
}
|
|
|
46 |
.tablerow:hover td {
|
|
|
47 |
background-color:#ccc;
|
|
|
48 |
}
|
|
|
49 |
</style>
|
|
|
50 |
</head>
|
|
|
51 |
|
|
|
52 |
<body>
|
|
|
53 |
<h1>Mahnung erstellen für KundenNr: {$kundennr}</h1>
|
|
|
54 |
<form action="{$SCRIPT_NAME}" method="post" name="" target="_blank">
|
|
|
55 |
|
|
|
56 |
<!-- START Welche Art Mahnung soll erstellt werden? -->
|
|
|
57 |
|
|
|
58 |
Bitte wählen Sie die Art der Mahnung: <select name="mType">
|
|
|
59 |
{section loop=$mTypes name=m}
|
|
|
60 |
{if $mTypes[m].ID == 291}
|
|
|
61 |
<option value="{$mTypes[m].ID}"
|
|
|
62 |
{section loop=$offRech name=r}
|
|
|
63 |
{if $rechnungsnr==$offRech[r]['rechnungsnummer']}
|
|
|
64 |
{if $offRech[r]['1_mahnung_datum']=='0000-00-00 00:00:00'}
|
|
|
65 |
selected="selected"
|
|
|
66 |
{/if}
|
|
|
67 |
{/if}
|
|
|
68 |
{/section}
|
|
|
69 |
>{$mTypes[m].Inhalt}</option>
|
|
|
70 |
{/if}
|
|
|
71 |
{if $mTypes[m].ID == 295}
|
|
|
72 |
<option value="{$mTypes[m].ID}"
|
|
|
73 |
{section loop=$offRech name=r}
|
|
|
74 |
{if $rechnungsnr==$offRech[r]['rechnungsnummer']}
|
|
|
75 |
{if $offRech[r]['1_mahnung_datum']!='0000-00-00 00:00:00' &&
|
|
|
76 |
$offRech[r]['2_mahnung_datum']=='0000-00-00 00:00:00'}
|
|
|
77 |
selected="selected"
|
|
|
78 |
{/if}
|
|
|
79 |
{/if}
|
|
|
80 |
{/section}
|
|
|
81 |
>{$mTypes[m].Inhalt}</option>
|
|
|
82 |
{/if}
|
|
|
83 |
{if $mTypes[m].ID == 299}
|
|
|
84 |
<option value="{$mTypes[m].ID}"
|
|
|
85 |
{section loop=$offRech name=r}
|
|
|
86 |
{if $rechnungsnr==$offRech[r]['rechnungsnummer']}
|
|
|
87 |
{if $offRech[r]['1_mahnung_datum']!='0000-00-00 00:00:00' &&
|
|
|
88 |
$offRech[r]['2_mahnung_datum']!='0000-00-00 00:00:00' &&
|
|
|
89 |
$offRech[r]['3_mahnung_datum']=='0000-00-00 00:00:00'}
|
|
|
90 |
selected="selected"
|
|
|
91 |
{/if}
|
|
|
92 |
{/if}
|
|
|
93 |
{/section}
|
|
|
94 |
>{$mTypes[m].Inhalt}</option>
|
|
|
95 |
{/if}
|
|
|
96 |
{/section}
|
|
|
97 |
</select><br /><br />
|
|
|
98 |
|
|
|
99 |
<!-- ENDE Welche Art Mahnung soll erstellt werden? -->
|
|
|
100 |
|
|
|
101 |
<table>
|
|
|
102 |
<tr>
|
|
|
103 |
<td>
|
|
|
104 |
<label for="neues_zahlungsziel">Zahlungsziel:</label>
|
|
|
105 |
</td>
|
|
|
106 |
<td>
|
|
|
107 |
<input type="text" id="neues_zahlungsziel" name="neues_zahlungsziel" value="{$smarty.session.Warenwirtschaft.rechnungsbuch.txtFaellig|date_format:"d.m.Y"}" />
|
|
|
108 |
</td></tr>
|
|
|
109 |
<tr>
|
|
|
110 |
<td style="vertical-align:top;">
|
|
|
111 |
<label for="mahnung_bemerkung">Bemerkung:</label>
|
|
|
112 |
</td>
|
|
|
113 |
<td>
|
|
|
114 |
<textarea cols="30" rows="5" id="mahnung_bemerkung" name="mahnung_bemerkung"></textarea>
|
|
|
115 |
</td>
|
|
|
116 |
</tr>
|
|
|
117 |
</table>
|
|
|
118 |
<br />
|
|
|
119 |
<!-- START die Liste aller fälligen Rechnungen -->
|
|
|
120 |
<table cellpadding="3" cellspacing="0">
|
|
|
121 |
<tr>
|
|
|
122 |
<th> </th>
|
|
|
123 |
<th style="text-align:right;">RechnungNr.:</th>
|
|
|
124 |
<th style="text-align:right;">Erstelldatum:</th>
|
|
|
125 |
<th style="text-align:right;">BestellNr.:</th>
|
|
|
126 |
<th style="text-align:right;">KundenNr.:</th>
|
|
|
127 |
<th style="text-align:right;">Name:</th>
|
|
|
128 |
<th style="text-align:right;">Firma:</th>
|
|
|
129 |
<th style="text-align:right;">Fälligkeit:</th>
|
|
|
130 |
<th style="text-align:right;">1. Mahnung:</th>
|
|
|
131 |
<th style="text-align:right;">2. Mahnung:</th>
|
|
|
132 |
<th style="text-align:right;">3. Mahnung:</th>
|
|
|
133 |
<th style="text-align:right;">Netto:</th>
|
|
|
134 |
<th style="text-align:right;">Brutto:</th>
|
|
|
135 |
</tr>
|
|
|
136 |
{section loop=$offRech name=r}
|
|
|
137 |
<tr class="tablerow" style="background-color:{cycle values="#eeeeee,#d0d0d0"};">
|
|
|
138 |
|
|
|
139 |
<td style="text-align:right;"><input id="r_{$offRech[r]['rechnungsnummer']}"
|
|
|
140 |
{if $rechnungsnr==$offRech[r]['rechnungsnummer']}
|
|
|
141 |
checked="checked"
|
|
|
142 |
{/if}
|
|
|
143 |
type="checkbox" name="rechnungsnummer[]" value="{$offRech[r]['rechnungsnummer']}" />
|
|
|
144 |
<input type="hidden" name="bestellungen[{$offRech[r]['rechnungsnummer']}]" value="{$offRech[r]['bestellung']}" />
|
|
|
145 |
</td>
|
|
|
146 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['rechnungsnummer']}</label></td>
|
|
|
147 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['erstellt_am']|date_format:"d.m.Y"}</label></td>
|
|
|
148 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['bestellung']}</label></td>
|
|
|
149 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['kundennr']}</label></td>
|
|
|
150 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['Vorname']} {$offRech[r]['Name1']}</label></td>
|
|
|
151 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['Name2']}</label></td>
|
|
|
152 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['zahlungsziel_datum']}</label></td>
|
|
|
153 |
|
|
|
154 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{if $offRech[r]['1_mahnung_datum']!="0000-00-00 00:00:00"}{$offRech[r]['1_mahnung_datum']|date_format:"d.m.Y"}{else}---{/if}</label></td>
|
|
|
155 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{if $offRech[r]['2_mahnung_datum']!="0000-00-00 00:00:00"}{$offRech[r]['2_mahnung_datum']|date_format:"d.m.Y"}{else}---{/if}</label></td>
|
|
|
156 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{if $offRech[r]['3_mahnung_datum']!="0000-00-00 00:00:00"}{$offRech[r]['3_mahnung_datum']|date_format:"d.m.Y"}{else}---{/if}</label></td>
|
|
|
157 |
|
|
|
158 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['nettobetrag']|money_format}</label></td>
|
|
|
159 |
<td style="text-align:right;"><label for="r_{$offRech[r]['rechnungsnummer']}">{$offRech[r]['bruttobetrag']|money_format}</label></td>
|
|
|
160 |
</tr>
|
|
|
161 |
{/section}
|
|
|
162 |
</table>
|
|
|
163 |
<!-- ENDE die Liste aller fälligen Rechnungen -->
|
|
|
164 |
|
|
|
165 |
{if $action}
|
|
|
166 |
<input type="hidden" name="action" value="{$action}" />
|
|
|
167 |
{/if}
|
|
|
168 |
<br /><br /><input type="submit" value="Mahnung erstellen" />
|
|
|
169 |
</form>
|
|
|
170 |
|
|
|
171 |
<script type="text/javascript">
|
|
|
172 |
/*
|
|
|
173 |
var now = new Date();
|
|
|
174 |
now = now.getTime();
|
|
|
175 |
|
|
|
176 |
//var timestamp = now+(86400*1000*7);
|
|
|
177 |
var timestamp = now;
|
|
|
178 |
var datum = new Date();
|
|
|
179 |
|
|
|
180 |
datum.setTime(timestamp);
|
|
|
181 |
|
|
|
182 |
tag = datum.getDate();
|
|
|
183 |
monat = datum.getMonth()+1;
|
|
|
184 |
jahr = datum.getFullYear();
|
|
|
185 |
|
|
|
186 |
datum = tag+"."+monat+"."+jahr;
|
|
|
187 |
|
|
|
188 |
if(document.getElementById('neues_zahlungsziel')) {
|
|
|
189 |
document.getElementById('neues_zahlungsziel').value = datum;
|
|
|
190 |
}
|
|
|
191 |
*/
|
|
|
192 |
</script>
|
|
|
193 |
</body>
|
|
|
194 |
</html>
|