Skip to main content

form_refusal

Function form_refusal 

Source
pub fn form_refusal(
    tags: &[Tag],
    splits: &[Split],
    split_tags: &HashMap<Uuid, Vec<Tag>>,
    prices: &[Price],
) -> Result<(), String>
Expand description

Ok when the stored transaction round-trips through the logical form, else the reason it does not: reconciliation or lot data, an ambiguous pairing, an exchange rate off its splits, two notes, two values of one tag name, or a line break in a tag name or value.

ยงErrors

The reason the transaction cannot be kept.