The field works as follows:If the invoice is a draft, it uses the invoice created_at date.If the invoice is scheduled for publication, it uses the scheduled_at date.If the invoice is published, it uses the invoice publication date.