在报告中使用自定义字段生成报告

时间:2018-11-28 10:02:02

标签: php api sdk quickbooks

我在称为AMF的快速书中有一个自定义字段,当我在快速书中运行报告时,AMF字段在报告中显示,当我尝试通过API生成报告来运行同一报告时,AMF字段不是以下内容之一显示。

这是我的代码:

$serviceContext = $dataService->getServiceContext();

// Prep Data Services

$reportService = new ReportService($serviceContext);

if (!$reportService) {

 exit("Problem while initializing ReportService.\n");

}

$reportService->setStartDate("2015-01-01");

$reportService->setEndDate("2018-11-25");

$reportService->getColumns();

$TransactionList = $reportService- 
>executeReport(ReportName::TRANSACTIONLIST);

 $reportName = strtolower($TransactionList->Header->ReportName);

  $col = $TransactionList->Columns->Column;

  echo("ReportName: " . $reportName . "\n");

 echo(" Report Execution Successful!" . "\n");

  print_r($col);

0 个答案:

没有答案
相关问题