Moving in another direction regarding debts

This commit is contained in:
2025-08-25 22:04:35 +01:00
parent 49a1978736
commit b5d918a873
13 changed files with 177 additions and 16 deletions
+4 -2
View File
@@ -9,13 +9,15 @@ import (
"fmt"
_ "github.com/mattn/go-sqlite3"
"github.com/shopspring/decimal"
dec "github.com/shopspring/decimal"
)
type ExpenseShare struct {
ExpShareID int64
User User
Share decimal.Decimal
Share dec.Decimal
Calculated dec.Decimal // If certain shares equal fractional cent counts
// Its more useful to already have that computed
}
func (e *Expense) GetShares(tx *sql.Tx) error {