forked from momo/invoiceplane-template
Compare commits
8 commits
79b1fdc7af
...
db4fccbd58
Author | SHA1 | Date | |
---|---|---|---|
db4fccbd58 | |||
4fc827e75c | |||
017d7f3c0d | |||
89eb9a324e | |||
e471677325 | |||
e531dd71ee | |||
5f43209a5e | |||
d0f8ad672a |
4 changed files with 70 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
tags
|
||||
result
|
||||
|
|
58
flake.lock
generated
Normal file
58
flake.lock
generated
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flake-parts": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1717285511,
|
||||
"narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1718229064,
|
||||
"narHash": "sha256-ZFav8A9zPNfjZg/wrxh1uZeMJHELRfRgFP+meq01XYk=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5c2ec3a5c2ee9909904f860dadc19bc12cd9cc44",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-23.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1717284937,
|
||||
"narHash": "sha256-lIbdfCsf8LMFloheeE6N31+BMIeixqyQWbSr2vk79EQ=",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
17
flake.nix
17
flake.nix
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "b12f invoiceplane template";
|
||||
description = "teutat3s invoiceplane template";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
||||
|
@ -12,10 +12,13 @@
|
|||
inputs.flake-parts.flakeModules.easyOverlay
|
||||
];
|
||||
|
||||
systems = [ "x86_64-linux" ];
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
|
||||
perSystem = args@{ system, pkgs, lib, config, ... }: let
|
||||
invoiceplane-template = pkgs.stdenv.mkDerivation {
|
||||
perSystem = { config, pkgs, final, ... }: {
|
||||
overlayAttrs = {
|
||||
inherit (config.packages) invoiceplane-template;
|
||||
};
|
||||
packages.invoiceplane-template = pkgs.stdenv.mkDerivation {
|
||||
name = "invoiceplane-template";
|
||||
src = ./.;
|
||||
installPhase = ''
|
||||
|
@ -23,12 +26,6 @@
|
|||
cp *.php $out/
|
||||
'';
|
||||
};
|
||||
in {
|
||||
packages.default = invoiceplane-template;
|
||||
packages.invoiceplane-template = invoiceplane-template;
|
||||
overlayAttrs = {
|
||||
inherit (config.packages) invoiceplane-template;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -385,16 +385,17 @@ footer .notes {
|
|||
<p>
|
||||
Bitte überweisen Sie den Rechnungsbetrag innerhalb von <?php echo (-1 * $invoice->days_overdue); ?> Tagen auf untenstehendes Konto:<br />
|
||||
Inhaber: <?php echo $invoice->user_name; ?><br />
|
||||
IBAN: <?php echo $invoice->user_iban; ?>
|
||||
IBAN: <?php echo $invoice->user_iban; ?><br />
|
||||
<?php echo invoice_qrcode($invoice->invoice_id); ?>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
</p>Vielen Dank!<p>
|
||||
<?php endif; ?>
|
||||
|
||||
<p>
|
||||
Mit freundlichen Grüßen,<br />
|
||||
Mit freundlichen Grüßen<br />
|
||||
<br />
|
||||
Benjamin Yule Bädorf
|
||||
<?php echo $invoice->user_name; ?>
|
||||
</p>
|
||||
</footer>
|
||||
|
Loading…
Add table
Reference in a new issue