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