Invoiceplane: Difference between revisions

Onny (talk | contribs)
Add dev env example
Onny (talk | contribs)
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|/etc/nixos/configuration.nix|nix|<nowiki>
{{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.fetchgit {
     src = pkgs.fetchFromGitLab {
       url = "https://git.project-insanity.org/onny/invoiceplane-vtdirektmarketing.git";
       domain = "git.project-insanity.org";
       rev = "0a891d836e199cf0f6bd2c4276991665d5d3405e";
      owner = "onny";
       hash = "sha256-GhKd+dviufeGi3ZnyukzvwzVE5BO7jAx1SdsG/ioSeU=";
      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 ===