show interest in the income page

This commit is contained in:
Anantha Kumaran 2022-08-19 18:25:33 +05:30
parent 1154fd5ead
commit eade476b57
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ type Tax struct {
func GetIncome(db *gorm.DB) gin.H {
var incomePostings []posting.Posting
result := db.Where("account like ? and account not like ?", "Income:%", "Income:Interest:%").Order("date ASC").Find(&incomePostings)
result := db.Where("account like ?", "Income:%").Order("date ASC").Find(&incomePostings)
if result.Error != nil {
log.Fatal(result.Error)
}