Subversion-Projekte lars-tiefland.content-management

Revision

Revision 1 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1 Revision 2
Zeile 27... Zeile 27...
27
        $(function(){
27
        $(function(){
28
            $('#txtFaellig').datepicker();
28
            $('#txtFaellig').datepicker();
29
        });
29
        });
30
    </script>
30
    </script>
31
    <script language="JavaScript" src="/checkDate.js"></script>
31
    <script language="JavaScript" src="/checkDate.js"></script>
32
    
32
 
33
    <script type="text/javascript">
33
    <script type="text/javascript">
34
        function buildSelectBox(rid,currStatus) {
34
        function buildSelectBox(rid,currStatus) {
35
            var str;
35
            var str;
36
            str = "<select onchange=\"closeSelection(this,'"+rid+"','"+currStatus+"');\" name=\"status["+rid+"]\">\n";
36
            str = "<select onchange=\"closeSelection(this,'"+rid+"','"+currStatus+"');\" name=\"status["+rid+"]\">\n";
37
            str += "<option value=\"none\">keine Auswahl</option>\n";
37
            str += "<option value=\"none\">keine Auswahl</option>\n";
Zeile 45... Zeile 45...
45
        function closeSelection(id,rid,currStatus) {
45
        function closeSelection(id,rid,currStatus) {
46
            if(id.value=="none") {
46
            if(id.value=="none") {
47
                document.getElementById('bezahlstatus_'+rid).innerHTML = currStatus;    
47
                document.getElementById('bezahlstatus_'+rid).innerHTML = currStatus;    
48
            }
48
            }
49
        }
49
        }
-
 
50
 
-
 
51
        function killkomma(w)
-
 
52
        {
-
 
53
         return w.replace(/,/,'.');
-
 
54
        }
-
 
55
 
50
    </script>
56
    </script>
-
 
57
    
51
</head>
58
</head>
Zeile 52... Zeile 59...
52
 
59
 
Zeile 53... Zeile 60...
53
<body class="rechnungsbuch">
60
<body class="rechnungsbuch">
54
 
61
 
55
    <form action="{$SCRIPT_NAME}" method="post" name="form_step1" id="form_step1">
62
    <form action="{$SCRIPT_NAME}" method="post" name="form_step1" id="form_step1">
56
        <div class="optionsleiste">
63
        <div class="optionsleiste">
57
            <table width="100%" border="1" cellspacing="0" cellpadding="3">
64
            <table width="100%" border="1" cellspacing="0" cellpadding="3">
-
 
65
                <tr>
-
 
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
                        
58
                <tr>
85
                        BestellNr: <input type="text" size="5" name="bestellnr" value="{$smarty.session.Warenwirtschaft.rechnungsbuch.bestellnr}" />
-
 
86
                        
59
                    <td class="rechts" align="right">Rechnungsdatum:
87
                        {html_options name="zeitraum" options=$zeitraum selected=$smarty.session.Warenwirtschaft.rechnungsbuch.zeitraum id="zeitraum"}
-
 
88
                        
60
                        {html_options name="zeitraum" options=$zeitraum selected=$smarty.post.zeitraum id="zeitraum"}
89
                        {html_options name="shops_id" values=$shops.id output=$shops.name selected=$smarty.session.Warenwirtschaft.rechnungsbuch.shops_id id="shops_id"}
-
 
90
                        
Zeile 61... Zeile 91...
61
                        {html_options name="shops_id" values=$shops.id output=$shops.name selected=$smarty.post.shops_id id="shops_id"}
91
                        F&auml;llig:&nbsp;<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
                        
62
                        F&auml;llig bis: <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="{$txtFaellig|date_format:"d.m.Y"}" id="txtFaellig">
93
 
63
 
94
                        {if $zahlungsarten}
64
                        {if $zahlungsarten}
95
                        
65
                        {html_options multiple="true" name="msZahlart[]" 
96
                        {html_options multiple="true" name="msZahlart[]" 
-
 
97
                        values=$zahlungsarten.id
66
                        values=$zahlungsarten.id
98
                        output=$zahlungsarten.name  
67
                        output=$zahlungsarten.name  
99
                        selected=$smarty.session.Warenwirtschaft.rechnungsbuch.msZahlart id="msZahlart"}
-
 
100
                        
-
 
101
                        {/if}
68
                        selected=$smarty.post.msZahlart id="msZahlart"}
102
                        
69
                        {/if}
103
                        {$smarty.session.Warenwirtschaft.rechnungsbuch.cbErsteller}
-
 
104
                        
70
 
105
                        
-
 
106
                        Ersteller:<input type="checkbox" name="cbErsteller" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbErsteller == 'on'}checked="checked"{/if} /> |
71
 
107
                         
-
 
108
                        Shop:<input type="checkbox" name="cbShop" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbShop == 'on'}checked="checked"{/if} /> | 
