CreateCustomerBalanceDetailReport
Generates a Customer Balance detail report schema file.
Stored Procedure Specific Information
QuickBooks Online allows only a small subset of columns to be used in the Exec query. All the columns are optional for this Stored Procedure.
This report supports multicurrency. The available columns will differ depending on whether multicurrency is enabled or disabled. Below are the columns supported for each state: multicurrency enabled or disabled.
Multicurrency disabled: subt_open_bal, rbal_open_bal, subt_amount.
Multicurrency enabled: currency, exch_rate, foreign_open_bal, subt_home_open_bal, rbal_home_open_bal, foreign_amount, subt_home_amount.
To determine if the authenticated account supports multicurrency, check with the following statement:
SELECT CurrencyPrefs_MultiCurrencyEnabled FROM Preferences;
For example:
To create the RSD file, it will be generated based on the value of the Location connection property.
EXECUTE CreateCustomerBalanceDetailReport
To return BASE64 encoded data in FileData column.
EXECUTE CreateCustomerBalanceDetailReport WriteToFile = 'False'
Input
Name | Type | Description |
ReportName | String | The name of the report.
デフォルト値はCustomerBalanceDetailReportです。 |
ReportDescription | String | A description for the report. If one is not specified, a description based on the ReportType will be selected. |
AgingMethod | String | The date upon which aging is determined.
使用できる値は次のとおりです。Report_Date, Current |
ARPaid | String | The accounts receivable paid status.
使用できる値は次のとおりです。All, Paid, Unpaid デフォルト値はUnpaidです。 |
Columns | String | Column types to be shown in the report. A comma separated list of one or more of the following: bill_addr, create_by, create_date, cust_bill_email, cust_comp_name, cust_msg, cust_phone_other, cust_tel, cust_name, deliv_addr, doc_num, due_date, last_mod_by, last_mod_date, memo, sale_sent_state, ship_addr, ship_date, ship_via, term_name, tracking_num, tx_date, txn_type. Additional columns with custom fields enabled: sales_cust1, sales_cust2, sales_cust3. Additional columns with location tracking enabled: dept_name. In addition to the above, the following values are supported based on the multicurrency setting for the company. MultiCurrency disabled: subt_open_bal, rbal_open_bal, subt_amount. MultiCurrency Enabled: currency, exch_rate, foreign_open_bal, subt_home_open_bal, rbal_home_open_bal, foreign_amount, subt_home_amount. Default= tx_date,txn_type,doc_num,dept_name,due_date,subt_amount,subt_open_bal,rbal_open_bal |
Customer | String | Filters report contents to include information for specified customers. This is a comma separated list (spaces omitted after/before separating comma) of one or more Customer IDs. |
Department | String | Filters report contents to include information for specified departments if so configured in the company file. This is a comma separated list (spaces omitted after/before separating comma) of one or more Department IDs. |
ReportDate | String | Start date to use for the report. |
ShipVia | String | Filter by the shipping method as specified in Invoice's ShipMethodRef. This is the name of the shipping method. |
SortBy | String | The column type used in sorting report rows. Specify one of the Columns from the Columns input. |
SortOrder | String | The sort ordering.
使用できる値は次のとおりです。ascend, descend デフォルト値はascendです。 |
StartDueDate | String | The startdate of the report. StartDate must be less than EndDate. |
EndDueDate | String | The enddate of the report. EndDate must be greater than StartDate. |
Term | String | Filters report contents to include information for specified term or terms supplied. This is a comma separated list (spaces omitted after/before separating comma) of one or more Term IDs. |
Indentation | String | Add spaces at the start of values to visually identify totals and group values. |
WriteToFile | String | Whether to write to an output file or not. Defaults to true, must be set to false to write to FileStream or FileData. |
Result Set Columns
Name | Type | Description |
Result | String | Success or Failure. |
SchemaFile | String | The generated schema file. |
Columns | String | The number of columns found. |
FileData | String | The BASE64 downloaded file content. Only returned if WriteToFile set to false and FileStream is not set. |