Class QuoteDocument
Namespace: SuperOffice.CRM.Sale
Assembly: SoDataBase.dll
Syntax
public class QuoteDocument : Object
Constructors
QuoteDocument()
Declaration
public QuoteDocument()
Methods
LinkMainDocument(Int32)
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 int LinkMainDocument(int documentId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | documentId | The id of the already-saved document we will consider for linking |
Returns
Type | Description |
---|---|
Int32 |
UnlinkMainDocument(Int32)
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 int UnlinkMainDocument(int documentId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | documentId | The id of the document we are about to delete |
Returns
Type | Description |
---|---|
Int32 | Quote id of the quote that was reset |
Extension Methods
EnumUtil.MapEnums<From, To>(From)