receiptCustom

package
v0.0.0-...-cc65bd0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSchema = "default"

DefaultSchema Default receipt schema

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Name     string  `json:"Name"`
	Quantity float64 `json:"Quantity"`
	Price    float64 `json:"Price"`
}

Item - item that was sold

type ReceiptData

type ReceiptData struct {
	Schema   string `json:"schema"`
	ReceiptS *ReceiptS
}

ReceiptData - data of receipt

func (*ReceiptData) Print

func (rd *ReceiptData) Print(ffName string)

Print - function which execute printing process

type ReceiptS

type ReceiptS struct {
	MPlaceName    string `json:"MPlaceName"`
	MPlaceAddress string `json:"MPlaceAddress"`
	MPlaceINN     string `json:"MPlaceINN"`
	OperationType string `json:"OperationType"`
	Items         []*Item
	TaxPercent    string  `json:"TaxPercent"`
	Total         float64 `json:"Total"`
	FiscalNumber  string  `json:"FiscalNumber"`
	Date          string  `json:"Date"`
}

ReceiptS default receipt

Jump to

Keyboard shortcuts

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