0

我正在使用库 picqer/exact-online,我收到了我刚刚创建的发票的附件:但是几天前突然停止工作,有人可以帮忙吗?

出现以下错误:

Picqer\Financials\Exact\ApiException:错误 400:“12”中无法识别“Edm.Guid”文字“guid”。(未捕获的异常)在创建发票时位于 /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']
));
4

1 回答 1

0

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

于 2018-03-11T17:44:21.307 回答