mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-10-31 16:00:05 -04:00
db/transactions: Properly capitalize 'Date' column name
This commit is contained in:
parent
d35893504b
commit
a10f3105d9
@ -335,11 +335,11 @@ func (tx *Tx) GetAccountBalance(user *models.User, accountid int64) (*models.Amo
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (tx *Tx) GetAccountBalanceDate(user *models.User, accountid int64, date *time.Time) (*models.Amount, error) {
|
func (tx *Tx) GetAccountBalanceDate(user *models.User, accountid int64, date *time.Time) (*models.Amount, error) {
|
||||||
return tx.getAccountBalance(" AND transactions.date < ?", accountid, user.UserId, date)
|
return tx.getAccountBalance(" AND transactions.Date < ?", accountid, user.UserId, date)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tx *Tx) GetAccountBalanceDateRange(user *models.User, accountid int64, begin, end *time.Time) (*models.Amount, error) {
|
func (tx *Tx) GetAccountBalanceDateRange(user *models.User, accountid int64, begin, end *time.Time) (*models.Amount, error) {
|
||||||
return tx.getAccountBalance(" AND transactions.date >= ? AND transactions.Date < ?", accountid, user.UserId, begin, end)
|
return tx.getAccountBalance(" AND transactions.Date >= ? AND transactions.Date < ?", accountid, user.UserId, begin, end)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tx *Tx) transactionsBalanceDifference(accountid int64, transactions []*models.Transaction) (*big.Rat, error) {
|
func (tx *Tx) transactionsBalanceDifference(accountid int64, transactions []*models.Transaction) (*big.Rat, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user