| 143 |
lars |
1 |
<!-- $Id: supplier.tpl 317 2023-08-12 19:58:02Z lars $ BEGIN -->
|
|
|
2 |
<script>
|
|
|
3 |
$(function()
|
|
|
4 |
{
|
| 191 |
lars |
5 |
$('#versandkostenLink').click(function(){
|
| 224 |
lars |
6 |
$('#versandkosten').load("/bestellwesen/suppliers/{$lieferant.id}/shipping")
|
| 191 |
lars |
7 |
})
|
|
|
8 |
$('#LagerLink').click(function(){
|
| 203 |
lars |
9 |
$('#Lager').load("/bestellwesen/suppliers/{$lieferant.id}/supplierWarehouse")
|
| 191 |
lars |
10 |
}).click();
|
| 143 |
lars |
11 |
$("#bestandUploadMsg").dialog({
|
|
|
12 |
autoOpen:false,
|
|
|
13 |
width:800,
|
|
|
14 |
height:600,
|
|
|
15 |
resizable:false,
|
|
|
16 |
modal:true
|
|
|
17 |
})
|
|
|
18 |
$('#editConfigDlg').dialog({
|
|
|
19 |
autoOpen:false,
|
|
|
20 |
width:800,
|
|
|
21 |
height:600,
|
|
|
22 |
resizable:false,
|
|
|
23 |
modal:true,
|
|
|
24 |
buttons:{
|
|
|
25 |
"speichern":function (){
|
| 312 |
lars |
26 |
|
| 143 |
lars |
27 |
$.post("lieferant_edit_config.php",$('#configForm').serializeArray(),function(json) {
|
|
|
28 |
$('#editConfigDlg').dialog("close");
|
|
|
29 |
let ret=$.parseJSON(json);
|
|
|
30 |
let err=ret.err;
|
|
|
31 |
let msg=ret.msg;
|
|
|
32 |
if(err!=1)
|
|
|
33 |
{
|
|
|
34 |
}
|
|
|
35 |
else
|
|
|
36 |
{
|
|
|
37 |
msg='<div style="color:red;font-weight:bold">'+msg+'</div>';
|
|
|
38 |
}
|
|
|
39 |
$('#bestandUploadMsg').html(msg).dialog("open");
|
|
|
40 |
});
|
| 140 |
lars |
41 |
}
|
| 143 |
lars |
42 |
}
|
|
|
43 |
});
|
|
|
44 |
$("#reiter").tabs();
|
|
|
45 |
$("input[type=file]").button();
|
|
|
46 |
$(".editConfig").button({
|
|
|
47 |
"icons":{
|
|
|
48 |
primary:"ui-icon-pencil"
|
|
|
49 |
}
|
|
|
50 |
}).click(editConfig);
|
|
|
51 |
$("#einlesen").button({
|
|
|
52 |
icons:{
|
|
|
53 |
primary:"ui-icon-play"
|
|
|
54 |
}
|
|
|
55 |
}).click(function(e) {
|
|
|
56 |
e.preventDefault();
|
| 178 |
lars |
57 |
$('#loadingDLG').dialog("open");
|
| 143 |
lars |
58 |
$('#bestandUploadMsg').load("lieferantenImport.php?lId={$lieferant.id}",function (json) {
|
| 178 |
lars |
59 |
$('#loadingDLG').dialog("close");
|
| 143 |
lars |
60 |
let ret=$.parseJSON(json);
|
|
|
61 |
let err=ret.err;
|
|
|
62 |
let msg=ret.msg;
|
|
|
63 |
if(err!=1)
|
|
|
64 |
{
|
| 140 |
lars |
65 |
}
|
| 143 |
lars |
66 |
else
|
|
|
67 |
{
|
|
|
68 |
msg='<div style="color:red;font-weight:bold">'+msg+'</div>';
|
| 140 |
lars |
69 |
}
|
| 143 |
lars |
70 |
$('#bestandUploadMsg').html(msg).dialog("open");
|
|
|
71 |
})
|
|
|
72 |
})
|
|
|
73 |
$("#hochladen").button().click(function(e){
|
|
|
74 |
e.preventDefault();
|
|
|
75 |
var formData = new FormData($("#bestand_upload")[0]);
|
|
|
76 |
$.ajax({
|
|
|
77 |
url: "/bestellwesen/lieferantenUpload.php",
|
|
|
78 |
type: 'POST',
|
|
|
79 |
data: formData,
|
|
|
80 |
processData: false,
|
|
|
81 |
contentType: false,
|
|
|
82 |
success: function (response, textStatus, xhr) {
|
|
|
83 |
let ret=$.parseJSON(response);
|
| 140 |
lars |
84 |
let err=ret.err;
|
|
|
85 |
let msg=ret.msg;
|
|
|
86 |
if(err!=1)
|
|
|
87 |
{
|
|
|
88 |
}
|
|
|
89 |
else
|
|
|
90 |
{
|
|
|
91 |
msg='<div style="color:red;font-weight:bold">'+msg+'</div>';
|
|
|
92 |
}
|
|
|
93 |
$('#bestandUploadMsg').html(msg).dialog("open");
|
| 143 |
lars |
94 |
},
|
|
|
95 |
error: function (xhr, status, error) {
|
|
|
96 |
}
|
| 140 |
lars |
97 |
});
|
|
|
98 |
});
|
| 143 |
lars |
99 |
});
|
| 140 |
lars |
100 |
|
| 143 |
lars |
101 |
function editConfig(e)
|
|
|
102 |
{
|
|
|
103 |
e.preventDefault();
|
|
|
104 |
$('#editConfigDlg').load("lieferant_edit_config.php?lieferant={$lieferant.id}").dialog("open")
|
|
|
105 |
}
|
|
|
106 |
</script>
|
| 317 |
lars |
107 |
<div id="supplierError" style="color: red!important;"></div>
|
| 148 |
lars |
108 |
<form id="supplierForm" method="post">
|
| 149 |
lars |
109 |
<input type="hidden" name="_token" value="{csrf_token()}">
|
| 162 |
lars |
110 |
{if $lieferant.id}
|
|
|
111 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
112 |
<input type="hidden" id="ID" value="{$lieferant.id}"/>
|
|
|
113 |
{/if}
|
| 143 |
lars |
114 |
<table width="100%">
|
|
|
115 |
<tr class="links" align="center">
|
|
|
116 |
<td colspan="2">
|
|
|
117 |
{if $lieferant.id}Lieferant {$lieferant.id} bearbeiten{else} neuen Lieferanten anlegen{/if}
|
|
|
118 |
</td>
|
|
|
119 |
</tr>
|
|
|
120 |
<tr>
|
|
|
121 |
<td class="links">ID</td>
|
|
|
122 |
<td class="rechts">
|
|
|
123 |
{$lieferant.id}
|
|
|
124 |
</td>
|
|
|
125 |
</tr>
|
|
|
126 |
<tr>
|
|
|
127 |
<td class="links">Name1</td>
|
|
|
128 |
<td class="rechts">
|
|
|
129 |
<input type="text" size="60" name="name" value="{$lieferant.name}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 317 |
lars |
130 |
<div id="supplierNameError" style="color: red!important;"></div>
|
| 143 |
lars |
131 |
</td>
|
|
|
132 |
</tr>
|
|
|
133 |
<tr>
|
|
|
134 |
<td class="links">Name2</td>
|
|
|
135 |
<td class="rechts">
|
|
|
136 |
<input type="text" size="60" name="name2" value="{$lieferant.name2}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
|
|
137 |
</td>
|
|
|
138 |
</tr>
|
|
|
139 |
<tr>
|
|
|
140 |
<td class="links">Rang</td>
|
|
|
141 |
<td class="rechts">
|
| 154 |
lars |
142 |
<input type="text" size="10" name="rank" value="{$lieferant.rank|default:0}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 317 |
lars |
143 |
<div id="supplierRankError" style="color: red!important;"></div>
|
| 143 |
lars |
144 |
</td>
|
|
|
145 |
</tr>
|
|
|
146 |
<tr>
|
|
|
147 |
<td class="links">Ansprechpartner</td>
|
|
|
148 |
<td class="rechts">
|
| 154 |
lars |
149 |
<input type="text" size="60" name="contact" value="{$lieferant.contact}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
150 |
</td>
|
|
|
151 |
</tr>
|
|
|
152 |
<tr>
|
|
|
153 |
<td class="links">Straße</td>
|
|
|
154 |
<td class="rechts">
|
| 154 |
lars |
155 |
<input type="text" size="40" name="street" value="{$lieferant.street}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
|
|
156 |
Nr.: <input type="text" name="houseno" value="{$lieferant.houseno}" size="5" {if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
157 |
</td>
|
|
|
158 |
</tr>
|
|
|
159 |
<tr>
|
|
|
160 |
<td class="links">PLZ / Ort</td>
|
|
|
161 |
<td class="rechts">
|
| 154 |
lars |
162 |
<input type="text" name="zip" size="5" value="{$lieferant.zip}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
|
|
163 |
<input type="text" size="40" name="city" value="{$lieferant.city}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
164 |
</td>
|
|
|
165 |
</tr>
|
|
|
166 |
<tr>
|
|
|
167 |
<td class="links">Land</td>
|
|
|
168 |
<td class="rechts">
|
|
|
169 |
{html_options options=$laender selected=$lieferant.land|default:"DE" name="land"}
|
|
|
170 |
</td>
|
|
|
171 |
</tr>
|
|
|
172 |
<tr>
|
|
|
173 |
<td class="links">Kundennummer</td>
|
|
|
174 |
<td class="rechts">
|
| 154 |
lars |
175 |
<input type="text" name="customer_no" value="{$lieferant.customer_no}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
176 |
</td>
|
|
|
177 |
</tr>
|
|
|
178 |
<tr>
|
|
|
179 |
<td class="links">Telefon</td>
|
|
|
180 |
<td class="rechts">
|
| 154 |
lars |
181 |
<input type="text" name="phone" value="{$lieferant.phone}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
182 |
</td>
|
|
|
183 |
</tr>
|
|
|
184 |
<tr>
|
|
|
185 |
<td class="links">Fax</td>
|
|
|
186 |
<td class="rechts">
|
|
|
187 |
<input type="text" name="fax" value="{$lieferant.fax}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
|
|
188 |
</td>
|
|
|
189 |
</tr>
|
|
|
190 |
<tr>
|
|
|
191 |
<td class="links">E-Mail</td>
|
|
|
192 |
<td class="rechts">
|
| 154 |
lars |
193 |
<input type="text" name="email" value="{$lieferant.email}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
194 |
</td>
|
|
|
195 |
</tr>
|
|
|
196 |
<tr>
|
|
|
197 |
<td class="links">Zahlungshinweis</td>
|
|
|
198 |
<td class="rechts">
|
| 154 |
lars |
199 |
<textarea rows="5" cols="60" name="payment_hint"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}>{$lieferant.payment_hint}</textarea>
|
| 143 |
lars |
200 |
</td>
|
|
|
201 |
</tr>
|
|
|
202 |
<tr>
|
|
|
203 |
<td class="links">Versandhinweis</td>
|
|
|
204 |
<td class="rechts">
|
| 154 |
lars |
205 |
<textarea rows="5" cols="60" name="shipping_hint"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}>{$lieferant.shipping_hint}</textarea>
|
| 143 |
lars |
206 |
</td>
|
|
|
207 |
</tr>
|
|
|
208 |
<tr>
|
|
|
209 |
<td class="links">Bemerkung</td>
|
|
|
210 |
<td class="rechts">
|
| 154 |
lars |
211 |
<textarea rows="5" cols="60" name="comment"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}>{$lieferant.comment}</textarea>
|
| 143 |
lars |
212 |
</td>
|
|
|
213 |
</tr>
|
|
|
214 |
<tr>
|
|
|
215 |
<td class="links">Kreditor Konto</td>
|
|
|
216 |
<td class="rechts">
|
| 154 |
lars |
217 |
<input type="text" name="accounts_payable" value="{$lieferant.accounts_payable}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
218 |
</td>
|
|
|
219 |
</tr>
|
|
|
220 |
<tr>
|
|
|
221 |
<td class="links">Sachkonto</td>
|
|
|
222 |
<td class="rechts">
|
| 154 |
lars |
223 |
<input type="text" name="ledger_account" value="{$lieferant.sachkonto}"{if !isset($user_rechte.bestellwesen.lieferanten.ledger_account)} disabled="disabled"{/if}/>
|
| 143 |
lars |
224 |
</td>
|
|
|
225 |
</tr>
|
|
|
226 |
<tr>
|
|
|
227 |
<td class="links">Kommissionstext</td>
|
|
|
228 |
<td class="rechts">
|
| 158 |
lars |
229 |
<input type="text" size="60" name="commission_text" value="{$lieferant.commission_text}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
230 |
</td>
|
|
|
231 |
</tr>
|
|
|
232 |
<tr>
|
|
|
233 |
<td class="links">Export-Skript</td>
|
|
|
234 |
<td class="rechts">
|
| 154 |
lars |
235 |
<input type="text" size="60" name="script" value="{$lieferant.script}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
236 |
</td>
|
|
|
237 |
</tr>
|
|
|
238 |
<tr>
|
|
|
239 |
<td class="links">Bestands-Skript</td>
|
|
|
240 |
<td class="rechts">
|
| 154 |
lars |
241 |
<input type="text" size="60" name="stock_script" value="{$lieferant.stock_script}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
242 |
</td>
|
|
|
243 |
</tr>
|
|
|
244 |
<tr>
|
|
|
245 |
<td class="links">Intervall (Stunden)</td>
|
|
|
246 |
<td class="rechts">
|
| 154 |
lars |
247 |
<input type="text" size="4" name="interval" value="{$lieferant.interval}"{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}/>
|
| 143 |
lars |
248 |
</td>
|
|
|
249 |
</tr>
|
|
|
250 |
<tr>
|
|
|
251 |
<td class="links">Skonto-Satz (%)</td>
|
|
|
252 |
<td class="rechts">
|
|
|
253 |
<input type="number" min="0" max="99" name="skonto" value="{$lieferant.skonto}" {if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if} />
|
|
|
254 |
</td>
|
|
|
255 |
</tr>
|
|
|
256 |
<tr>
|
|
|
257 |
<td class="links">Zahlungsziel (Tage)</td>
|
|
|
258 |
<td class="rechts">
|
|
|
259 |
<input type="number" min="0" max="99" name="tage" value="{$lieferant.tage}" {if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if} />
|
|
|
260 |
</td>
|
|
|
261 |
</tr>
|
|
|
262 |
<tr>
|
|
|
263 |
<td class="links">Skonto-Zahlungsziel (Tage)</td>
|
|
|
264 |
<td class="rechts">
|
|
|
265 |
<input type="number" min="0" max="99" name="tage_skonto" value="{$lieferant.tage_skonto}" {if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if} />
|
|
|
266 |
</td>
|
|
|
267 |
</tr>
|
|
|
268 |
{if isset($web_rechte.bestellwesen.lieferanten.abwKalkulation)}
|
| 140 |
lars |
269 |
<tr>
|
| 143 |
lars |
270 |
<td class="links">abweichende Preiskalkulation?</td>
|
| 140 |
lars |
271 |
<td class="rechts">
|
| 143 |
lars |
272 |
<input type="hidden" name="abwKalkulation" value="{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)}{$lieferant.abwKalkulation}{else}0{/if}" />
|
|
|
273 |
{if isset($user_rechte.bestellwesen.lieferanten.bearbeiten)}
|
|
|
274 |
<input type="checkbox" name="abwKalkulation" value="1" {if $lieferant.abwKalkulation==1}checked="checked"{/if} />
|
|
|
275 |
{/if}
|
| 140 |
lars |
276 |
</td>
|
|
|
277 |
</tr>
|
| 143 |
lars |
278 |
{/if}
|
|
|
279 |
{if isset($web_rechte.bestellwesen.lieferanten.mail_order)}
|
| 140 |
lars |
280 |
<tr>
|
| 143 |
lars |
281 |
<td class="links">Mailorder aktivieren:</td>
|
| 140 |
lars |
282 |
<td class="rechts">
|
| 143 |
lars |
283 |
<input type="hidden" name="mail_order" value="{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)}{$lieferant.mail_order}{else}0{/if}" />
|
|
|
284 |
{if isset($user_rechte.bestellwesen.lieferanten.bearbeiten)}
|
|
|
285 |
<input type="checkbox" name="mail_order" value="1" {if $lieferant.mail_order==1}checked="checked"{/if} />
|
|
|
286 |
{/if}
|
| 140 |
lars |
287 |
</td>
|
|
|
288 |
</tr>
|
| 143 |
lars |
289 |
<tr id="mail_order_betreff_row">
|
|
|
290 |
<td class="links">Betreff Template</td>
|
| 140 |
lars |
291 |
<td class="rechts">
|
| 143 |
lars |
292 |
<select name="mail_order_betreff" {if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}>
|
|
|
293 |
{html_options options=$subjects selected=$lieferant.mail_order_betreff}
|
|
|
294 |
</select>
|
| 140 |
lars |
295 |
</td>
|
|
|
296 |
</tr>
|
| 143 |
lars |
297 |
<tr id="mail_order_text_row">
|
|
|
298 |
<td class="links">Mailtext Template</td>
|
| 140 |
lars |
299 |
<td class="rechts">
|
| 143 |
lars |
300 |
<select name="mail_order_text" {if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)} disabled="disabled"{/if}>
|
|
|
301 |
{html_options options=$bodies selected=$lieferant.mail_order_text}
|
|
|
302 |
</select>
|
| 140 |
lars |
303 |
</td>
|
|
|
304 |
</tr>
|
|
|
305 |
<tr>
|
| 143 |
lars |
306 |
<td class="links">Mailorder mit Lieferschein</td>
|
| 140 |
lars |
307 |
<td class="rechts">
|
| 143 |
lars |
308 |
<input type="hidden" name="lieferschein" value="{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)}{$lieferant.lieferschein}{else}0{/if}" />
|
| 140 |
lars |
309 |
{if isset($user_rechte.bestellwesen.lieferanten.bearbeiten)}
|
| 143 |
lars |
310 |
<input type="checkbox" name="lieferschein" value="1" {if $lieferant.lieferschein==1}checked="checked"{/if} />
|
| 140 |
lars |
311 |
{/if}
|
|
|
312 |
</td>
|
|
|
313 |
</tr>
|
| 143 |
lars |
314 |
{/if}
|
| 140 |
lars |
315 |
|
| 143 |
lars |
316 |
<tr>
|
|
|
317 |
<td class="links">im Shop anzeigen</td>
|
|
|
318 |
<td class="rechts">
|
|
|
319 |
<input type="hidden" name="shopanzeige" value="0" />
|
|
|
320 |
{if isset($user_rechte.bestellwesen.lieferanten.bearbeiten)}
|
|
|
321 |
<input type="checkbox" name="shopanzeige" value="1" {if $lieferant.shopanzeige==1}checked="checked"{/if} />
|
|
|
322 |
{/if}
|
|
|
323 |
</td>
|
|
|
324 |
</tr>
|
| 140 |
lars |
325 |
|
| 143 |
lars |
326 |
<tr class="links" align="center">
|
|
|
327 |
<td colspan="2">
|
| 163 |
lars |
328 |
{if !isset($user_rechte.bestellwesen.lieferanten.bearbeiten)}
|
| 143 |
lars |
329 |
Sie haben leider nicht das Recht die Werte zu bearbeiten!
|
|
|
330 |
{/if}
|
|
|
331 |
</td>
|
|
|
332 |
</tr>
|
|
|
333 |
</table>
|
|
|
334 |
</form>
|
|
|
335 |
|
| 154 |
lars |
336 |
{if $lieferant.id}
|
| 143 |
lars |
337 |
<div id="reiter">
|
|
|
338 |
<ul>
|
|
|
339 |
<li>
|
| 192 |
lars |
340 |
<a href="#Lager" id="LagerLink">Lager</a>
|
| 143 |
lars |
341 |
</li>
|
|
|
342 |
{if $buchungen}
|
| 140 |
lars |
343 |
<li>
|
| 143 |
lars |
344 |
<a href="#Buchungen">Buchungen</a>
|
| 140 |
lars |
345 |
</li>
|
| 143 |
lars |
346 |
{/if}
|
|
|
347 |
<li>
|
|
|
348 |
<a href="lieferantenbestellungen.php?filter[lieferant]=-1_{$lieferant.id}&filter[status]=1">Bestellungen</a>
|
|
|
349 |
</li>
|
|
|
350 |
<li>
|
|
|
351 |
<a id="#dokumentenListe" href="dokumente_lieferant.php?lieferrant={$lieferant.id}" title="dokumentenListe">Dokumente</a>
|
|
|
352 |
</li>
|
|
|
353 |
<li>
|
|
|
354 |
<a href="#artikelliste">Artikel</a>
|
|
|
355 |
</li>
|
|
|
356 |
{if isset($user_rechte.bestellwesen.lieferanten.bankverbindungen)}
|
| 140 |
lars |
357 |
<li>
|
| 143 |
lars |
358 |
<a href="bankverbindungen.php?lieferant={$lieferant.id}&mode=list" title="bankverbindungen">Bankverbindungen</a>
|
| 140 |
lars |
359 |
</li>
|
| 143 |
lars |
360 |
{/if}
|
|
|
361 |
{if $lieferant.abwKalkulation}
|
| 140 |
lars |
362 |
<li>
|
| 143 |
lars |
363 |
<a id="kalk" href="../toolbox/edit_preiskalkulation.php?lId={$lieferant.id}">Preiskalkulation</a>
|
| 140 |
lars |
364 |
</li>
|
|
|
365 |
{/if}
|
| 143 |
lars |
366 |
<li>
|
|
|
367 |
<a href="#bestand">Bestandsimport</a>
|
|
|
368 |
</li>
|
| 185 |
lars |
369 |
{if $vk}
|
|
|
370 |
<li>
|
|
|
371 |
<a href="#versandkosten" id="versandkostenLink">Versandkosten</a>
|
|
|
372 |
</li>
|
|
|
373 |
{/if}
|
| 143 |
lars |
374 |
</ul>
|
|
|
375 |
{if $buchungen}
|
|
|
376 |
<div id="Buchungen">
|
|
|
377 |
<table class="keinRand rechts" width="100%" cellspacing="0" cellpadding="3">
|
|
|
378 |
<td class="headline">Datum</td>
|
|
|
379 |
<td class="headline" style="text-align:center;">Bezeichnung</td>
|
|
|
380 |
<td class="headline" style="text-align:center;">Menge</th>
|
|
|
381 |
<td class="headline" style="text-align:right;">Preis/Stü;ck</td>
|
|
|
382 |
<td class="headline" style="text-align:right;">Preis</td>
|
|
|
383 |
{foreach $buchungen as $buchung}
|
|
|
384 |
{cycle values='gerade, ' assign='class'}
|
|
|
385 |
<tr class="rechts {$class}">
|
|
|
386 |
<td>{$buchung.eintragsdatum}</td>
|
|
|
387 |
<td><a href="../Warenwirtschaft/lagerwirtschaft.php?action=artikel&id={$buchung.artikel}">{$buchung.kurzbezeichnung}</a></td>
|
|
|
388 |
<td style="text-align:center;">{$buchung.menge}</td>
|
|
|
389 |
<td style="text-align:right;">{$buchung.warenwert_stueck} €</td>
|
|
|
390 |
<td style="text-align:right;">{$buchung.warenwert_stueck * $buchung.menge|number_format:2} €</td>
|
|
|
391 |
</tr>
|
|
|
392 |
{/foreach}
|
|
|
393 |
</table>
|
| 140 |
lars |
394 |
</div>
|
| 143 |
lars |
395 |
{/if}
|
|
|
396 |
<div id="bestand">
|
|
|
397 |
<form id="bestand_upload" method="post">
|
|
|
398 |
<input type="file" name="bestandsDatei" id="bestandsDatei" />
|
|
|
399 |
<input type="hidden" name="id" value="{$lieferant.id}" />
|
|
|
400 |
<input type="hidden" name="mode" value="upload" />
|
|
|
401 |
<input type="submit" value="hochladen" id="hochladen" />
|
|
|
402 |
<button id="editConfig_{$lieferant.id}" class="editConfig">Konfiguration ändern</button>
|
|
|
403 |
</form>
|
|
|
404 |
<br/>
|
|
|
405 |
{if $letztePreisListe}
|
|
|
406 |
<button id="einlesen">{$letztePreisListe.document|basename} einlesen</button>
|
|
|
407 |
{/if}
|
|
|
408 |
</div>
|
| 188 |
lars |
409 |
<div id="Lager"></div>
|
| 143 |
lars |
410 |
<div id="artikelListe">
|
|
|
411 |
{*include file="artikel_lieferant.tpl"*}
|
| 140 |
lars |
412 |
</div>
|
| 185 |
lars |
413 |
{if $vk}
|
|
|
414 |
<div id="versandkosten"></div>
|
|
|
415 |
{/if}
|
| 143 |
lars |
416 |
</div>
|
|
|
417 |
<div id="save_logistiker"></div>
|
|
|
418 |
<script>
|
|
|
419 |
$(function(){
|
|
|
420 |
$('#bestellungen').click(function(){
|
|
|
421 |
$("bestellungen").load("lieferantenbestellungen.php?filter[lieferant]=-1_{$lieferant.id}");
|
|
|
422 |
});
|
|
|
423 |
})
|
|
|
424 |
</script>
|
|
|
425 |
<div id="bestandUploadMsg" title="Ergebnis"></div>
|
|
|
426 |
<div id="editConfigDlg" title="Konfiguration ändern"></div>
|
| 154 |
lars |
427 |
{/if}
|
| 143 |
lars |
428 |
<!-- $Id: supplier.tpl 317 2023-08-12 19:58:02Z lars $ END -->
|