home · contact · privacy
Fix double negation in "fill_sink" action. master
authorChristian Heller <c.heller@plomlompom.de>
Sun, 23 Mar 2025 12:52:37 +0000 (13:52 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 23 Mar 2025 12:52:37 +0000 (13:52 +0100)
src/templates/edit_structured.tmpl

index 919370faf40866978332247aaca2c789e163b479..f4942f0926fbb0d3902118636f037d8adbaccb6c 100644 (file)
@@ -246,7 +246,7 @@ function fill_sink() {
         const dat_line = dat_lines[sink_indices[sink_indices_index]];
         sink_indices_index++;
         dat_line.booked.currency = currency;
-        dat_line.booked.amount = (-amount).toString();
+        dat_line.booked.amount = amount.toString();
     }
     taint();
     update_form();