Esempio n. 1
0
 /**
  *  Parent Cosntructor
  *	@param cashbook parent
  */
 public MCashbookLine(MCashBook cashbook)
     : this(cashbook.GetCtx(), 0, cashbook.Get_TrxName())
 {
     SetClientOrg(cashbook);
     SetC_CashBook_ID(cashbook.GetC_CashBook_ID());
     _parent = cashbook;
 }
Esempio n. 2
0
 /**
  *  Parent Constructor
  *	@param cb cash book
  *	@param today date - if null today
  */
 public MCash(MCashBook cb, DateTime?today)
     : this(cb.GetCtx(), 0, cb.Get_TrxName())
 {
     SetClientOrg(cb);
     SetC_CashBook_ID(cb.GetC_CashBook_ID());
     if (today != null)
     {
         SetStatementDate(today);
         SetDateAcct(today);
         //String name = DisplayType.getDateFormat(DisplayType.Date).format(today) + " " + cb.GetName();
         String name = String.Format("{0:d}", today) + " " + cb.GetName();
         SetName(name);
     }
     _book = cb;
 }