ticket

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawArticlesTab

func DrawArticlesTab(dc win32.HDC, pageWidth, margin, startY uint32, ticket Ticket) (uint32, int, float64)

func DrawFooter

func DrawFooter(dc win32.HDC, pageWidth, margin, startY uint32, totalArticles int, total float64)

func DrawHeader

func DrawHeader(dc win32.HDC, pageWidth, startY uint32, pdv Pdv) uint32

func DrawSeparator

func DrawSeparator(dc win32.HDC, pageWidth, startY uint32) uint32

func PrintA4

func PrintA4(printName string, margin uint32, textHeight int32, pdv Pdv, ticket Ticket)

Types

type Article

type Article struct {
	Nom      string
	Prix     float64
	Quantite int
}

type Pdv

type Pdv struct {
	ID      int
	Nom     string
	Adresse string
	Tel     string
	Mail    string
}

type Ticket

type Ticket struct {
	PdvID    int
	Articles []Article
	Total    float64
}

Jump to

Keyboard shortcuts

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