Documentation
¶
Index ¶
Constants ¶
View Source
const ( HEADER = "1CClientBankExchange" DEF_FORMAT_VERSION = "1.03" DEF_SENDER = "Бухгалтерия предприятия, редакция 3.0" )
Variables ¶
View Source
var ErNoDocuments = errors.New("не задан список документов")
View Source
var ErNoPayer = errors.New("не задан плательщик документа")
View Source
var ErNoPayerBank = errors.New("не задан банк плательщика документа")
View Source
var ErNoReceiver = errors.New("не задан получатель документа")
View Source
var ErNoReceiverBank = errors.New("не задан банк получателя документа")
Functions ¶
This section is empty.
Types ¶
type BankDocumenter ¶
type BankDocumenter interface { GetDocumentType() DocumentType Render(*strings.Builder) error GetPayer() *Firm }
type DocumentType ¶
type DocumentType int
DocumentType
const (
DOCUMENT_TYPE_PP DocumentType = iota
)
func (DocumentType) String ¶
func (d DocumentType) String() string
type EncodingType ¶
type EncodingType int
const ( ENCODING_TYPE_WIN EncodingType = iota ENCODING_TYPE_DOS )
func (EncodingType) String ¶
func (e EncodingType) String() string
type ExchFile ¶
type ExchFile struct { Version string EncodingType EncodingType Sender string CreateDate time.Time DateFrom time.Time DateTo time.Time DocumentTypes []DocumentType Documents []BankDocumenter }
func NewExchFile ¶
func NewExchFile(documentTypes []DocumentType, documents []BankDocumenter) *ExchFile
type PPDocument ¶
type PPDocument struct { Num int Date time.Time Sum float64 Payer *Firm PayerBank *Bank Receiver *Firm ReceiverBank *Bank PayType PayType //вид платежа OplType string //вид оплаты Order int PayComment string }
func (*PPDocument) GetDocumentType ¶
func (d *PPDocument) GetDocumentType() DocumentType
func (*PPDocument) GetPayer ¶
func (d *PPDocument) GetPayer() *Firm
Click to show internal directories.
Click to hide internal directories.