| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/sc/ |
Upload File : |
<?php
/* Smarty version 3.1.30, created on 2026-06-27 05:56:50
from "/var/www/clients/client1/web17/web/includes/templates/templates/invoice/edit.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.30',
'unifunc' => 'content_6a3f4a028957f1_36297397',
'has_nocache_code' => false,
'file_dependency' =>
array (
'3c3fe57cae24fe0776c56acfdd625340379dd365' =>
array (
0 => '/var/www/clients/client1/web17/web/includes/templates/templates/invoice/edit.tpl',
1 => 1780694983,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_6a3f4a028957f1_36297397 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('products', $_smarty_tpl->tpl_vars['data']->value->product());
?>
<?php if (!empty($_smarty_tpl->tpl_vars['page']->value->query['http']['post'])) {?>
<pre></pre>
<?php echo $_smarty_tpl->tpl_vars['invoice']->value->update($_smarty_tpl->tpl_vars['page']->value->query['http']['get']['invoice_id']);?>
<?php $_smarty_tpl->_assignInScope('invoice', $_smarty_tpl->tpl_vars['data']->value->invoice($_smarty_tpl->tpl_vars['page']->value->query['http']['get']['invoice_id']));
?>
<div class="alert alert-success">
Änderungen wurden erfolgreich übernommen!
<div style="margin-top:10px;">
<a class="btn btn-success btn-sm" href="<?php echo @constant('SITE_URL');?>
/booking/view/?invoice_id=<?php echo $_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_id;?>
">zur Buchungsübersicht</a>
</div>
</div>
<?php } elseif (isset($_smarty_tpl->tpl_vars['page']->value->query['http']['get']['cancel_token']) && isset($_smarty_tpl->tpl_vars['page']->value->query['http']['get']['invoice_id'])) {?>
<?php echo $_smarty_tpl->tpl_vars['invoice']->value->cancelInvoice($_smarty_tpl->tpl_vars['page']->value->query['http']['get']['invoice_id']);?>
<?php $_smarty_tpl->_assignInScope('invoice', $_smarty_tpl->tpl_vars['data']->value->invoice($_smarty_tpl->tpl_vars['page']->value->query['http']['get']['invoice_id']));
?>
<?php if ($_smarty_tpl->tpl_vars['page']->value->query['http']['get']['cancel_token'] == (md5($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_no))) {?>
<div class="alert alert-warning">
Rechnung <?php echo $_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_no;?>
erfolgreich storniert!
<div style="margin-top:10px;">
<a class="btn btn-warning btn-sm" href="<?php echo @constant('SITE_URL');?>
/booking/view/?invoice_id=<?php echo $_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_id;?>
">zur Buchungsübersicht</a>
</div>
</div>
<?php }
} else { ?>
<?php $_smarty_tpl->_assignInScope('invoice', $_smarty_tpl->tpl_vars['data']->value->invoice($_smarty_tpl->tpl_vars['page']->value->query['http']['get']['invoice_id']));
}?>
<div class="row">
<div class="col-sm-12">
<h1 class="h2">Rechnung <?php echo $_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_no;?>
</h1>
</div>
<div class="col-md-12">
<hr style="margin-bottom:30px;margin-top:0;" />
</div>
<div class="col-sm-12">
<form method="POST" action="">
<div class="card" style="margin-bottom:25px;">
<div class="card-body">
<div class="row">
<div class="col-md-6">
<h6>Zahlungsart</h6>
<select name="pacim_invoice[invoice_payment]">
<option value="0"<?php if ($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_payment == "0") {?> selected<?php }?>>-</option>
<option value="1"<?php if ($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_payment == "1") {?> selected<?php }?>>Überweisung</option>
<option value="2"<?php if ($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_payment == "2") {?> selected<?php }?>>EC-Karte</option>
<option value="3"<?php if ($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_payment == "3") {?> selected<?php }?>>Barzahlung</option>
</select>
<input type="hidden" name="pacim_invoice[invoice_paydate]" value="<?php echo date('Y-m-d H:i:s');?>
" />
</div>
<div class="col-md-6">
<h6>Rabatt</h6>
<select name="pacim_invoice_pos[invoice_pos_discount_type]">
<option value="0"<?php if ($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_coupon == "0") {?> selected<?php }?>>-</option>
<option value="2"<?php if ($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_coupon == "2") {?> selected<?php }?>>10% Frühbucherrabatt</option>
<option value="1"<?php if ($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_coupon == "1") {?> selected<?php }?>>5 Euro Gutschein</option>
</select>
</div>
</div>
<div class="row" style="margin-top:25px;display:none;">
<div class="col-md-12">
<h4>Produktübersicht</h4>
<div class="table-responsive"><table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Dienstleistung</th>
<th scope="col">Anzahl</th>
<th scope="col">Einzelpreis in EUR</th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['invoice']->value->products, 'product', false, 'key');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['product']->value) {
?>
<tr>
<th scope="row"><?php echo $_smarty_tpl->tpl_vars['key']->value+1;?>
</th>
<td>
<select name="pacim_invoice_pos[invoice_pos_title][]">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['products']->value, 'service', false, 'servicekey');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['servicekey']->value => $_smarty_tpl->tpl_vars['service']->value) {
?>
<option<?php if (($_smarty_tpl->tpl_vars['product']->value->product_id == $_smarty_tpl->tpl_vars['service']->value->product_id)) {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['service']->value->product_title;?>
</option>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</select>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['product']->value->invoice_pos_quantity;?>
</td>
<td><input type="text" name="pacim_invoice_pos[invoice_pos_price]" value="<?php echo number_format(($_smarty_tpl->tpl_vars['product']->value->invoice_pos_price*1.19),2,".",",");?>
" style="margin:0;" /></td>
</tr>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</tbody>
</table></div>
</div>
</div>
<button class="btn btn-primary" type="submit">Speichern</button>
<a class="btn btn-danger" href="<?php echo @constant('SITE_URL');?>
/invoice/edit/?invoice_id=<?php echo $_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_id;?>
&cancel_token=<?php echo md5($_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_no);?>
" style="float:right;" onclick="return confirm('Soll die Rechnung <?php echo $_smarty_tpl->tpl_vars['invoice']->value->invoice->invoice_no;?>
wirklich storniert werden?');"">Buchung stornieren</a>
</div>
</div>
</form>
</div>
</div>
<?php }
}