Skip to Content
0
Former Member
Feb 10, 2005 at 05:49 PM

Internet Sales IPCItem is null

38 Views

Hi,

I've got an urgent question regarding the access of pricing conditions in internet sales. I've extended the maintain basket show action in order to list the items of my order basket. This works fine. But I can't get access to the respective pricing conditions??? Heres the code:

ItemList list = basket.getItems()

for(Iterator it = list.iterator(); it.hasNext(); )

{

ItemSalesDoc item = (ItemSalesDoc) it.next();

IPCItem ipcItem = (IPCItem) item.getExternalItem();

IPCPricingConditionSet pcondSet = ipcItem.getPricingConditions();

IPCPricingCondition[] cond = pcondSet.getPricingConditions();

for(int i=0; i<cond.length; i++)

{

System.out.println(cond <i>.getConditionTypeName());

}

System.out.println(item.getDescription());

}

The problem is that the IPCItem I would expect is null. Could anybody tell me what I'm doing wrong here. It is crucial for my project to be able to access this information!

Any help will be appreciated!

Thank you in advance,

Heiko Nolte