Ejemplo n.º 1
0
        private string GenerateOpeningBalanceRef(long maxSl)
        {
            var    refCode   = _iCommonManager.GetAllSubReferenceAccounts().ToList().Find(n => n.Id == Convert.ToInt32(ReferenceType.ClientOpeningBalance)).Code;
            string reference = $"{DateTime.Now.Year.ToString().Substring(2, 2)}{refCode}{maxSl + 1}";

            return(reference);
        }
Ejemplo n.º 2
0
        private string GenerateReceivableRef(int maxSl)
        {
            var    refCode   = _iCommonManager.GetAllSubReferenceAccounts().ToList().Find(n => n.Id == Convert.ToInt32(ReferenceType.AccountReceiveable)).Code;
            string reference = $"{DateTime.Now.Year.ToString().Substring(2, 2)}{refCode}{maxSl + 1}";

            return(reference);
        }
Ejemplo n.º 3
0
 public ActionResult ViewSubReference()
 {
     return(View(_iCommonManager.GetAllSubReferenceAccounts()));
 }