mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-01 12:08:37 -04:00
Initial commit
This commit is contained in:
33
transactions.go
Normal file
33
transactions.go
Normal file
@ -0,0 +1,33 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Split struct {
|
||||
SplitId int64
|
||||
TransactionId int64
|
||||
AccountId int64
|
||||
Number int64 // Check or reference number
|
||||
Memo string
|
||||
Amount big.Rat
|
||||
Debit bool
|
||||
}
|
||||
|
||||
type TransactionStatus int64
|
||||
|
||||
const (
|
||||
Entered TransactionStatus = 1
|
||||
Cleared = 2
|
||||
Reconciled = 3
|
||||
Voided = 4
|
||||
)
|
||||
|
||||
type Transaction struct {
|
||||
TransactionId int64
|
||||
UserId int64
|
||||
Description string
|
||||
Status TransactionStatus
|
||||
Date time.Time
|
||||
}
|
Reference in New Issue
Block a user