Change footer styling
This commit is contained in:
parent
7267ae79be
commit
1fe0104815
4 changed files with 56 additions and 25 deletions
|
|
@ -16,3 +16,12 @@ General default settings which should be set
|
|||
|
||||
- User profile (company contact information), such as mail, address, phone and mail
|
||||
- System settings in general and invoice: Upload company logo for login and invoice logo
|
||||
(WebP image format currently not supported https://github.com/InvoicePlane/InvoicePlane/issues/1189 ).
|
||||
- System settings - invoice: Enable embed ZUGFeRD XML into PDF (e-invoice)
|
||||
- System settings - general, currency settings
|
||||
- Change symbol to: €
|
||||
- Symbol after sum with space
|
||||
- Currency code EUR
|
||||
- Number format to European format
|
||||
- System settings - general, time format: j.n.Y
|
||||
- Product units: m², Std.
|
||||
|
|
|
|||
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -2,18 +2,19 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1736100068,
|
||||
"narHash": "sha256-wtipqLxpphkpxTGJvVuej+msDzABUfWm5TeO31d00MY=",
|
||||
"owner": "onny",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "68a0940f753446728b57c74db999ab08421e9d46",
|
||||
"type": "github"
|
||||
"lastModified": 1739834344,
|
||||
"narHash": "sha256-PUAcU3YlKNFYrBBHkqshO4wRfMunzhMTEIH1dyhjTtk=",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"rev": "f0295845e58ada369322524631821b01c0db13a7",
|
||||
"shallow": true,
|
||||
"type": "git",
|
||||
"url": "https://github.com/NixOS/nixpkgs"
|
||||
},
|
||||
"original": {
|
||||
"owner": "onny",
|
||||
"ref": "invoiceplane-https",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
"ref": "nixpkgs-unstable",
|
||||
"shallow": true,
|
||||
"type": "git",
|
||||
"url": "https://github.com/NixOS/nixpkgs"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
|
|
|
|||
11
flake.nix
11
flake.nix
|
|
@ -1,8 +1,9 @@
|
|||
{
|
||||
description = "Invoiceplane invoice template development shell";
|
||||
|
||||
inputs.nixpkgs.url = "git+https://github.com/NixOS/nixpkgs?shallow=1&ref=nixpkgs-unstable";
|
||||
#inputs.nixpkgs.url = "nixpkgs/nixos-24.11";
|
||||
inputs.nixpkgs.url = "github:onny/nixpkgs/invoiceplane-https";
|
||||
#inputs.nixpkgs.url = "github:onny/nixpkgs/invoiceplane-https";
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
let
|
||||
|
|
@ -41,11 +42,15 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."localhost".hostName = "http://localhost";
|
||||
# FIXME
|
||||
# https://github.com/NixOS/nixpkgs/pull/309908
|
||||
services.caddy.virtualHosts."http://localhost".logFormat = lib.mkForce ''
|
||||
output discard
|
||||
'';
|
||||
|
||||
nixos-shell.mounts.extraMounts = {
|
||||
"/var/lib/invoiceplane/localhost/pdf" = {
|
||||
target = ./.;
|
||||
target = /home/onny/projects/invoiceplane-heinrichmalerbetrieb;
|
||||
cache = "none";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,6 +17,23 @@
|
|||
.company {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.invoice-details table {
|
||||
width: 200px;
|
||||
}
|
||||
.client small.sender {
|
||||
color: #408236;
|
||||
}
|
||||
table.footer th, table.footer td {
|
||||
vertical-align: top;
|
||||
color: #408236;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
table.footer td.first-child {
|
||||
width: 180px;
|
||||
}
|
||||
hr.footer {
|
||||
color: #408236;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -26,8 +43,8 @@
|
|||
<?php echo invoice_logo_pdf(); ?>
|
||||
</div>
|
||||
|
||||
<div id="client">
|
||||
<b><?php echo lang('bill_to'); ?></b>:
|
||||
<div id="client" class="client">
|
||||
<small class="sender">Heinrich GmbH • Blumenstraße 16-18 • 75233 Tiefenbronn</small>
|
||||
<div>
|
||||
<?php _htmlsc(format_client($invoice)); ?>
|
||||
</div>
|
||||
|
|
@ -113,18 +130,17 @@
|
|||
|
||||
<div class="invoice-details clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Rechnung Nr.:</td>
|
||||
<td><?php echo $invoice->invoice_number; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2><small>(Bitte bei Zahlungen immer angeben.)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo trans('invoice_date') . ':'; ?></td>
|
||||
<td><?php echo date_from_mysql($invoice->invoice_date_created, true); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo trans('due_date') . ': '; ?></td>
|
||||
<td><?php echo date_from_mysql($invoice->invoice_date_due, true); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo trans('amount_due') . ': '; ?></td>
|
||||
<td><?php echo format_currency($invoice->invoice_balance); ?></td>
|
||||
</tr>
|
||||
<?php if ($payment_method): ?>
|
||||
<tr>
|
||||
<td><?php echo trans('payment_method') . ': '; ?></td>
|
||||
|
|
@ -146,7 +162,7 @@
|
|||
<?php if ($show_item_discounts) : ?>
|
||||
<th class="item-discount text-right"><?php _trans('discount'); ?></th>
|
||||
<?php endif; ?>
|
||||
<th class="item-total text-right"><?php _trans('total'); ?></th>
|
||||
<th class="item-total text-right">Gesamt</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -251,7 +267,7 @@
|
|||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<footer class="footer">
|
||||
<?php if ($invoice->invoice_terms) : ?>
|
||||
<div class="notes">
|
||||
<b><?php _trans('terms'); ?></b><br/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue