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

Methods

BatchUpdateNextDueDateAsync(ProgressEstimateCallback, ProgressStepCallback, CancellationToken)

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
Task BatchUpdateNextDueDateAsync(ProgressEstimateCallback estimate, ProgressStepCallback step, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ProgressEstimateCallback estimate
ProgressStepCallback step
CancellationToken cancellationToken
Returns
Type Description
Task

CalculateNextDueDateAsync(int, CancellationToken)

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

Declaration
Task<NextDateInfo> CalculateNextDueDateAsync(int saleId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int saleId

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

CancellationToken cancellationToken
Returns
Type Description
Task<NextDateInfo>

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

GetNextDueAppointmentDateAsync(int, CancellationToken)

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
Task<NextDateInfo> GetNextDueAppointmentDateAsync(int saleId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int saleId

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

CancellationToken cancellationToken
Returns
Type Description
Task<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