【发布时间】:2017-08-12 06:22:51
【问题描述】:
我正在使用 xero 生成发票,现在我想在 php 中使用 xero 发票 ID 获取发票,我的代码是......
$nik = $xero->load('Accounting\\Invoice')
->where('InvoiceID', $outwardRecord->xero_invoice_id)
or
->where('InvoiceID', \XeroPHP\Models\Accounting\Invoice::InvoiceID)
->execute();
但是报错了
Fatal error: Undefined class constant 'InvoiceID' in /var/w
请指导我如何使用 invoiceId 获取发票,如何理解我的问题。
谢谢!
【问题讨论】: