projects
/
outofuni
/
gocash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a5153a
)
reset tax accounts for taxvals set to zero
author
hackbard
<hackbard@hackdaworld.org>
Sun, 11 Jan 2015 01:03:21 +0000
(
02:03
+0100)
committer
hackbard
<hackbard@hackdaworld.org>
Sun, 11 Jan 2015 01:03:21 +0000
(
02:03
+0100)
gocash.go
patch
|
blob
|
history
diff --git
a/gocash.go
b/gocash.go
index 676bf73fda01ee8d91a6c9d813c2cbf48f70f560..97c80cfb881a06f796430c361ea114acef23e1ab 100644
(file)
--- a/
gocash.go
+++ b/
gocash.go
@@
-267,10
+267,21
@@
func check_balance(ta *Transaction,accnt map[string]amap,sel_date string) bool {
tv=1
}
if tv_ow == 0 {
- continue
+ // reset taxvalues of involved accounts
+ // (to drop an error)
+ if accnt[aid].tax {
+ if accnt[aid].taxval==7 {
+ tv=1
+ }
+ } else {
+ continue
+ }
}
} else {
if accnt[aid].taxval == 0 {
+ if accnt[aid].tax {
+ fmt.Println("FATAL!");
+ }
continue
}
if accnt[aid].taxval == 7 {