准确在线获取发票附件的问题

Problems getting attachment of invoice in exact online

我正在使用库 picqer/exact-online 并且我正在获取我刚刚创建的发票的附件,如下所示: 然而这几天前突然停止工作,有人可以帮忙吗?

出现以下错误:

Picqer\Financials\Exact\ApiException: Error 400: Unrecognized 'Edm.Guid' literal 'guid''' in '12'. (uncaught exception) at /var/web/partners/vendor/picqer/exact-php-client/src/Picqer/Financials/Exact/Connection.php line 560 while creating an invoice.

$printedInvoice = new PrintedSalesInvoice($this->exact);
$printedInvoice->InvoiceID = $invoice->InvoiceID;
$documentData = $printedInvoice->save();

$attachment   = new DocumentAttachment($this->exact);
$attachments  = $attachment->filter(sprintf(
    "Document eq guid'%s'", 
    $documentData['Document']
));

已发现问题,创建 PrintedSalesInvoice 时存在隐藏错误,因为我的发票的结束日期设置为 non-existing 财政年度。