public class DefaultSAPProduct extends Object implements SAPProduct
| Modifier and Type | Field and Description |
|---|---|
static String |
DELIVERY_TIME |
| Constructor and Description |
|---|
DefaultSAPProduct(AbstractOrderEntry cartEntry)
Stores the given cart entry as
SAPProduct. |
DefaultSAPProduct(Product product)
Stores the given catalog product as
SAPProduct. |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCustomParameterNames()
returns empty String array
|
String |
getCustomParameterValue(String parameterName)
returns ""
|
String |
getItemAttachment()
returns ""
|
char |
getItemAttachmentPurpose()
returns 'C'
|
String |
getItemAttachmentTitle()
returns ""
|
String |
getItemContract()
returns ""
|
String |
getItemContractItem()
returns ""
|
String |
getItemCurrency()
returns order.getCurrency.getIsoCode or the default session currency
|
String |
getItemDescription()
returns product.getName
|
String |
getItemExtCategory()
returns ""
|
String |
getItemExtCategoryId()
returns ""
|
String |
getItemExtProductId()
returns ""
|
String |
getItemExtQuoteId()
returns ""
|
String |
getItemExtQuoteItem()
returns ""
|
int |
getItemLeadTime()
returns product.deliveryTime or -1 if no value is set or error occurs
|
String |
getItemLongtext()
returns product.getDescription
|
String |
getItemManufactCode()
returns ""
|
String |
getItemManufactMat()
returns ""
|
String |
getItemMatGroup()
returns ""
|
String |
getItemMatNr()
returns product.getCode
|
double |
getItemPrice()
returns
Utils.getProductPrice(Product, double) for the given product and quantity |
int |
getItemPriceUnit()
returns 1
|
double |
getItemQuantity()
returns order.getQuantity (or 1.0)
|
boolean |
getItemService()
returns false
|
String |
getItemSLDSysName()
returns ""
|
String |
getItemUnit()
returns product.getUnit.getCode
|
String |
getItemVendor()
returns ""
|
String |
getItemVendorMat()
returns ""
|
public static final String DELIVERY_TIME
public DefaultSAPProduct(AbstractOrderEntry cartEntry)
SAPProduct.cartEntry - an order entrypublic DefaultSAPProduct(Product product)
SAPProduct.product - a catalog productpublic String getItemDescription()
getItemDescription in interface SAPProductpublic String getItemMatNr()
getItemMatNr in interface SAPProductpublic double getItemQuantity()
getItemQuantity in interface SAPProductpublic String getItemUnit()
getItemUnit in interface SAPProductpublic double getItemPrice()
Utils.getProductPrice(Product, double) for the given product and quantitygetItemPrice in interface SAPProductpublic String getItemCurrency()
getItemCurrency in interface SAPProductpublic int getItemPriceUnit()
getItemPriceUnit in interface SAPProductpublic int getItemLeadTime()
getItemLeadTime in interface SAPProductpublic String getItemLongtext()
getItemLongtext in interface SAPProductpublic String getItemVendor()
getItemVendor in interface SAPProductpublic String getItemManufactCode()
getItemManufactCode in interface SAPProductpublic String getItemVendorMat()
getItemVendorMat in interface SAPProductpublic String getItemManufactMat()
getItemManufactMat in interface SAPProductpublic String getItemMatGroup()
getItemMatGroup in interface SAPProductpublic boolean getItemService()
getItemService in interface SAPProductpublic String getItemContract()
getItemContract in interface SAPProductpublic String getItemContractItem()
getItemContractItem in interface SAPProductpublic String getItemExtQuoteId()
getItemExtQuoteId in interface SAPProductpublic String getItemExtQuoteItem()
getItemExtQuoteItem in interface SAPProductpublic String getItemExtProductId()
getItemExtProductId in interface SAPProductpublic String getItemAttachment()
getItemAttachment in interface SAPProductpublic String getItemAttachmentTitle()
getItemAttachmentTitle in interface SAPProductpublic char getItemAttachmentPurpose()
getItemAttachmentPurpose in interface SAPProductpublic String getItemExtCategoryId()
getItemExtCategoryId in interface SAPProductpublic String getItemExtCategory()
getItemExtCategory in interface SAPProductpublic String getItemSLDSysName()
getItemSLDSysName in interface SAPProductpublic String[] getCustomParameterNames()
getCustomParameterNames in interface SAPProductpublic String getCustomParameterValue(String parameterName)
getCustomParameterValue in interface SAPProductparameterName - name of the custom fieldCopyright © 2017 SAP SE. All Rights Reserved.