diff --git a/wrenchboard/email/JOB/job_pastdue_m.mailfile b/wrenchboard/email/JOB/job_pastdue_m.mailfile
index 914185c6..431a4519 100644
--- a/wrenchboard/email/JOB/job_pastdue_m.mailfile
+++ b/wrenchboard/email/JOB/job_pastdue_m.mailfile
@@ -77,7 +77,7 @@ Hello {{firstname}},
-|
+ |
{{\inv_items}}
@@ -90,7 +90,7 @@ Hello {{firstname}},
-|
+ |
Login into your account to manage your task(s).
|
diff --git a/wrenchboard/src/shared_tool/email.cc b/wrenchboard/src/shared_tool/email.cc
index 96a5131f..3973c294 100644
--- a/wrenchboard/src/shared_tool/email.cc
+++ b/wrenchboard/src/shared_tool/email.cc
@@ -234,9 +234,12 @@ long cron_email(long mailtype, CVars in, CVars &out) {
x["job_list_head"] = "";
res = pgsql_query(" SELECT 'Project ID:'||mc.contract||' Title:'||mc.title AS project,mc.delivery_date::date delivery_date,"
- "m.firstname||' '||m.lastname AS Client, 'Timeline: '||mc.timeline_days||' day(s) Price: #'||mc.price*0.01 AS detail ,mc.description, "
+ "m.firstname||' '||m.lastname AS Client, 'Timeline: '||mc.timeline_days||' day(s) Reward:'||mc.price*0.01||' '||cc.description AS detail ,mc.description, "
"(CASE WHEN mc.status = 1 AND mc.delivery_date > now() THEN 'Active' WHEN mc.status = 1 AND mc.delivery_date f = pgsql_fetch_assoc(res, i);
if (f.empty()) continue;
CVars rec;
map_to_cvars(f, rec);
-
sprintf(listing_items, "| %s | %s | %s %s | ", in["color"].c_str(), rec["project"].c_str(), rec["detail"].c_str(), rec["status"].c_str(), rec["delivery_date"].c_str());
inv_list->LetStr("pin", listing_items);
inv_list->CloseElement();
//
- if (c > 2) {
+ c++;
+ if (c > 1) {
c = 0;
}
}
|