public override bool CalculateCosts(IOrderAllocation transaction, IFeeFactory feeFactory, IGLLookupRecords lookups) { checkCostCalculater(transaction, feeFactory); Commission commDetails = feeFactory.CalculateCommission(transaction); if (commDetails != null) transaction.setCommission(lookups, commDetails.Amount); return true; }
public override bool CalculateCosts(IOrder order, IFeeFactory feeFactory) { checkCostCalculater(order, feeFactory); Commission commDetails = feeFactory.CalculateCommission(order); if (commDetails != null) { order.CommissionDetails = commDetails; order.CommissionDetails.Parent = (ICommissionParent)order; } return true; }