I'm required to change or delete some items on order.jsp (basket view). When I add the items I use something like
//When adding salesDocument.addItem((ItemBaseData)item); //Item here is of type ItemSalesDoc . . . //When deleting salesDocument.removeItem((ItemBaseData)item); //Item here is of type ItemSalesDoc
I implement this code on a custom action which I call after forwarding /b2b/basketrefresh and before /b2b/updatedocumentview
The problem is that when I add items, these items are not displayed in the item view.
The strange thing is that when I remove an item it is not displayed (which is the behaviour I expect) so I know that the correct version of the view is read .
Also I sometimes need to replace an item but using the
// altList is an ArrayList which contains product GUIDs to which I want a product to be replaced salesDoc.replaceItemsByAlternativProduct(altList);
Any help will be greatly appreciated.