projects
/
outofuni
/
gocash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added MPLC to exceptions
[outofuni/gocash.git]
/
gocash.go
diff --git
a/gocash.go
b/gocash.go
index
676bf73
..
9e74149
100644
(file)
--- a/
gocash.go
+++ b/
gocash.go
@@
-68,6
+68,7
@@
var n2z_exc_ta = []string{
"ENTGELT SPK",
"ttenrecht und F",
"Unterrichtung Gastst",
"ENTGELT SPK",
"ttenrecht und F",
"Unterrichtung Gastst",
+ "MPLC",
}
// transacion exception list --- the rest, required?
}
// transacion exception list --- the rest, required?
@@
-267,10
+268,21
@@
func check_balance(ta *Transaction,accnt map[string]amap,sel_date string) bool {
tv=1
}
if tv_ow == 0 {
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 {
}
} else {
if accnt[aid].taxval == 0 {
+ if accnt[aid].tax {
+ fmt.Println("FATAL!");
+ }
continue
}
if accnt[aid].taxval == 7 {
continue
}
if accnt[aid].taxval == 7 {