///// <summary> ///// Constructor of CommValueDetails object ///// </summary> //internal CommValueBreakupLine(CommValueDetails parentDetails) //{ // this.Parent = parentDetails; //} /// <summary> /// Constructor of CommValueBreakupLine object /// </summary> /// <param name="parentDetails">The parent object for the detailed lines</param> /// <param name="calcValue">The (total) value calculated</param> /// <param name="calcType">The type of commission</param> /// <param name="calcInfo">Info on how the commission is calculated</param> public CommValueBreakupLine(CommValueDetails parentDetails, Money calcValue, CommValueBreakupType calcType, string calcInfo) { this.Parent = parentDetails; this.CalcValue = calcValue; this.CalcType = calcType; this.CalcInfo = calcInfo; }
/// <summary> /// Constructor of CommValueDetails object /// </summary> /// <param name="calcType">The type of commission</param> /// <param name="calcValue">The (total) value calculated</param> /// <param name="commCalcInfo">Info on how the commission is calculated</param> internal CommValueDetails(CommValueBreakupType calcType, Money calcValue, string calcInfo) { AddLine(calcType, calcValue, calcInfo); }
public void AddLine(CommValueBreakupType calcType, Money calcValue, string calcInfo) { CommLines.Add(new CommValueBreakupLine(this, calcValue, calcType, calcInfo)); CalcValue += calcValue; }
public void AddLine(CommValueBreakupType calcType, Money calcValue) { this.AddLine(calcType, calcValue, ""); }