Show / Hide Table of Contents

Class QuoteDocument

Inheritance
object
QuoteDocument
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Sale
Assembly: SoDataBase.dll
Syntax
public class QuoteDocument

Constructors

QuoteDocument()

Declaration
public QuoteDocument()

Methods

LinkMainDocumentAsync(int, CancellationToken)

User story 12100: If a document is a quote doc (from the template) and related to a sale with a quote that does not yet have a quote doc, then set the document as the QuoteMainDocument.

Declaration
public static Task<int> LinkMainDocumentAsync(int documentId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int documentId

The id of the already-saved document we will consider for linking

CancellationToken cancellationToken
Returns
Type Description
Task<int>

UnlinkMainDocumentAsync(int, CancellationToken)

User story 13470 If a document is a quote doc (from the template) and related to a sale as a quote main document, then set the quote's QuoteMainDocument back to 0 when the document is deleted.

Declaration
public static Task<int> UnlinkMainDocumentAsync(int documentId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int documentId

The id of the document we are about to delete

CancellationToken cancellationToken
Returns
Type Description
Task<int>

Quote id of the quote that was reset

Extension Methods

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