[ADD] Set company_id in context to ensure that the right period is found. [FIX] Set local_currency on the transaction lines from the statement local_currency. [ADD} Allow selection of analytic account for the statement line move and the write-off. [FIX] Use currency name lookup on the journal, not currency id.