Interface IProductRegisterCache
SuperOffice has its own simple Product table. This table can be used by the ERP connectors as a cache for ERP data.
This interface will be implemented by SuperOffice. The implementation is passed to all connectors as an initialization parameter.
Assembly: SuperOffice.Plugins.dll
Syntax
public interface IProductRegisterCache
Methods
CreatePriceList(PriceListInfo)
Creates a pricelist in the SuperOffice database.
Declaration
int CreatePriceList(PriceListInfo pricelist)
Parameters
Returns
| Type |
Description |
| int |
Returns the id to the pricelist.
|
GetSuperOfficeProductProvider(int)
Here you can get the data you have inserted into the SuperOffice tables.
Declaration
IQuoteConnector GetSuperOfficeProductProvider(int quoteConnectionId)
Parameters
| Type |
Name |
Description |
| int |
quoteConnectionId |
|
Returns
InsertImage(int, Image, int)
Will insert an image in SuperOffice
Declaration
int InsertImage(int productId, Image img, int rank)
Parameters
Returns
InsertProducts(int, ProductInfo[])
Insert a set of products into the SuperOffice database.
Declaration
ProductInfo[] InsertProducts(int pricelistId, ProductInfo[] products)
Parameters
Returns
| Type |
Description |
| ProductInfo[] |
Returns the products updated with their new ids.
|
RemoveImage(int)
Will remove an image from SuperOffice
Declaration
PluginResponseInfo RemoveImage(int imageId)
Parameters
| Type |
Name |
Description |
| int |
imageId |
|
Returns
RemovePriceList(int, bool)
Remove a pricelist and any associated products.
Declaration
PluginResponseInfo RemovePriceList(int pricelistId, bool alsoRemoveRelatedProducts)
Parameters
| Type |
Name |
Description |
| int |
pricelistId |
|
| bool |
alsoRemoveRelatedProducts |
|
Returns
RemoveProduct(int)
Will remove a product if it is in a pricelist related to the connection, and the pricelist is an ERP copy.
Declaration
PluginResponseInfo RemoveProduct(int productId)
Parameters
| Type |
Name |
Description |
| int |
productId |
|
Returns
UpdateProduct(ProductInfo)
Update a product in the cache with new information
Declaration
PluginResponseInfo UpdateProduct(ProductInfo newProd)
Parameters
Returns
Extension Methods