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
+6
View File
@@ -46,6 +46,12 @@ func ParseFormShares(userIDs []string, shares []string, sharesIDs []string,
return shareList, nil
}
// normalizeShares will take the total of an expense and the proposed shares
// and calculate how much each user actually has to pay - avoids fracd cents
func normalizeShares(total decimal.Decimal, shares []mod.ExpenseShare) error {
return nil
}
func (s *Service) DeleteShare(id int64) error {
tx, err := s.DB.Begin()
if err != nil {