72
                        Ersteller:<input type="checkbox" name="cbErsteller" {if $cbErsteller == 'on'}checked="checked"{/if} /> | 
109
                        
-
 
110
                        Bezahlstatus:<input type="checkbox" name="cbBezahlstatus" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbBezahlstatus == 'on'}checked="checked"{/if} /> |
73
                        Shop:<input type="checkbox" name="cbShop" {if $cbShop == 'on'}checked="checked"{/if} /> | 
111
                         
-
 
112
                        Kd-Nr.:<input type="checkbox" name="cbKdNr" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbKdNr == 'on'}checked="checked"{/if} /> | 
74
                        Bezahlstatus:<input type="checkbox" name="cbBezahlstatus" {if $cbBezahlstatus == 'on'}checked="checked"{/if} /> | 
113
                        
-
 
114
                        Kunde:<input type="checkbox" name="cbKunde" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbKunde == 'on'}checked="checked"{/if} /> | 
75
                        Kd-Nr.:<input type="checkbox" name="cbKdNr" {if $cbKdNr == 'on'}checked="checked"{/if} /> | 
115
                        
-
 
116
                        Firma:<input type="checkbox" name="cbFirma" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbFirma == 'on'}checked="checked"{/if} /> |
76
                        Kunde:<input type="checkbox" name="cbKunde" {if $cbKunde == 'on'}checked="checked"{/if} /> | 
117
                        
-
 
118
                        MwSt.7%:<input type="checkbox" name="cbMwSt7" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbMwSt7 == 'on'}checked="checked"{/if} /> | 
77
                        Firma:<input type="checkbox" name="cbFirma" {if $cbFirma == 'on'}checked="checked"{/if} /> |
119
                        
-
 
120
                        MwSt.19%:<input type="checkbox" name="cbMwSt19" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbMwSt19 == 'on'}checked="checked"{/if} /> | 
78
                        MwSt.7%:<input type="checkbox" name="cbMwSt7" {if $cbMwSt7 == 'on'}checked="checked"{/if} /> | 
121
                        
-
 
122
                        Nettobetrag:<input type="checkbox" name="cbNettobetrag" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbNettobetrag == 'on'}checked="checked"{/if} />
79
                        MwSt.19%:<input type="checkbox" name="cbMwSt19" {if $cbMwSt19 == 'on'}checked="checked"{/if} /> | 
123
                        
-
 
124
                        MwSt-Befreiung:<input type="checkbox" name="cbMwStBefreiung" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbMwStBefreiung == 'on'}checked="checked"{/if} />
80
                        Nettobetrag:<input type="checkbox" name="cbNettobetrag" {if $cbNettobetrag == 'on'}checked="checked"{/if} />
125
                        
-
 
126
                        USt-IdNr.:<input type="checkbox" name="cbUStIdNr" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbUStIdNr == 'on'}checked="checked"{/if} />
81
                        MwSt-Befreiung:<input type="checkbox" name="cbMwStBefreiung" {if $cbMwStBefreiung == 'on'}checked="checked"{/if} />
127
                        
82
                        USt-IdNr.:<input type="checkbox" name="cbUStIdNr" {if $cbUStIdNr == 'on'}checked="checked"{/if} />
128
                        Bestellnummer:<input type="checkbox" name="cbBestellnummer" {if $smarty.session.Warenwirtschaft.rechnungsbuch.cbBestellnummer == 'on'}checked="checked"{/if} />
-
 
129
                        
