MULTI_FILE_PROVEN_OK
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
package ledger
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Files []string
|
||||
|
||||
func NewFiles(p string, q ...string) (Files, error) {
|
||||
@@ -36,16 +32,17 @@ func (files Files) Deltas(like ...Like) (Deltas, error) {
|
||||
continue
|
||||
}
|
||||
if transaction.payee == "" {
|
||||
return nil, fmt.Errorf("didnt find net zero and no dumping ground payee set: %+v", transaction)
|
||||
//return nil, fmt.Errorf("didnt find net zero and no dumping ground payee set: %+v", transaction)
|
||||
} else {
|
||||
delta := newDelta(
|
||||
transaction.date,
|
||||
transaction.description,
|
||||
transaction.payee,
|
||||
-1.0*value,
|
||||
currency,
|
||||
)
|
||||
result = append(result, delta)
|
||||
}
|
||||
delta := newDelta(
|
||||
transaction.date,
|
||||
transaction.description,
|
||||
transaction.payee,
|
||||
-1.0*value,
|
||||
currency,
|
||||
)
|
||||
result = append(result, delta)
|
||||
}
|
||||
}
|
||||
return result.Like(like...), nil
|
||||
|
||||
Reference in New Issue
Block a user