Skip to main content

draft_to_prefilled

Function draft_to_prefilled 

Source
pub fn draft_to_prefilled(draft: TransactionDraft) -> Option<PrefilledDraft>
Expand description

Builds a prefill for the create form, or None when the draft cannot be represented EXACTLY as transfer rows (ambiguous split structure, non-terminating amount, or unparseable date). Returning None means “show no prefill” — never a silently-altered transaction.