83
                        Bestellnummer:<input type="checkbox" name="cbBestellnummer" {if $cbBestellnummer == 'on'}checked="checked"{/if} />
130
                        <br /><br />
-
 
131
                        {if isset($datev_user_recht)}
84
                        <br /><br />
132
                        
85
                        {if isset($datev_user_recht)}
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;" />
86
                        <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;" />
134
                        
87
                        {/if}
135
                        {/if}
88
                        <input type="submit" name="submit" value="OK" />
136
                        <input type="submit" name="submit" value="OK" />
89
                    </td>
137
                    </td>
Zeile 90... Zeile 138...
90
                </tr>
138
                </tr>
Zeile 91... Zeile 139...
91
            </table>
139
            </table>
92
        </div>
140
        </div>
93
 
141
 
94
        <br />
142
        <br />
95
 
143
 
96
        <table border="0" cellspacing="0" cellpadding="3" id="rechnungstabelle">
144
        <table style="background-color:#fff;" border="0" cellspacing="0" cellpadding="3" id="rechnungstabelle">
97
            <tr class="rechts">
145
            <tr class="rechts">
98
                <td width="100" id="rechnungsnummer">Rechnungsnr.</a></td>
146
                <td width="100" id="rechnungsnummer">Rechnungsnr.</a></td>
99
                <td width="150" id="erstelldatum">Erstelldatum</a></td>
147
                <td width="150" id="erstelldatum">Erstelldatum</a></td>
100
                <td width="100" id="shop">Bruttobetrag</td>
148
                <td width="100" id="shop">Bruttobetrag</td>
101
                {if $cbErsteller}<td width="100" id="ersteller">Ersteller</a></td>{/if}
149
                {if $cbErsteller}<td width="100" id="ersteller">Ersteller</a></td>{/if}
102
                {if $cbShop}<td width="100">Shop</td>{/if}
150
                {if $cbShop}<td width="100">Shop</td>{/if}
103
                {if $cbBezahlstatus}<td width="100">Bezahlstatus</td>{/if}
151
                {if $cbBezahlstatus}<td width="100">Bezahlstatus</td>{/if}
104
                {if $txtFaellig}<td width="100">F&auml;llig bis</td>{/if}
152
                {if $txtFaellig}<td width="100">F&auml;llig:</td>{/if}
105
                <td width="100">Zahlart</td>
153
                <td width="100">Zahlart</td>
106
                {if $cbKdNr}<td width="100">Kd-Nr.</td>{/if}
154
                {if $cbKdNr}<td width="100">Kd-Nr.</td>{/if}
107
                {if $cbKunde}<td width="100">Kunde</td>{/if}
155
                {if $cbKunde}<td width="100">Kunde</td>{/if}
108
                {if $cbFirma}<td width="100">Firma</td>{/if}
156
                {if $cbFirma}<td width="100">Firma</td>{/if}
109
                {if $cbMwSt7}<td width="100">MwSt.7%</td>{/if}
157
                {if $cbMwSt7}<td width="100">MwSt.7%</td>{/if}
110
                {if $cbMwSt19}<td width="100">MwSt.19%</td>{/if}
-
 
-
 
158
                {if $cbMwSt19}<td width="100">MwSt.19%</td>{/if}
111
                {if $cbNettobetrag}<td width="100">Nettobetrag</td>{/if}
159
                {if $cbNettobetrag}<td width="100">Nettobetrag</td>{/if}
112
                {if $cbMwStBefreiung}<td width="100"> MwSt-Befreiung</td>{/if}
160
                {if $cbMwStBefreiung}<td width="100"> MwSt-Befreiung</td>{/if}
Zeile 113... Zeile 161...
113
                {if $cbUStIdNr}<td width="100">USt-IdNr.</td>{/if}
161
                {if $cbUStIdNr}<td width="100">USt-IdNr.</td>{/if}
114
                {if $cbBestellnummer}<td width="100">Bestellnummer</td>{/if}
162
                {if $cbBestellnummer}<td width="100">Bestellnummer</td>{/if}
Zeile 126... Zeile 174...
126
 
174
 
127
 
175
 
128
 
176
 
129
                {if $cbBezahlstatus}
177
                {if $cbBezahlstatus}
