Documentation ¶
Overview ¶
Sends tax information to state. Executes tax_job queue in DB.
Index ¶
Constants ¶
View Source
const CmdName = "tax"
Variables ¶
View Source
var Cmd = cli.Cmd{ Name: CmdName, Desc: "execute tax jobs", Action: taxMain, }
Functions ¶
This section is empty.
Types ¶
type MTaxJob ¶
type MTaxJob struct { Id int64 `pg:",pk"` State string Created time.Time Modified time.Time Scheduled time.Time Worker string Processor string ExtId string Ops []TaxJobOp `pg:"ops"` Data *TaxJobData Notes []string `pg:",array"` Gross int32 }
func (*MTaxJob) OpKeysString ¶
func (*MTaxJob) UpdateFinal ¶
func (*MTaxJob) UpdateScheduleLater ¶
type TaxJobData ¶
type TaxJobData struct { Ru2019 struct { OpTime string `json:"optime,omitempty"` DocNum uint32 `json:"docnum,omitempty"` DocType uint16 `json:"doctype,omitempty"` FSStatus struct { FSNum string `json:"fsnum,omitempty"` CycleOpen bool `json:"cycle_open,omitempty"` LastDocNumber uint32 `json:"last_doc,omitempty"` UnsentDocNumber uint32 `json:"unsent_doc,omitempty"` OfflineDocsCount uint32 `json:"offline_docs,omitempty"` } `json:"fss,omitempty"` } `json:"ru2019,omitempty"` }
func (*TaxJobData) String ¶
func (d *TaxJobData) String() string
type TaxJobOp ¶
type TaxJobOp struct { Time string `json:"time"` Name string `json:"name"` Code string `json:"code"` Amount float64 `json:"amount"` Price uint32 `json:"price"` Vmid int32 `json:"vmid"` Method vender_api.PaymentMethod `json:"method"` }
Click to show internal directories.
Click to hide internal directories.