Returns the total service sales and refunds for the specified date range.
GetServiceTotalSales(StartDate AS Date, EndDate AS Date, IncludeVoided AS Boolean)
XML String
StartDate = Start date for the records to return. This value must be a date/time value.
EndDate = End date for the records to return. This value must be a date/time value.
IncludeVoided = Select to include voided records in the results.
This method will return two records. The first is the refunded service totals as the lRefund field indicates. The second record is the service sales totals.
XML String has the following structure:
|
Field |
Type |
Length |
Description |
|
nTotalQty |
Decimal |
7,2 |
Total quantity. |
|
nTotal |
Decimal |
8 |
Total service sales. |
|
nEmpCharge |
Decimal |
8 |
Total of service employee charges. |
|
nHouseCharge |
Decimal |
8 |
Total of service house charges. |
|
lRefund |
Boolean |
1 |
Indicates whether the record contains the refund totals. A TRUE value indicates that the record's values are for services refunded. |