Beispiel #1
0
        /// <summary>
        /// Get CashBook Detail
        /// </summary>
        /// <param name="ctx"></param>
        /// <param name="fields"></param>
        /// <returns></returns>
        public Dictionary <string, string> GetCashBook(Ctx ctx, string fields)
        {
            string[] paramValue = fields.Split(',');
            //Assign parameter value
            int C_CashBook_ID = Util.GetValueOfInt(paramValue[0].ToString());
            //End Assign parameter value
            MCashBook cBook = new MCashBook(ctx, C_CashBook_ID, null);
            Dictionary <string, string> result = new Dictionary <string, string>();

            result["C_Currency_ID"] = cBook.GetC_Currency_ID().ToString();
            return(result);
        }
Beispiel #2
0
        /// <summary>
        /// Load Specific Document Details
        /// </summary>
        /// <returns>error message or null</returns>
        public override String LoadDocumentDetails()
        {
            MCash cash = (MCash)GetPO();

            SetDateDoc(cash.GetStatementDate());
            BeginningBalance = cash.GetBeginningBalance();
            HeaderCasbookID  = cash.GetC_CashBook_ID();

            //	Amounts
            SetAmount(Doc.AMTTYPE_Gross, cash.GetStatementDifference());

            //  Set CashBook Org & Currency
            MCashBook cb = MCashBook.Get(GetCtx(), cash.GetC_CashBook_ID());

            SetC_CashBook_ID(cb.GetC_CashBook_ID());
            SetC_Currency_ID(cb.GetC_Currency_ID());

            //	Contained Objects
            _lines = LoadLines(cash, cb);
            log.Fine("Lines=" + _lines.Length);
            return(null);
        }