Skip to content

Commit

Permalink
Fix: Steuersätze aus Kommentaren korrekt entfernen
Browse files Browse the repository at this point in the history
  • Loading branch information
timpritlove committed Mar 18, 2018
1 parent 4d887b3 commit 8b9e6a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MoneyMonkey.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,10 @@ function UmsatzMetadaten (KategoriePfad, Kommentar)
KommentarNeu = string.gsub(KommentarNeu, "#" .. KS .. "%s*", "")
end

_, _, Text = string.find (Kommentar, "{(.+)}")
Begin, End, Text = string.find (Kommentar, "{(.+)}")
if Text then
Steuersatz = Text
KommentarNeu = string.sub(KommentarNeu, 1, Begin) .. string.sub(KommentarNeu, End)
KommentarNeu = string.gsub(KommentarNeu, "{" .. Text .. "}%s*", "")
end

Expand Down

0 comments on commit 8b9e6a7

Please sign in to comment.