Bug fix proposal
Guard against a missing due date
Invoices created by the import job have no due date, so dueDate() returns null and format() throws. Return a placeholder when the date is missing.
- return $this->invoice->dueDate()->format('d/m/Y');+ return $this->invoice->dueDate()?->format('d/m/Y') ?? 'Not set';