public override bool Equals(object obj) { EaglesoftAdjustmentType that = obj as EaglesoftAdjustmentType; if (that == null) { return(false); } if (this.Id == that.Id) { return(true); } return(false); }
public void addRefund(EaglesoftRefund refund) { EaglesoftAdjustmentType adjustmentType = refund.AdjustmentType; RefundTypeMapping mapping = Configuration.getRefundTypeByEaglesoftAdjustmentType(adjustmentType); if (mapping.Enabled) { if (mapping.IssueCheck) { writeRefundCheck(mapping, refund); } else { addRefundToDeposit(mapping, refund); } } }
internal RefundTypeMapping getRefundTypeByEaglesoftAdjustmentType(EaglesoftAdjustmentType eaglesoftAdjustment) { foreach (RefundTypeMapping r in RefundTypeMappings) { if (r.EaglesoftAdjustment.Equals(eaglesoftAdjustment)) return r; } return null; }