posting

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpsertAll

func UpsertAll(db *gorm.DB, postings []*Posting)

Types

type Posting

type Posting struct {
	ID        uint      `gorm:"primaryKey" json:"id"`
	Date      time.Time `json:"date"`
	Payee     string    `json:"payee"`
	Account   string    `json:"account"`
	Commodity string    `json:"commodity"`
	Quantity  float64   `json:"quantity"`
	Amount    float64   `json:"amount"`

	MarketAmount float64 `gorm:"-:all" json:"market_amount"`
}

Jump to

Keyboard shortcuts

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