jcornaz / beancount-parser

A beancount file parser library for rust
The Unlicense
21 stars 7 forks source link

reject negative amount in price and cost #43

Open jcornaz opened 1 year ago

jcornaz commented 1 year ago

from https://beancount.github.io/docs/beancount_language_syntax.html#costs-and-prices:

Amounts specified as either per-share or total prices or costs are always unsigned. It is an error to use a negative sign or a negative cost and Beancount will raise an error if you attempt to do so.

jcornaz commented 1 year ago

Was closed by mistake.