Class QuoteDocument
Inherited Members
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 |