cancel
Showing results for 
Search instead for 
Did you mean: 

order splitting in b2b happens only when cost center mode of payment is selected

Former Member
0 Kudos

hi , I require order splitting to work for normal card payment mode.I even used hybris OTB splitting strategies for that . But while debugging I have seen that the splitorderaction.java class is only invoked for the cost center approach. Why is it so ? and how should I change it?

Accepted Solutions (1)

Accepted Solutions (1)

former_member357259
Active Contributor
0 Kudos

If you look at the order-process.xml, you will find that splitOrder node is invoked if the the node 'takePayment' returns OK. Have you verified this in case of normal card payment mode.

This process is customizable, you can change the process and the Java action classes as per your need.

Former Member
0 Kudos

Hi Charles. I am a bit confused . I saw that the b2bAccOrderApproval.xml is invoked for card payment and then the order-process is invoked for cost center. Kindly shed light on how these are interconnected and what is the correct flow. thanks for the help.

former_member357259
Active Contributor
0 Kudos

Hi Rebeck, the b2bAccOrderApproval.xml is used for the Order approval workflow and as far as I know, has no connection with the card payment method.

The order-process should also be invoked for the card payment. Only if the order exceeds the budget limit, the order approval will be trigerred before the order is placed.

You will find most of the information here: https://wiki.hybris.com/display/accdoc/yacceleratorfulfilmentprocess+Extension+-+Technical+Guide

Former Member
0 Kudos

From this b2bAccOrderApproval.xml , its shows that card payment , credit card is being used by b2bAccOrderApproval

 <action id="approvalProcessStartAction" bean="approvalProcessStartAction">
         <transition name="OK" to="checkCreditCardOrderAction" />
         <transition name="NOK" to="error" />
     </action>
     <action id="checkCreditCardOrderAction" bean="checkCreditCardOrderAction">
         <transition name="NOK" to="checkOrderEntryCostCentersActive" />
      <transition name="OK" to="sendOrderPlacedNotification" />

 
former_member357259
Active Contributor
0 Kudos

Sorry, I was looking at b2bOrderApproval.xml. If you don't the credit card actions to execute, just remove the actions and make the process look similar to b2bOrderApproval.xml. Alternatively, you can also change the strategy configuration in the spring bean:

 <bean id="defaultB2BCreateOrderFromCartStrategy"
           class="de.hybris.platform.b2b.strategies.impl.DefaultB2BCreateOrderFromCartStrategy"
           parent="createOrderFromCartStrategy">
         <property name="businessProcessStrategies">
             <list>
                 <ref bean="b2bApprovalBusinessProcessStrategy"/>
                 <ref bean="b2bQuoteBusinessProcessStrategy"/>
                 <ref bean="b2bQuoteApprovalBusinessProcessStrategy"/>
             </list>
         </property>
     </bean>

Answers (0)