documents

package
v0.0.0-...-151ce6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Ce package regroupe les fonctions liées à l'édition et au partage (mail, etc) des documents (au sens fichier, et non rawdata.Document) Ce package repose sur les utilitaires pdf et excel notamment

Index

Constants

View Source
const PathRIB = "ressources/RIB.pdf"

Variables

View Source
var HeadersSuiviParticipants = []rd.Header{
	{Field: dm.FinancesPNomPrenom, Label: "Participant"},
	{Field: dm.FinancesPPrixBase, Label: "Prix de base (€)"},
	{Field: dm.FinancesPPrixNet, Label: "Montant attendu (€)"},
	{Field: dm.FinancesPTotalAides, Label: "Dont aides (€)"},
	{Field: dm.FinancesPEtatPaiement, Label: "Etat du paiement"},
}

Functions

func TestRIB

func TestRIB() error

Types

type ArchiveZip

type ArchiveZip struct {
	Renamer Renamer
	// contains filtered or unexported fields
}

func NewArchiveZip

func NewArchiveZip() *ArchiveZip

func (*ArchiveZip) AddFile

func (a *ArchiveZip) AddFile(name string, content io.Reader)

AddFile ajoute un fichier. La gestion de l'erreur est reporté à la méthode `Close`.

func (ArchiveZip) Close

func (a ArchiveZip) Close() (*bytes.Buffer, error)

Close termine la création de l'archive et renvoie son contenu.

type DynamicDocument

type DynamicDocument interface {
	Generate() ([]byte, error)
	FileName() string
}

type Facture

type Facture struct {
	Destinataire rd.Destinataire
	Bilan        dm.BilanFacture
}

Facture définit les champs nécessaire à la création d'une facture au format pdf.

func (Facture) FileName

func (p Facture) FileName() string

func (Facture) Generate

func (p Facture) Generate() ([]byte, error)

type ListeParticipants

type ListeParticipants struct {
	Liste     rd.Table
	LabelCamp string
}

func NewListeParticipants

func NewListeParticipants(ac dm.AccesCamp) ListeParticipants

func (ListeParticipants) FileName

func (l ListeParticipants) FileName() string

func (ListeParticipants) Generate

func (l ListeParticipants) Generate() ([]byte, error)

type ListeVetements

type ListeVetements struct {
	Liste      rd.Table
	Complement string
	LabelCamp  string
}

func NewListeVetements

func NewListeVetements(camp rd.Camp) ListeVetements

func (ListeVetements) FileName

func (l ListeVetements) FileName() string

func (ListeVetements) Generate

func (l ListeVetements) Generate() ([]byte, error)

type Presence

type Presence struct {
	Destinataire rd.Destinataire
	Participants []dm.AccesParticipant
}

func (Presence) FileName

func (p Presence) FileName() string

func (Presence) Generate

func (p Presence) Generate() ([]byte, error)

type RIB

type RIB struct{}

func (RIB) FileName

func (r RIB) FileName() string

func (RIB) Generate

func (r RIB) Generate() ([]byte, error)

type Renamer

type Renamer func(string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL