update footer page numbering

This commit is contained in:
Jonas Heinrich 2025-08-21 15:24:32 +02:00
parent 4e210c1698
commit eacbac2376
2 changed files with 13 additions and 4 deletions

View file

@ -1,9 +1,7 @@
{
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 = "nixpkgs/nixos-25.05";
outputs = { self, nixpkgs, ... }@inputs:
let
@ -22,6 +20,13 @@
overlays = [
(self: super: {
invoiceplane = super.invoiceplane.overrideAttrs (oldAttrs: rec {
# Add new page numbers support
patches = oldAttrs.patches ++ [
(fetchpatch {
url = "https://github.com/InvoicePlane/InvoicePlane/commit/bfcf81266399575e90b83612d59b457d76e3538e.patch";
hash = "";
})
];
installPhase = oldAttrs.installPhase + ''
rm -r $out/application/views/invoice_templates/pdf
ln -sf /var/lib/invoiceplane/localhost/pdf $out/application/views/invoice_templates/pdf
@ -45,7 +50,7 @@
};
};
system.stateVersion = "24.11";
system.stateVersion = "25.05";
services.getty.autologinUser = "root";
documentation = {
info.enable = false;

View file

@ -311,5 +311,9 @@
Bitte überweisen Sie den Rechnungsbetrag unter Angabe der Rechnungsnummer auf unser Geschäftskonto. Vielen Dank.<br><br>
Wir weisen Sie darauf hin, dass Sie nach § 14b Abs. 1 S. 5 UStG verpflichtet sind, diese Rechnung zwei Jahre lang aufzubewahren.<br><br>
</div>
<sethtmlpagefooter name="defaultFooter" value="on" />
<sethtmlpagefooter name="footerWithPageNumbers" value="on" />
</body>
</html>