Skip to content

add action to calculate balance of transaction  #127

@zanona

Description

@zanona

Hello,
Just following up my previous comment with a suggestion for adding an action to allow calculating the balance for an specific transaction. An good use case would be on automated transactions, which need to be explicitly balanced.

= income:salary
  bank:foo         $1.234
  savings:bar      $1.293
  investment:baz   $1.939
  bank:busines    $-0.000   ; i.e we could have `:call ledger#balance_transaction()`

2022-04-05 Salary
  bank:business    $5.000
  income:salary

Originally posted by @zanona in #109 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions