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
|
- 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
|
- 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": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736100068,
|
"lastModified": 1739834344,
|
||||||
"narHash": "sha256-wtipqLxpphkpxTGJvVuej+msDzABUfWm5TeO31d00MY=",
|
"narHash": "sha256-PUAcU3YlKNFYrBBHkqshO4wRfMunzhMTEIH1dyhjTtk=",
|
||||||
"owner": "onny",
|
"ref": "nixpkgs-unstable",
|
||||||
"repo": "nixpkgs",
|
"rev": "f0295845e58ada369322524631821b01c0db13a7",
|
||||||
"rev": "68a0940f753446728b57c74db999ab08421e9d46",
|
"shallow": true,
|
||||||
"type": "github"
|
"type": "git",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "onny",
|
"ref": "nixpkgs-unstable",
|
||||||
"ref": "invoiceplane-https",
|
"shallow": true,
|
||||||
"repo": "nixpkgs",
|
"type": "git",
|
||||||
"type": "github"
|
"url": "https://github.com/NixOS/nixpkgs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
||||||
11
flake.nix
11
flake.nix
|
|
@ -1,8 +1,9 @@
|
||||||
{
|
{
|
||||||
description = "Invoiceplane invoice template development shell";
|
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 = "nixpkgs/nixos-24.11";
|
||||||
inputs.nixpkgs.url = "github:onny/nixpkgs/invoiceplane-https";
|
#inputs.nixpkgs.url = "github:onny/nixpkgs/invoiceplane-https";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs:
|
outputs = { self, nixpkgs, ... }@inputs:
|
||||||
let
|
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 = {
|
nixos-shell.mounts.extraMounts = {
|
||||||
"/var/lib/invoiceplane/localhost/pdf" = {
|
"/var/lib/invoiceplane/localhost/pdf" = {
|
||||||
target = ./.;
|
target = /home/onny/projects/invoiceplane-heinrichmalerbetrieb;
|
||||||
cache = "none";
|
cache = "none";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,23 @@
|
||||||
.company {
|
.company {
|
||||||
font-size: 0.8rem;
|
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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -26,8 +43,8 @@
|
||||||
<?php echo invoice_logo_pdf(); ?>
|
<?php echo invoice_logo_pdf(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="client">
|
<div id="client" class="client">
|
||||||
<b><?php echo lang('bill_to'); ?></b>:
|
<small class="sender">Heinrich GmbH • Blumenstraße 16-18 • 75233 Tiefenbronn</small>
|
||||||
<div>
|
<div>
|
||||||
<?php _htmlsc(format_client($invoice)); ?>
|
<?php _htmlsc(format_client($invoice)); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -113,18 +130,17 @@
|
||||||
|
|
||||||
<div class="invoice-details clearfix">
|
<div class="invoice-details clearfix">
|
||||||
<table>
|
<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>
|
<tr>
|
||||||
<td><?php echo trans('invoice_date') . ':'; ?></td>
|
<td><?php echo trans('invoice_date') . ':'; ?></td>
|
||||||
<td><?php echo date_from_mysql($invoice->invoice_date_created, true); ?></td>
|
<td><?php echo date_from_mysql($invoice->invoice_date_created, true); ?></td>
|
||||||
</tr>
|
</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): ?>
|
<?php if ($payment_method): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo trans('payment_method') . ': '; ?></td>
|
<td><?php echo trans('payment_method') . ': '; ?></td>
|
||||||
|
|
@ -146,7 +162,7 @@
|
||||||
<?php if ($show_item_discounts) : ?>
|
<?php if ($show_item_discounts) : ?>
|
||||||
<th class="item-discount text-right"><?php _trans('discount'); ?></th>
|
<th class="item-discount text-right"><?php _trans('discount'); ?></th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<th class="item-total text-right"><?php _trans('total'); ?></th>
|
<th class="item-total text-right">Gesamt</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -251,7 +267,7 @@
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer>
|
<footer class="footer">
|
||||||
<?php if ($invoice->invoice_terms) : ?>
|
<?php if ($invoice->invoice_terms) : ?>
|
||||||
<div class="notes">
|
<div class="notes">
|
||||||
<b><?php _trans('terms'); ?></b><br/>
|
<b><?php _trans('terms'); ?></b><br/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue