public virtual void AddLine(WaybillLine line) { if (Status == DocStatus.Posted) { return; } line.Waybill = this; Lines.Add(line); Recalculate(); }
public virtual void RemoveLine(WaybillLine line) { if (Status == DocStatus.Posted) { return; } line.Waybill = null; Lines.Remove(line); Recalculate(); }