Exemple #1
0
 public Xact(Xact xact)
     : base(xact)
 {
     Code  = xact.Code;
     Payee = xact.Payee;
     CreateLookupItems();
 }
Exemple #2
0
 private static Value GetCode(Xact xact)
 {
     if (!String.IsNullOrEmpty(xact.Code))
     {
         return(Value.StringValue(xact.Code));
     }
     else
     {
         return(Value.Empty);
     }
 }
Exemple #3
0
 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);
     }
 }
Exemple #4
0
 public Xact(Xact xact)
     : base(xact)
 {
     Code  = xact.Code;
     Payee = xact.Payee;
 }