WIP Contract/Billing/Invoice 2024-06-28
This commit is contained in:
@@ -33,8 +33,20 @@ $pagination_entity_name = "Billingrecords";
|
||||
<div class="row">
|
||||
|
||||
<div class="col-1">
|
||||
<label class="form-label" for="filter_owner">Kundennummer</label>
|
||||
<input type="text" class="form-control" name="filter[customer_number]" id="filter_street" value="<?=(array_key_exists("customer_number", $filter)) ? $filter['customer_number'] : ""?>"/>
|
||||
<label class="form-label" for="filter_customer_number">Kundennummer</label>
|
||||
<input type="text" class="form-control" name="filter[customer_number]" id="filter_customer_number" value="<?=(array_key_exists("customer_number", $filter)) ? $filter['customer_number'] : ""?>"/>
|
||||
</div>
|
||||
<div class="col-1">
|
||||
<label class="form-label" for="filter_customer">Kunde</label>
|
||||
<input type="text" class="form-control" name="filter[customer]" id="filter_customer" value="<?=(array_key_exists("customer", $filter)) ? $filter['customer'] : ""?>"/>
|
||||
</div>
|
||||
<div class="col-1">
|
||||
<label class="form-label" for="filter_address">Adresse</label>
|
||||
<input type="text" class="form-control" name="filter[address]" id="filter_address" value="<?=(array_key_exists("address", $filter)) ? $filter['address'] : ""?>"/>
|
||||
</div>
|
||||
<div class="col-1">
|
||||
<label class="form-label" for="filter_product">Produkt</label>
|
||||
<input type="text" class="form-control" name="filter[product]" id="filter_product" value="<?=(array_key_exists("product", $filter)) ? $filter['product'] : ""?>"/>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label class="form-label" for="filter_show_credit">Gutschriften</label>
|
||||
@@ -74,7 +86,7 @@ $pagination_entity_name = "Billingrecords";
|
||||
</div>
|
||||
<div class="float-right">
|
||||
<a class="btn btn-outline-primary mb-2" href="<?=self::getUrl("Billing", "importContracts")?>">
|
||||
<i class="fas fa-fw fa-file-import"></i> Verrechenbare Contracts importieren
|
||||
<i class="fas fa-fw fa-file-import"></i> Aktuell verrechenbare Contracts neu importieren
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -92,23 +104,24 @@ $pagination_entity_name = "Billingrecords";
|
||||
<th>Vertragsinhaber</th>
|
||||
<th>Rechnungsadresse</th>
|
||||
<th>Kundennummer</th>
|
||||
<th>Einzug</th>
|
||||
<th>Zustellung</th>
|
||||
<th>Bankdaten</th>
|
||||
<th>Produkt</th>
|
||||
<th>Anzahl</th>
|
||||
<th>Preis</th>
|
||||
<th>Preis Setup</th>
|
||||
<th>Zahlung</th>
|
||||
<th>Zustellung</th>
|
||||
<th>Bankdaten</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
<?php foreach($billings as $billing): ?>
|
||||
<tr>
|
||||
<td><a href="<?=self::getUrl("Contract", "view", ["contract_id" => $billing->contract_id])?>" target="_blank"><?=$billing->contract_id?></a></td>
|
||||
<td><?=$billing->start_date?> - <?=$billing->end_date?></td>
|
||||
<td><?=$billing->start_date?> -<br /><?=$billing->end_date?></td>
|
||||
<td>
|
||||
<?=$billing->contract->owner->getCompanyOrName()?><br />
|
||||
<?=$billing->contract->owner->street?><br />
|
||||
<?=$billing->contract->owner->zip?> <?=$billing->contract->owner->city?>
|
||||
<?=$billing->contract->owner->zip?> <?=$billing->contract->owner->city?><br />
|
||||
<?=$billing->contract->owner->country->name?>
|
||||
</td>
|
||||
<td>
|
||||
@@ -119,6 +132,17 @@ $pagination_entity_name = "Billingrecords";
|
||||
<?=$billing->country?>
|
||||
</td>
|
||||
<td><?=$billing->customer_number?></td>
|
||||
<td>
|
||||
<?=$billing->product_name?><?=($billing->matchcode) ? " (".$billing->matchcode.")" : ""?>
|
||||
<?php if($billing->product_info): ?>
|
||||
<div class="pl-2">
|
||||
<?=$billing->product_info?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><?=($billing->amount / (int)$billing->amount > 1) ? number_format($billing->amount,3,",",".") : (int)$billing->amount?></td>
|
||||
<td class="<?=($billing->price < 0) ? "text-danger" : ""?>">€ <?=number_format($billing->price,4,",",".")?></td>
|
||||
<td class="<?=($billing->price_setup < 0) ? "text-danger" : ""?>">€ <?=number_format($billing->price_setup,4,",",".")?></td>
|
||||
<td><?=($billing->billing_type == "sepa") ? "SEPA" : ""?></td>
|
||||
<td><?=($billing->billing_delivery == "email") ? "Email" : "Papier"?></td>
|
||||
<td>
|
||||
@@ -129,17 +153,7 @@ $pagination_entity_name = "Billingrecords";
|
||||
BIC: <?=$billing->bank_account_bic?><br />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?=$billing->product_name?><?=($billing->matchcode) ? " (".$billing->matchcode.")" : ""?>
|
||||
<?php if($billing->product_info): ?>
|
||||
<div class="pl-2">
|
||||
<?=$billing->product_info?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><?=number_format($billing->amount,3,",",".")?></td>
|
||||
<td>€ <?=number_format($billing->price,4,",",".")?></td>
|
||||
<td>€ <?=number_format($billing->price_setup,4,",",".")?></td>
|
||||
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
Reference in New Issue
Block a user