Class QuoteVersionAttachmentManager
Class implementing QuoteVersionAttachment business logic
Namespace: SuperOffice.CRM.Sale
Assembly: SoDataBase.dll
Syntax
public static class QuoteVersionAttachmentManager : Object
Methods
AddSaleTypeQuoteAttachment(Int32, Int32)
Adds a new quote attachment document to a sale type
Declaration
public static int AddSaleTypeQuoteAttachment(int saleTypeId, int documentId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | saleTypeId | The ID of the sale type |
Int32 | documentId | The ID of the document |
Returns
Type | Description |
---|---|
Int32 | ID of the new sale type quote attachment row |
CreateOrUpdateQuoteVersionAttachments(Int32)
Look at the Quote version, related sale and sale type, and ensure that the correct QuoteVersionAttachment records exist. This method may create or delete records
Declaration
public static QuoteVersionAttachmentRows CreateOrUpdateQuoteVersionAttachments(int quoteVersionId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | quoteVersionId | The ID of the quote version |
Returns
Type | Description |
---|---|
QuoteVersionAttachmentRows | The current attachments for the given Quote version, after all updates have been completed |
DeleteSaleTypeQuoteAttachment(Int32)
Deletes a sale type quote attachment row
Declaration
public static void DeleteSaleTypeQuoteAttachment(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id | The ID of the row to delete |
IncludeQuoteVersionAttachment(Int32, Int32, Boolean)
Toggle the 'included' state of a quote version attachment; will throw exceptions if called on locked versions
Declaration
public static bool IncludeQuoteVersionAttachment(int quoteVersionId, int documentId, bool include)
Parameters
Type | Name | Description |
---|---|---|
Int32 | quoteVersionId | The ID of the Quote version |
Int32 | documentId | The ID of the document |
Boolean | include | Desired state |
Returns
Type | Description |
---|---|
Boolean | The new state |
ToggleSaleTypeQuoteAttachmentDefaultIncluded(Int32)
Toggle the 'default included' state of a sale type quote attachment
Declaration
public static bool ToggleSaleTypeQuoteAttachmentDefaultIncluded(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id | The ID of the sale type quote attachment |
Returns
Type | Description |
---|---|
Boolean | The new state |