aisino

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBatchUpload

func ConvertBatchUpload(item invoice.InvoiceItem) (string, error)

func GbkToUtf8 added in v0.0.3

func GbkToUtf8(s []byte) ([]byte, error)

GBK 转 UTF-8

func Utf8ToGbk added in v0.0.3

func Utf8ToGbk(s []byte) ([]byte, error)

UTF-8 转 GBK

Types

type AisinoInvoice

type AisinoInvoice struct {
	Password string
	// contains filtered or unexported fields
}

func New

func New(password string) *AisinoInvoice

func (*AisinoInvoice) ChaXun

func (a *AisinoInvoice) ChaXun(kind int16) (stock *invoice.InvoiceStock, err error)

func (*AisinoInvoice) ChongPiao

func (a *AisinoInvoice) ChongPiao(req *invoice.Invoice) (resp *invoice.Info, err error)

冲票

func (*AisinoInvoice) DaYin added in v0.0.6

func (a *AisinoInvoice) DaYin(kind int16, typeCode, number string) (err error)

打印发票

func (*AisinoInvoice) Init added in v0.0.6

func (a *AisinoInvoice) Init() (err error)

初始化

func (*AisinoInvoice) KaiPiao

func (a *AisinoInvoice) KaiPiao(req *invoice.Invoice) (resp *invoice.Info, err error)

开票

func (*AisinoInvoice) Release added in v0.0.6

func (a *AisinoInvoice) Release()

释放资源

func (*AisinoInvoice) ZuoFei

func (a *AisinoInvoice) ZuoFei(info *invoice.Info) (err error)

Jump to

Keyboard shortcuts

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