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 ¶
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
Click to show internal directories.
Click to hide internal directories.