在线确切地附上发票的问题

时间:2018-03-07 09:40:25

标签: php exact-online picqer-exact-php-client

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

发生以下错误:

  

Picqer \ Financials \ Exact \ ApiException:错误400:无法识别' Edm.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']
));

1 个答案:

答案 0 :(得分:0)

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