This commit is contained in:
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using rockfishCore.Models;
|
||||
using System.Globalization;
|
||||
|
||||
namespace rockfishCore.Util
|
||||
{
|
||||
@@ -54,7 +55,7 @@ namespace rockfishCore.Util
|
||||
// string companyName = ct.Customer.Select(r => new { r.Id, r.Name })
|
||||
// .Where(r => r.Id == purchases[0].CustomerId)
|
||||
// .First().Name;
|
||||
string companyName=cust.Name;
|
||||
string companyName = cust.Name;
|
||||
|
||||
//TAGS EXPECTED: {{BODY=}}, {{TITLE=}}
|
||||
//REPLACEMENT TOKENS EXPECTED: {{SUBLIST}}
|
||||
@@ -64,8 +65,10 @@ namespace rockfishCore.Util
|
||||
var pr = products.Where(p => p.ProductCode == pc.ProductCode).First();
|
||||
decimal dRenew = Convert.ToDecimal(pr.RenewPrice) / 100m;
|
||||
decimal dMonthly = Convert.ToDecimal(pr.RenewPrice) / 1200m;
|
||||
string sRenew = String.Format("{0:C}", dRenew);
|
||||
string sMonthly = String.Format("{0:C}", dMonthly);
|
||||
//string sRenew = String.Format("{0:C}", dRenew);
|
||||
string sRenew = dRenew.ToString("c", new CultureInfo("en-US"));
|
||||
//string sMonthly = String.Format("{0:C}", dMonthly);
|
||||
string sMonthly = dMonthly.ToString("c", new CultureInfo("en-US"));
|
||||
string sRenewDate = DateUtil.EpochToDate(pc.ExpireDate).ToString("D");
|
||||
|
||||
sublist.Append("\t- ");
|
||||
|
||||
Reference in New Issue
Block a user