Ejemplo n.º 1
0
        static void DebitAdd()
        {
            string guid = InputString("GUID:", _LastAccountGuid, true);

            if (!String.IsNullOrEmpty(guid))
            {
                decimal amount       = InputDecimal("Amount:", 1m, true, true);
                string  notes        = InputString("Notes:", null, true);
                string  summarizedBy = InputString("Summarized By:", null, true);
                bool    isCommitted  = InputBoolean("Already Committed", false);
                string  entryGuid    = _Ledger.AddDebit(guid, amount, notes, summarizedBy, isCommitted);
                Console.WriteLine(entryGuid);
            }
        }