Skip to main content

create_from_template

Function create_from_template 

Source
pub async fn create_from_template(
    session: &mut Session,
    template_id: &str,
    overrides: &FormValues,
) -> Result<String, CommandError>
Expand description

Create a transaction from the draft of template template_id; overrides replace its date and note and merge into its rows, and the date is now when neither gives one.

§Errors

The server’s refusal of the template load, CommandError::Argument for an unknown or ambiguous reference, or CommandError::FormInvalid from the submit.