Documentation ¶
Index ¶
- func UpsertAll(db *gorm.DB, postings []*Posting)
- type Posting
- func (p *Posting) AddAmount(amount decimal.Decimal)
- func (p *Posting) AddQuantity(quantity decimal.Decimal)
- func (p Posting) GroupDate() time.Time
- func (p Posting) Negate() Posting
- func (p *Posting) Price() decimal.Decimal
- func (p *Posting) RestName(level int) string
- func (p Posting) WithQuantity(quantity decimal.Decimal) Posting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Posting ¶
type Posting struct { ID uint `gorm:"primaryKey" json:"id"` TransactionID string `json:"transaction_id"` Date time.Time `json:"date"` Payee string `json:"payee"` Account string `json:"account"` Commodity string `json:"commodity"` Quantity decimal.Decimal `json:"quantity"` Amount decimal.Decimal `json:"amount"` Status string `json:"status"` TagRecurring string `json:"tag_recurring"` TransactionBeginLine uint64 `json:"transaction_begin_line"` TransactionEndLine uint64 `json:"transaction_end_line"` FileName string `json:"file_name"` Forecast bool `json:"forecast"` MarketAmount decimal.Decimal `gorm:"-:all" json:"market_amount"` }
func (*Posting) AddQuantity ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.