XCustomerOrder

Friday, February 16, 2024

XCustomerOrder() - Total amount of customer orders for a given period

Description

Sage 50 Canadian Edition This function is only available for Sage 50 Canadian Edition

This function returns the sum of all customers orders amounts made between two specific dates.

Parameters

Customers [Optional]

Customer name for which the sum of all orders amounts is required.

By default, when this parameter remains empty, the sum of all customers orders amounts will be generated.

Beginning [Optional]

Beginning date of the period for which the amount is requested. If omitted, it will return the balance of the account(s).

When entering dates in Excel, use the format for your computer's regional settings, or use the ISO format (YYYY-MM-DD).

End [Optional]

Ending date of the period for which the amount is requested. If omitted, it will use the latest transaction date.

When entering dates in Excel, use the format for your computer's regional settings, or use the ISO format (YYYY-MM-DD).

Status [Optional]

Order status required: initial order, received order or remaining order. By default the remaining order amount is returned.

  • Initial order returns the sum of all initials order amounts.
  • Received Order returns the sum of all invoiced orders amounts.
  • Remaining Order returns the sum of all orders amounts that remains to be invoiced.

Adding the word Cleared to the request will include all amounts of orders already cleared in the system.

Accounts [Optional]

General Ledger Account Number or Name for which the sum of all transactions is requested.

If this parameter remains empty, the Current Earnings value will be reported.

See Accounts Parameter for more information on how you can use this parameter.

Departments [Optional]

Ending part of the General Ledger Account Number for which the sum of all transactions is requested. Use this parameter to further control the accounts to be used by looking at the end of the account number.

If this parameter remains empty, only the Accounts parameter will be used.

See Departments Parameter for more information on how you can use this parameter.

Employees [Optional]

Employee name (Salesperson) for which the sum of all orders amounts is requested.

Inventory [Optional]

Inventory items number for which the sum of all orders amounts is requested.

Projects [Optional]

Project name for which the budget is requested.

Currency [Optional]

Currency code for which the sum of all orders amounts is requested, for example CAD or USD.

Freight [Optional]

Included to obtain the sum of all orders amounts including freight fees or Excluded to exclude freight fees. Freight is included by default unless an inventory item is specified

Connections [Optional]

Sage 50 Connection to query. If left empty, the default connection will be used.

Usage

All past and future transactions can be considered in this function. You just need to mention in Beginning of the first transaction date and in End of the last transaction date. The function XCustomerOrder will calculate the sum of all orders amounts between those dates.

Examples

It is strongly recommended to use Excel cells address (ex. A1:B19) containing the information of the parameters requested in all XLGL functions, such as: customers names, dates, accounts numbers, departments codes, employees names, etc. This practice adds flexibility to your worksheet and will ensure the coherence of your results. Moreover, the use of quotation marks (") is essential when the parameters are manually written in the arguments function window.

Returns the sum of all customers orders amounts
=XCustomerOrder()
Returns the sum of all customers orders made by Kent Industries Inc. with status "Initial order" in the account number "4010-4090"
=XCustomerOrder("Kent Industries Inc.",,,"Initial order","4010-4090")
Returns the sum of all orders amounts made by Kent Industries Inc. in the account number 4020 between January 1st and December 31st of 2006 including freight fee
=XCustomerOrder("Kent Industries Inc.","01/01/2006","31/12/2006","Initial Order","4020",,,,,,"Included")

Was this article helpful?

 
Thank you for your feedback

Contact Can't find what you're looking for?

You can Contact us so we can address your question.