我正在使用图书馆picqer/exact-online,我收到了我刚刚创建的发票的附件,如下所示:然而这几天前突然停止工作,有人可以在这里帮忙吗?
发生以下错误:
Picqer\Financials\Exact\ApiException: 错误 400: 无法识别的"Edm.Guid"字面"guid"在"12"中。(未捕获的异常(在创建发票时位于/var/web/partners/vendor/picqer/exact-php-client/src/Picqer/Financials/Exact/Connection.php第 560 行
。
$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']
));
发现问题,并且创建打印销售发票时存在隐藏错误,因为我的发票的结束日期设置为不存在的财政年度。