@Override
public void calculateFulfillmentGroupTotal(PromotableOrder order) {
Money totalFulfillmentCharges = BroadleafCurrencyUtils.getMoney(BigDecimal.ZERO, order.getOrderCurrency());
for (PromotableFulfillmentGroup fulfillmentGroupMember : order.getFulfillmentGroups()) {
PromotableFulfillmentGroup fulfillmentGroup = fulfillmentGroupMember;
Money fulfillmentCharges = fulfillmentGroup.getFinalizedPriceWithAdjustments();
fulfillmentGroup.getFulfillmentGroup().setFulfillmentPrice(fulfillmentCharges);
totalFulfillmentCharges = totalFulfillmentCharges.add(fulfillmentCharges);
}
order.setTotalFufillmentCharges(totalFulfillmentCharges);
}