95 lines
4.7 KiB
PHP
95 lines
4.7 KiB
PHP
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/header.php"); ?>
|
|
|
|
<!-- start page title -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="page-title-box">
|
|
<div class="page-title-right">
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);"><?=MFAPPNAME_SLUG?></a></li>
|
|
<li class="breadcrumb-item"><a href="<?=self::getUrl("Address")?>">Personen & Firmen</a></li>
|
|
<li class="breadcrumb-item"><a href="<?=self::getUrl("Address", "view", ["address_id" => $address->id])?>"><?=$address->getCompanyOrName()?> [<?=$address->customer_number?>]</a></li>
|
|
<li class="breadcrumb-item active"><?=$address->getCompanyOrName()?> [<?=$address->customer_number?>]</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Personen & Firmen</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<a href="<?=self::getUrl("Address","view", ["id" => $address->id])?>" class="btn btn-secondary mr-1"><i class="fas fa-list"></i> Zurück zur Addresse</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-12">
|
|
|
|
<div class="card border-top-purple">
|
|
<div class="card-body">
|
|
<h3 class="text-center mb-3">Rechnungen</h3>
|
|
|
|
<div><?=$address->getCompanyOrName()?></div>
|
|
<div><?=$address->street?></div>
|
|
<div><?=$address->zip?> <?=$address->city?></div>
|
|
<div><?=$address->country->name?></div>
|
|
|
|
<table class="table table-sm table-striped">
|
|
<tr>
|
|
<th>Typ</th>
|
|
<th>Rechnungsnummer</th>
|
|
<th>Rechnungsdatum</th>
|
|
<th>Betrag Netto</th>
|
|
<th>Betrag Brutto</th>
|
|
<th>Zahlungsart</th>
|
|
<th>Versand</th>
|
|
</tr>
|
|
<?php foreach($invoices as $invoice): ?>
|
|
<tr>
|
|
<td>
|
|
<ul>
|
|
<?php if($invoice->owner_id == $address->id):?>
|
|
<li>Vertragsinhaber</li>
|
|
<?php endif; ?>
|
|
<?php if($invoice->billingaddress_id == $address->id):?>
|
|
<li>Rechnungsempfänger</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</td>
|
|
<td><a href="<?=self::getUrl("Invoice", "downloadInvoice", ["id" => $invoice->id])?>"><i class="fas fa-download fa-fw"></i> <?=$invoice->invoice_number?></a></td>
|
|
<td><?=date("d.m.Y", $invoice->invoice_date)?></td>
|
|
<td class="<?=($invoice->total < 0) ? "text-danger" : ""?>">€ <?=number_format($invoice->total, 2, ",", ".")?></td>
|
|
<td class="<?=($invoice->total_gross < 0) ? "text-danger" : ""?>">€ <?=number_format($invoice->total_gross, 2, ",", ".")?></td>
|
|
<td><?=($invoices->billing_type == "sepa") ? "Einzug" : "Einzahlung" ?></td>
|
|
<td><?=($invoices->billing_delivery == "email") ? "Email (".$invoice->email.")" : "Postversand" ?></td>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<a href="<?=self::getUrl("Address","view", ["id" => $address->id])?>" class="btn btn-secondary mr-1"><i class="fas fa-list"></i> Zurück zur Addresse</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|