Show / Hide Table of Contents

Interface INextDueDatePlugin

Contains the algorithm for calculating the next due date for a given sale or all sales.

Namespace: SuperOffice.CRM
Assembly: SoCore.dll
Syntax
public interface INextDueDatePlugin : IPlugin

Methods

BatchUpdateNextDueDate(ProgressEstimateCallback, ProgressStepCallback)

Updates the next due date for all sales. The callback is called for each 1/1000th step of the total, with the current value (0-1000)

Declaration
void BatchUpdateNextDueDate(ProgressEstimateCallback estimate, ProgressStepCallback step)
Parameters
Type Name Description
ProgressEstimateCallback estimate
ProgressStepCallback step

CalculateNextDueDate(Int32)

Calculates the next due date for a given sale. This method takes into account the status of the sale.

Declaration
NextDateInfo CalculateNextDueDate(int saleId)
Parameters
Type Name Description
Int32 saleId

Identifies the sale for which you want to calculate the next due date

Returns
Type Description
NextDateInfo

The DateTime representing the next due date for the supplied sale identifier

GetNextDueAppointmentDate(Int32)

Gets the active date from the first appointment associated with the specified sale. This method does not take into account the status of the sale.

Declaration
NextDateInfo GetNextDueAppointmentDate(int saleId)
Parameters
Type Name Description
Int32 saleId

Identifies the sale for which you want to calculate the next due date

Returns
Type Description
NextDateInfo

The DateTime representing the next due date for the supplied sale identifier

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top