| 1 |
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>Rechnungsbuch</title>
|
|
|
9 |
|
|
|
10 |
<link rel="stylesheet" type="text/css" href="../styles/styles.php" />
|
|
|
11 |
<link rel="stylesheet" type="text/css" href="../styles/print.css" media="print" />
|
|
|
12 |
{if file_exists("/css/$site/jquery-ui.custom.css")}
|
|
|
13 |
<link rel="stylesheet" type="text/css" href="/css/{$site}/jquery-ui.custom.css">
|
|
|
14 |
{else}
|
|
|
15 |
<link rel="stylesheet" type="text/css" href="/css/ui-darkness/jquery-ui.custom.css">
|
|
|
16 |
{/if}
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
<script type="text/javascript" src="/js/overlib.js"></script>
|
|
|
20 |
|
|
|
21 |
<script type="text/javascript" src="jscript/rechnungsbuch-zebra.js"></script>
|
|
|
22 |
|
|
|
23 |
<script src="/js/jquery-1.4.4.min.js"></script>
|
|
|
24 |
<script src="/js/jquery-ui-1.8.9.custom.min.js"></script>
|
|
|
25 |
<script src="/js/i18n/jquery.ui.datepicker-de.js"></script>
|
|
|
26 |
<script>
|
|
|
27 |
$(function(){
|
|
|
28 |
$('#txtFaellig').datepicker();
|
|
|
29 |
});
|
|
|
30 |
</script>
|
|
|
31 |
<script language="JavaScript" src="/checkDate.js"></script>
|
| 2 |
lars |
32 |
|
| 1 |
lars |
33 |
<script type="text/javascript">
|
|
|
34 |
function buildSelectBox(rid,currStatus) {
|
|
|
35 |
var str;
|
|
|
36 |
str = "<select onchange=\"closeSelection(this,'"+rid+"','"+currStatus+"');\" name=\"status["+rid+"]\">\n";
|
|
|
37 |
str += "<option value=\"none\">keine Auswahl</option>\n";
|
|
|
38 |
str += "<option value=\"bezahlt\" selected=\"selected\">bezahlt</option>\n";
|
|
|
39 |
str += "<option value=\"storniert\">storniert</option>\n";
|
|
|
40 |
str += "</select>\n";
|
|
|
41 |
|
|
|
42 |
document.getElementById("bezahlstatus_"+rid).innerHTML = str;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
function closeSelection(id,rid,currStatus) {
|
|
|
46 |
if(id.value=="none") {
|
|
|
47 |
document.getElementById('bezahlstatus_'+rid).innerHTML = currStatus;
|
|
|
48 |
}
|
|
|
49 |
}
|
| 2 |
lars |
50 |
|
|
|
51 |
function killkomma(w)
|
|
|
52 |
{
|
|
|
53 |
return w.replace(/,/,'.');
|
|
|
54 |
}
|
|
|
55 |
|
| 1 |
lars |
56 |
</script>
|
| 2 |
lars |
57 |
|
| 1 |
lars |
58 |
</head>
|
|
|
59 |
|
|
|
60 |
<body class="rechnungsbuch">
|
|
|
61 |
|
|
|
62 |
<form action="{$SCRIPT_NAME}" method="post" name="form_step1" id="form_step1">
|
|
|
63 |
<div class="optionsleiste">
|
|
|
64 |
<table width="100%" border="1" cellspacing="0" cellpadding="3">
|
|
|
65 |
<tr>
|
| 2 |
lars |
66 |
<td class="rechts" align="right">
|
|
|
67 |
|
|
|
68 |
{if isset($web_rechte.Warenwirtschaft.rechnungsbuch.suche_rechnungsnummer)}
|
|
|
69 |
|
|
|
70 |
Rechnungsnummer: <input type="text" size="10" name="rechnungsnummer" value="{$smarty.session.Warenwirtschaft.rechnungsbuch.rechnungsnummer}" />
|
|
|
71 |
|
|
|
72 |
{/if}
|
|
|
73 |
{if isset($web_rechte.Warenwirtschaft.rechnungsbuch.suche_rechnungsbetrag)}
|
|
|
74 |
|
|
|
75 |
Rechnungsbetrag: <input onkeyup="this.value = killkomma(this.value);" type="text" size="5" name="rechnungsbetrag" value="{$smarty.session.Warenwirtschaft.rechnungsbuch.rechnungsbetrag}" />
|
|
|
76 |
|
|
|
77 |
{/if}
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
KundenName: <input type="text" size="5" name="kundenname" value="{$smarty.session.Warenwirtschaft.rechnungsbuch.kundenname}" />
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
KundenNr: <input type="text" size="5" name="kundennr" value="{$smarty.session.Warenwirtschaft.rechnungsbuch.kundennr}" />
|
|
|
84 |
|
|
|
85 |
BestellNr: <input type="text" size="5" name="bestellnr" value="{$smarty.session.Warenwirtschaft.rechnungsbuch.bestellnr}" />
|
|
|
86 |
|
|
|
87 |
{html_options name="zeitraum" options=$zeitraum selected=$smarty.session.Warenwirtschaft.rechnungsbuch.zeitraum id="zeitraum"}
|
|
|
88 |
|
|
|
89 |
{html_options name="shops_id" values=$shops.id output=$shops.name selected=$smarty.session.Warenwirtschaft.rechnungsbuch.shops_id id="shops_id"}
|
|
|
90 |
|
|
|
91 |
Fällig: <input onfocus="current_value=this.value;if (this.value=='') { this.value=today() };this.select();" onchange="this.value=check_Date(this.value)" type="text" name="txtFaellig" value="{$smarty.session.Warenwirtschaft.rechnungsbuch.txtFaellig|date_format:"d.m.Y"}" id="txtFaellig">
|
|
|
92 |
|
| 1 |
lars |
93 |
|
|
|
94 |
{if $zahlungsarten}
|
| 2 |
lars |
95 |
|
| 1 |
lars |
96 |
{html_options multiple="true" name="msZahlart[]"
|
|
|
97 |
values=$zahlungsarten.id
|
|
|
98 |
output=$zahlungsarten.name
|
| 2 |
lars |
99 |
selected=$smarty.session.Warenwirtschaft.rechnungsbuch.msZahlart id="msZahlart"}
|
|
|
100 |
|
| 1 |
lars |
101 |
{/if}
|
| 2 |
lars |
102 |
|
|
|
103 |
{$smarty.session.Warenwirtschaft.rechnungsbuch.cbErsteller}
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
Ersteller:<input type="checkbox" name="cbErsteller" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbErsteller == 'on'}checked="checked"{/if} /> |
|
|
|
107 |
|
|
|
108 |
Shop:<input type="checkbox" name="cbShop" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbShop == 'on'}checked="checked"{/if} /> |
|
|
|
109 |
|
|
|
110 |
Bezahlstatus:<input type="checkbox" name="cbBezahlstatus" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbBezahlstatus == 'on'}checked="checked"{/if} /> |
|
|
|
111 |
|
|
|
112 |
Kd-Nr.:<input type="checkbox" name="cbKdNr" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbKdNr == 'on'}checked="checked"{/if} /> |
|
|
|
113 |
|
|
|
114 |
Kunde:<input type="checkbox" name="cbKunde" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbKunde == 'on'}checked="checked"{/if} /> |
|
|
|
115 |
|
|
|
116 |
Firma:<input type="checkbox" name="cbFirma" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbFirma == 'on'}checked="checked"{/if} /> |
|
|
|
117 |
|
|
|
118 |
MwSt.7%:<input type="checkbox" name="cbMwSt7" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbMwSt7 == 'on'}checked="checked"{/if} /> |
|
|
|
119 |
|
|
|
120 |
MwSt.19%:<input type="checkbox" name="cbMwSt19" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbMwSt19 == 'on'}checked="checked"{/if} /> |
|
|
|
121 |
|
|
|
122 |
Nettobetrag:<input type="checkbox" name="cbNettobetrag" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbNettobetrag == 'on'}checked="checked"{/if} />
|
|
|
123 |
|
|
|
124 |
MwSt-Befreiung:<input type="checkbox" name="cbMwStBefreiung" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbMwStBefreiung == 'on'}checked="checked"{/if} />
|
|
|
125 |
|
|
|
126 |
USt-IdNr.:<input type="checkbox" name="cbUStIdNr" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbUStIdNr == 'on'}checked="checked"{/if} />
|
|
|
127 |
|
|
|
128 |
Bestellnummer:<input type="checkbox" name="cbBestellnummer" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbBestellnummer == 'on'}checked="checked"{/if} />
|
|
|
129 |
|
| 1 |
lars |
130 |
<br /><br />
|
|
|
131 |
{if isset($datev_user_recht)}
|
| 2 |
lars |
132 |
|
| 1 |
lars |
133 |
<input type="button" name="datev_export" value="Datev CSV-Export" onclick="document.location.href='datev_csv_export.php?zeitraum='+document.getElementById('zeitraum').value+'&shop='+document.getElementById('shops_id').value;" />
|
| 2 |
lars |
134 |
|
| 1 |
lars |
135 |
{/if}
|
|
|
136 |
<input type="submit" name="submit" value="OK" />
|
|
|
137 |
</td>
|
|
|
138 |
</tr>
|
|
|
139 |
</table>
|
|
|
140 |
</div>
|
|
|
141 |
|
|
|
142 |
<br />
|
|
|
143 |
|
| 2 |
lars |
144 |
<table style="background-color:#fff;" border="0" cellspacing="0" cellpadding="3" id="rechnungstabelle">
|
| 1 |
lars |
145 |
<tr class="rechts">
|
|
|
146 |
<td width="100" id="rechnungsnummer">Rechnungsnr.</a></td>
|
|
|
147 |
<td width="150" id="erstelldatum">Erstelldatum</a></td>
|
|
|
148 |
<td width="100" id="shop">Bruttobetrag</td>
|
|
|
149 |
{if $cbErsteller}<td width="100" id="ersteller">Ersteller</a></td>{/if}
|
|
|
150 |
{if $cbShop}<td width="100">Shop</td>{/if}
|
|
|
151 |
{if $cbBezahlstatus}<td width="100">Bezahlstatus</td>{/if}
|
| 2 |
lars |
152 |
{if $txtFaellig}<td width="100">Fällig:</td>{/if}
|
| 1 |
lars |
153 |
<td width="100">Zahlart</td>
|
|
|
154 |
{if $cbKdNr}<td width="100">Kd-Nr.</td>{/if}
|
|
|
155 |
{if $cbKunde}<td width="100">Kunde</td>{/if}
|
|
|
156 |
{if $cbFirma}<td width="100">Firma</td>{/if}
|
|
|
157 |
{if $cbMwSt7}<td width="100">MwSt.7%</td>{/if}
|
|
|
158 |
{if $cbMwSt19}<td width="100">MwSt.19%</td>{/if}
|
|
|
159 |
{if $cbNettobetrag}<td width="100">Nettobetrag</td>{/if}
|
|
|
160 |
{if $cbMwStBefreiung}<td width="100"> MwSt-Befreiung</td>{/if}
|
|
|
161 |
{if $cbUStIdNr}<td width="100">USt-IdNr.</td>{/if}
|
|
|
162 |
{if $cbBestellnummer}<td width="100">Bestellnummer</td>{/if}
|
| 2 |
lars |
163 |
{if $txtFaellig}<td width="100" align="center">Mahnung</td>{/if}
|
| 1 |
lars |
164 |
</tr>
|
|
|
165 |
{section name=k loop=$rec}
|
|
|
166 |
|
|
|
167 |
{if $rec[k]}
|
|
|
168 |
<tr class="rechts">
|
|
|
169 |
<td><a href="{$rec[k]['rechnungsnummerLink']}" target="tool">{$rec[k]['rechnungsnummer']}</a>{if $smarty.section.k.index < sizeof($rec)-1} <a href="{$rec[k]['rechnungsnummerLupe']}" class="lupe" target="_blank"><img align="middle" src="/dokumente/gfx/fileicons/pdf.gif" /></a>{/if}</td>
|
|
|
170 |
<td>{if $rec[k]['erstellt_am'] > 0}{$rec[k]['erstellt_am']|date_format:"%d.%m.%Y %H:%M Uhr"}{/if}</td>
|
|
|
171 |
<td align="right">{$rec[k]['bruttobetrag']}</td>
|
|
|
172 |
{if $cbErsteller}<td>{$rec[k]['erstellt_von']}</td>{/if}
|
|
|
173 |
{if $cbShop}<td>{$rec[k]['shop']}</td>{/if}
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
{if $cbBezahlstatus}
|
|
|
178 |
<td id="bezahlstatus_{$rec[k]['rechnungsnummer']}" style="text-align:center;cursor:{if $rec[k]['bezahlstatus']=="offen"}pointer{elseif $rec[k]['bezahlstatus']!=""}help{/if};"
|
| 2 |
lars |
179 |
{if $rec[k]['bezahlstatus']!="bezahlt"}
|
| 1 |
lars |
180 |
ondblclick = "buildSelectBox('{$rec[k]['rechnungsnummer']}','{$rec[k]['bezahlstatus']}');"
|
|
|
181 |
{/if}
|
|
|
182 |
{if $rec[k]['bezahlstatus']!=""}
|
| 2 |
lars |
183 |
onmouseover="return overlib('{if $rec[k]['bezahlstatus']!="bezahlt"}<b>Doppelklicken zum Bearbeiten</b><br />{/if}{$rec[k]['bezahlstatus_history']}', CAPTION, '', HAUTO, VAUTO);" onmouseout="return nd();"{/if}>
|
| 1 |
lars |
184 |
|
|
|
185 |
{if $rec[k]['bezahlstatus']!=""}
|
|
|
186 |
{$rec[k]['bezahlstatus']}
|
|
|
187 |
{else}
|
|
|
188 |
<input type="submit" value="Status speichern" />
|
|
|
189 |
{/if}
|
|
|
190 |
</td>
|
|
|
191 |
{/if}
|
|
|
192 |
|
|
|
193 |
|
| 2 |
lars |
194 |
{if $txtFaellig && $rec[k]['zahlungsziel']}<td>{$rec[k]['zahlungsziel']|date_format:"d.m.Y"}</td>
|
|
|
195 |
{else}
|
|
|
196 |
<td> </td>
|
|
|
197 |
{/if}
|
|
|
198 |
<td>{$rec[k]['zahlungsart']}</td>
|
| 1 |
lars |
199 |
{if $cbKdNr}<td>{$rec[k]['kundennr']}</td>{/if}
|
| 2 |
lars |
200 |
{if $cbKunde}<td style="cursor:help;" onmouseover="return overlib('Kundennr: {$rec[k]['kundennr']}<br>Zahlungsart: {$rec[k]['zahlungsart']}<br>Zahlungsziel: {$rec[k]['zahlungsziel']|date_format:"d.m.Y"}<hr>zugewiesene Zahlungsart: {$rec[k]['zugew_zahlart_name']}<br>zugewiesenes Zahlungsziel: {$rec[k]['zugew_zahlungsziel_name']}', CAPTION, '', HAUTO, VAUTO);" onmouseout="return nd();">{$rec[k]['kunde']}</td>{/if}
|
| 1 |
lars |
201 |
{if $cbFirma}<td>{$rec[k]['firma']}</td>{/if}
|
|
|
202 |
{if $cbMwSt7}<td align="right">{$rec[k]['mwst_7']}</td>{/if}
|
|
|
203 |
{if $cbMwSt19}<td align="right">{$rec[k]['mwst_19']}</td>{/if}
|
| 2 |
lars |
204 |
{if $cbNettobetrag}<td align="right">{$rec[k]['nettobetrag']}</td>{/if}
|
| 1 |
lars |
205 |
{if $cbMwStBefreiung}<td align="right">{if $rec[k]['mwst_befreiung'] == "on"}befreit{/if}</td>{/if}
|
|
|
206 |
{if $cbUStIdNr}<td align="right">{$rec[k]['ustid_nr']}</td>{/if}
|
|
|
207 |
{if $cbBestellnummer}<td align="right">{$rec[k]['bestellung']}</td>{/if}
|
| 2 |
lars |
208 |
{if $rec[k]['mahnung']==1}
|
|
|
209 |
<td align="center">
|
|
|
210 |
<a href="/Warenwirtschaft/mahnung.php?show_prepage=1&rechnungsnr={$rec[k]['rechnungsnummer']}"><img src="/images/mahnung.gif" alt="Mahnung erstellen" /></a></td>
|
|
|
211 |
{else}
|
|
|
212 |
<td> </td>
|
|
|
213 |
{/if}
|
| 1 |
lars |
214 |
</tr>
|
|
|
215 |
{/if}
|
|
|
216 |
{/section}
|
|
|
217 |
</table>
|
|
|
218 |
{if $cbBezahlstatus}
|
|
|
219 |
<input type="hidden" name="action" value="save_bezahlstatus" />
|
|
|
220 |
{/if}
|
|
|
221 |
</form>
|
|
|
222 |
</body>
|
|
|
223 |
</html>
|