Invoiceplane: Difference between revisions
Add dev env example |
→Invoice templates: Update example template |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 26: | Line 26: | ||
Invoiceplane will render and export invoices as PDF. You can create your own invoice templates or reuse existing ones. The following example fetches an invoice template and makes it available to your running Invoiceplane instance | Invoiceplane will render and export invoices as PDF. You can create your own invoice templates or reuse existing ones. The following example fetches an invoice template and makes it available to your running Invoiceplane instance | ||
{{file| | {{file|||<nowiki> | ||
{ config, pkgs, lib, ... }: | { config, pkgs, lib, ... }: | ||
let | let | ||
template-vtdirektmarketing = pkgs.stdenv.mkDerivation { | invoiceplane-template-vtdirektmarketing = pkgs.stdenv.mkDerivation { | ||
name = "vtdirektmarketing"; | name = "vtdirektmarketing"; | ||
src = pkgs. | src = pkgs.fetchFromGitLab { | ||
domain = "git.project-insanity.org"; | |||
rev = " | owner = "onny"; | ||
hash = "sha256- | repo = "invoiceplane-vtdirektmarketing"; | ||
rev = "a779ea08aaf88d4a4e8afb555a8953f5432f7d49"; | |||
hash = "sha256-H82p46n7OuJA8nzSZWcVRnxfmTrrqaNy+R5qbj0EWtw="; | |||
}; | }; | ||
makeFlags = [ "DESTDIR=$(out)" ]; | makeFlags = [ "DESTDIR=$(out)" ]; | ||
| Line 44: | Line 46: | ||
services.invoiceplane.sites."localhost" = { | services.invoiceplane.sites."localhost" = { | ||
enable = true; | enable = true; | ||
invoiceTemplates = [ template-vtdirektmarketing ]; | invoiceTemplates = [ invoiceplane-template-vtdirektmarketing ]; | ||
}; | }; | ||
} | } | ||
</nowiki>}} | </nowiki>|name=|lang=Nix}} | ||
=== Invoice mail delivery === | === Invoice mail delivery === | ||