Skip to main content

build_create_transaction_form

Function build_create_transaction_form 

pub fn build_create_transaction_form(
    from: Uuid,
    to: Uuid,
    from_currency: Uuid,
    to_currency: Uuid,
    value: Ratio<i64>,
    to_amount: Option<Ratio<i64>>,
    note: Option<&str>,
) -> Result<String, CommandError>
Expand description

Build the nomiscript (create-transaction "...") form from CLI args.

Thin back-compat wrapper over [build_create_transaction_form_dated] that stamps the current time. Callers that need a deterministic date should use the dated variant directly.