protected void CopyFrom(vRpt_CustomerLedgerSummary rptCust)
 {
     CustomerId         = rptCust.CustomerId;
     ClientId           = rptCust.ClientId;
     Invoices           = rptCust.Invoices;
     payments           = rptCust.Payments;
     OutstandingBalance = rptCust.OutstandingBalance;
 }
        internal static CustomerLedgerSummary MapFromModel(vRpt_CustomerLedgerSummary rptwsr, string cname)
        {
            var Cust = new CustomerLedgerSummary();

            Cust.CopyFrom(rptwsr);

            Cust.CustomerName = cname;

            return(Cust);
        }