cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

customer support backoffice customization need to add the new custom Consignment model of the ItemModel need to added at below order details Consignment entry

Former Member
0 Kudos
832
 <context type="OrderEntry" component="referenceListViewOrderEntries" module="customersupportbackoffice" principal="xxxxcustomersupportagentrole">
     <list-view:list-view xmlns:list-view="http://www.hybris.com/cockpitng/component/listView">
         <list-view:column qualifier="product.code" label="customersupportbackoffice.order.hierarchy.productcode" />
         <list-view:column qualifier="quantity" label="customersupportbackoffice.order.hierarchy.qty" />
         <list-view:column qualifier="basePrice" label="xxcustomersupportbackoffice.order.hierarchy.itemoriginalunitprice" />
         <list-view:column qualifier="totalPrice/quantity" label="xxcustomersupportbackoffice.order.hierarchy.itemdiscountedunitprice" spring-bean="abstractOrderEntryPriceRenderer" />
         <list-view:column qualifier="basePrice*quantity" label="customersupportbackoffice.order.hierarchy.itemoriginaltotalprice" spring-bean="abstractOrderEntryPriceRenderer" />
         <list-view:column qualifier="totalPrice" label="customersupportbackoffice.order.hierarchy.itemdiscountedtotalprice" />            
         <list-view:column qualifier="quantityPending" label="customersupportbackoffice.order.hierarchy.pending"/>
         <list-view:column qualifier="sapCancelQty" label="customersupportbackoffice.order.hierarchy.cancelled"/>
         <list-view:column qualifier="quantityShipped" label="customersupportbackoffice.order.hierarchy.shipped"/>            
     </list-view:list-view>
 </context>



     <list-view:list-view xmlns:list-view="http://www.hybris.com/cockpitng/component/listView">
         <list-view:column qualifier="materialId" label="customersupportbackoffice.order.hierarchy.productcode" spring-bean="xxxOrderConsignmentRenderer"/>            
         <list-view:column qualifier="shippedQty" label="xxxcustomersupportbackoffice.order.hierarchy.shipped"/>      
         <list-view:column qualifier="quantityStatus" label="xxxcustomersupportbackoffice.order.hierarchy.status"/>    
         <list-view:column qualifier="shippedDate" label="xxxcustomersupportbackoffice.order.hierarchy.shippedDate"/>    
     </list-view:list-view>
 </context>

Accepted Solutions (0)

Answers (2)

Answers (2)

arvind-kumar_avinash
Active Contributor
0 Kudos

Hi - you need to write a custom cell renderer for each attribute and then the renderers need to be configured like

 <context type="xxxConsignment" component="referenceListViewConsignmentEntries">
     <list-view:list-view xmlns:list-view="http://www.hybris.com/cockpitng/component/listView">
         <list-view:column qualifier="shippedQty" spring-bean="shippedQtyRenderer" label="ticustomersupportbackoffice.order.hierarchy.shipped"/>
     </list-view:list-view>
 </context>

I have attached the code of an OOTB renderer, PriceRenderer for your reference. You can find the following configuration for this bean in customersupportbackoffice-backoffice-spring.xml.

 <bean id="refundEntryAmountRenderer" parent="priceRenderer">
     <property name="myEntry" value="RefundEntry" />
 </bean>
Former Member
0 Kudos

Hi all their is not relation table between the order and Consignment.but we are having the one to one string relation like Order ID and Order Entry Id