public Xact(Xact xact) : base(xact) { Code = xact.Code; Payee = xact.Payee; CreateLookupItems(); }
private static Value GetCode(Xact xact) { if (!String.IsNullOrEmpty(xact.Code)) { return(Value.StringValue(xact.Code)); } else { return(Value.Empty); } }
public void Amount(Amount amount) { if (First) { NullPost.Amount = amount.Negated(); NullPost.Flags = NullPost.Flags | SupportsFlagsEnum.POST_CALCULATED; First = false; } else { Post p = new Post(NullPost.Account, amount.Negated()); p.Flags = p.Flags | SupportsFlagsEnum.ITEM_GENERATED | SupportsFlagsEnum.POST_CALCULATED; p.State = NullPost.State; Xact.AddPost(p); } }
public Xact(Xact xact) : base(xact) { Code = xact.Code; Payee = xact.Payee; }