update invoice template
This commit is contained in:
parent
76010ab8af
commit
9ac724b207
1 changed files with 254 additions and 267 deletions
|
|
@ -1,10 +1,9 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php _trans('cldr'); ?>">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<title><?php _trans('invoice'); ?></title>
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/default/css/style.css">
|
||||
|
||||
<style>
|
||||
body {
|
||||
color: #555;
|
||||
|
|
@ -16,19 +15,15 @@
|
|||
border-spacing:0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.color-l { color: #aaa; }
|
||||
.color-n { color: #888; }
|
||||
.color-d { color: #555; }
|
||||
|
||||
.border-bottom-l {
|
||||
border-bottom-width: 1px;
|
||||
border-style: solid;
|
||||
|
|
@ -44,7 +39,6 @@
|
|||
border-style: solid;
|
||||
border-color: #555;
|
||||
}
|
||||
|
||||
.border-top-l {
|
||||
border-top-width: 1px;
|
||||
border-style: solid;
|
||||
|
|
@ -60,21 +54,17 @@
|
|||
border-style: solid;
|
||||
border-color: #555;
|
||||
}
|
||||
|
||||
.background-l { background-color: #eee; }
|
||||
|
||||
#header table {
|
||||
header table {
|
||||
width:100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.company-details,
|
||||
.company-details h3,
|
||||
.company-details p,
|
||||
.invoice-details {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.company-name,
|
||||
.invoice-id {
|
||||
color: #333 !important;
|
||||
|
|
@ -86,26 +76,21 @@
|
|||
.invoice-items th {
|
||||
padding: 0.2em 0.4em 0.4em;
|
||||
}
|
||||
|
||||
.seperator {
|
||||
height: 25px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.amount-summary {
|
||||
margin-right: -5px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<header>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:70%">
|
||||
<div style="display: block; height: 2cm"></div>
|
||||
|
||||
<div class="invoice-to">
|
||||
<p><b><?php echo lang('bill_to'); ?>:</b></p>
|
||||
<p><?php echo $custom_fields['client']['anrede'] ?><br/>
|
||||
|
|
@ -127,9 +112,7 @@
|
|||
<?php } ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="text-right" style="width:30%;">
|
||||
<div class="company-details">
|
||||
<?php echo invoice_logo_pdf(); ?>
|
||||
|
|
@ -193,7 +176,8 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
|
||||
<br/>
|
||||
<h2 class="invoice-id"><?php echo lang('invoice'); ?> Nr. <?php echo $invoice->invoice_number; ?></h2>
|
||||
|
|
@ -213,7 +197,6 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
$linecounter = 0;
|
||||
foreach ($items as $item) { ?>
|
||||
|
|
@ -235,7 +218,6 @@
|
|||
</tr>
|
||||
<?php $linecounter++; ?>
|
||||
<?php } ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br/>
|
||||
|
|
@ -271,12 +253,17 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php if ($invoice->invoice_terms) { ?>
|
||||
<h4><?php echo lang('terms'); ?></h4>
|
||||
<p><?php echo nl2br($invoice->invoice_terms); ?></p>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<?php if ($invoice->invoice_terms) : ?>
|
||||
<div class="notes">
|
||||
<b><?php _trans('terms'); ?></b><br/>
|
||||
<?php echo nl2br(htmlsc($invoice->invoice_terms)); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue