Something went wrong. Try again.
Convert CSV banking statements to hledger journals
Something went wrong. Try again.
1234567891011121314151617181920212223// What the page says about the journal (M1-UI-014, M1-UI-021).
// Why a journal cannot be had: the first diagnostic, which is the one that// stopped it.export function reasonFor(diagnostics) { if (diagnostics.length === 0) return "no reason given"; const first = diagnostics[0]; return (first.row === null ? "" : `row ${first.row}: `) + first.message;}
// Under a preview. M1-UI-014: when there is no complete journal, the reason// instead of one with transactions missing; and nothing claims it is ready// while anything still blocks writing it.export function previewOutcome(preview) { if (preview.journal === null) return "no preview: " + reasonFor(preview.diagnostics); return preview.final ? "ready to write" : "";}
// After an attempt to write it (M1-UI-021).export function writeOutcome(accepted, diagnostics) { return accepted ? "written" : "not written: " + reasonFor(diagnostics);}