130
                <td id="bezahlstatus_{$rec[k]['rechnungsnummer']}" style="text-align:center;cursor:{if $rec[k]['bezahlstatus']=="offen"}pointer{elseif $rec[k]['bezahlstatus']!=""}help{/if};" 
178
                <td id="bezahlstatus_{$rec[k]['rechnungsnummer']}" style="text-align:center;cursor:{if $rec[k]['bezahlstatus']=="offen"}pointer{elseif $rec[k]['bezahlstatus']!=""}help{/if};" 
131
                {if $rec[k]['bezahlstatus']=="offen"}
179
                {if $rec[k]['bezahlstatus']!="bezahlt"}
132
                ondblclick = "buildSelectBox('{$rec[k]['rechnungsnummer']}','{$rec[k]['bezahlstatus']}');"
180
                ondblclick = "buildSelectBox('{$rec[k]['rechnungsnummer']}','{$rec[k]['bezahlstatus']}');"
Zeile 133... Zeile 181...
133
                {/if}
181
                {/if}
134
                {if $rec[k]['bezahlstatus']!=""}
182
                {if $rec[k]['bezahlstatus']!=""}
135
                onmouseover="return overlib('{if $rec[k]['bezahlstatus']=="offen"}<b>Doppelklicken zum Bearbeiten</b><br />{/if}{$rec[k]['bezahlstatus_history']}', CAPTION, '', HAUTO, VAUTO);" onmouseout="return nd();"{/if}>
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}>
136
                
184
                
137
                {if $rec[k]['bezahlstatus']!=""}
185
                {if $rec[k]['bezahlstatus']!=""}
138
                    {$rec[k]['bezahlstatus']}
186
                    {$rec[k]['bezahlstatus']}
139
                {else}
187
                {else}
Zeile 140... Zeile 188...
140
                    <input type="submit" value="Status speichern" />
188
                    <input type="submit" value="Status speichern" />
-
 
189
                {/if}
-
 
190
                </td>
-
 
191
                {/if}
141
                {/if}
192
                
142
                </td>
193
                
143
                {/if}
194
                {if $txtFaellig && $rec[k]['zahlungsziel']}<td>{$rec[k]['zahlungsziel']|date_format:"d.m.Y"}</td>
144
                
195
                {else}
145
                
196
                    <td>&nbsp;</td>
146
                {if $txtFaellig}<td>{$rec[k]['zahlungsziel']|date_format:"d.m.Y"}</td>{/if}
197
                {/if}
147
                {if $rec[k]['zahlungsart']}<td>{$rec[k]['zahlungsart']}</td>{/if}                                
198
                <td>{$rec[k]['zahlungsart']}</td>
148
                {if $cbKdNr}<td>{$rec[k]['kundennr']}</td>{/if}
199
                {if $cbKdNr}<td>{$rec[k]['kundennr']}</td>{/if}
149
                {if $cbKunde}<td>{$rec[k]['kunde']}</td>{/if}
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}
150
                {if $cbFirma}<td>{$rec[k]['firma']}</td>{/if}
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}
-
 
204
                {if $cbNettobetrag}<td align="right">{$rec[k]['nettobetrag']}</td>{/if}
-
 
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}
151
                {if $cbMwSt7}<td align="right">{$rec[k]['mwst_7']}</td>{/if}
208
                {if $rec[k]['mahnung']==1}
152
                {if $cbMwSt19}<td align="right">{$rec[k]['mwst_19']}</td>{/if}
209
                    <td align="center">
153
                {if $cbNettobetrag}<td align="right">{$rec[k]['nettobetrag']}</td>{/if}            
210
                    <a href="/Warenwirtschaft/mahnung.php?show_prepage=1&rechnungsnr={$rec[k]['rechnungsnummer']}"><img src="/images/mahnung.gif" alt="Mahnung erstellen" /></a></td>
154
                {if $cbMwStBefreiung}<td align="right">{if $rec[k]['mwst_befreiung'] == "on"}befreit{/if}</td>{/if}
211
                {else}
155
                {if $cbUStIdNr}<td align="right">{$rec[k]['ustid_nr']}</td>{/if}
212
                    <td>&nbsp;</td>