I created a new field in Purchase Header. And all recods in this tabel has this field with some value.
I created the same field in Purchase Invoice Header
In CodeUnit 90 we have:
// Insert invoice header or credit memo header
IF Invoice THEN
IF “Document Type” IN [“Document Type”::Order,“Document Type”::Invoice] THEN BEGIN
But in my Purchase Invoice the field is empty, Why?