If the query was working before but not now then I would wager a schema change broke things. You mentioned OOF and kundres_local are bigint but these are tables so I assume you mean that OOF.DOKNR and kundres_local.invoice_number are BIGINTs. That shouldn't change the query itself as you are doing a left join so you are basically just getting all the rows in OOF that aren't also in kundres_local plus some extra conditions.
Can you provide the subset of the table definitions for the above tables?