private void AssignSalesInvoiceDetails(SalesOrderVm viewModel, ISalesOrder salesOrder) { viewModel.OpenSalesInvoiceCount = salesOrder.GetOpenInvoices().Count; }