documents

package
v0.0.0-...-02a8c05 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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