使用C#获取QuickBooks现金流量报告

时间:2015-06-22 08:54:03

标签: quickbooks intuit-partner-platform

我想使用C#从Quick Books中获取现金流量报告。 是否有任何方法(或)使用Intuit SDK获取报告?

1 个答案:

答案 0 :(得分:0)

如果您使用的是QBO,请参阅C#中的示例代码 -

ReportService reportService = new ReportService(context); 

//Date should be in the format YYYY-MM-DD 
reportService.accounting_method = "Accrual"; 
reportService.start_date = "1997-01-01"; 
reportService.end_date = "2014-12-18"; 
////reportService.classid = "2800000000000634813"; 
//reportService.date_macro = "Last Month"; 
reportService.summarize_column_by = "Month"; 


List<String> columndata = new List<String>(); 
columndata.Add("tx_date"); 
columndata.Add("dept_name"); 
string coldata = String.Join(",", columndata); 
reportService.columns = coldata; 

var report1 = reportService.ExecuteReport("GeneralLedger");

请记住根据文档更改报告类型和列表 - https://developer.intuit.com/docs/0100_accounting/0400_references/reports/cashflow

相关问题