public static CustomerLedger MapFromCustomer(vRpt_CustomerLedger ledger, vRpt_Customer customer) { var cl = new CustomerLedger(); cl.CopyFromCustomer(customer); cl.CopyFromLedger(ledger); return(cl); }
public CustomerLedger[] GetCustomerLedger(int?franchiseId, DateTime fromDateInclusive, DateTime toDateExclusive) { var customerledger = GetCustomerLedgerData(franchiseId, fromDateInclusive, toDateExclusive).Select( p => CustomerLedger.MapFromCustomer(p.Key, p.Value)).ToArray(); return(customerledger); }