Never use `abs` in accounting!  ```                  if bool(writeoff_amount > 0.0) == bool(counterpart_amount > 0.0):                      sign = -1                  else:                      sign = 1  ```  instead?    Also, plz add a test