diff --git a/routes/apartment.js b/routes/apartment.js index 5466d4a..68da2d3 100644 --- a/routes/apartment.js +++ b/routes/apartment.js @@ -26,7 +26,7 @@ module.exports.set = function(router, pool) { var apartmentTransferBudget = 0; var emailsList = []; - var emailToRemove = await pool.query("SELECT email FROM account WHERE role = 'senior_student' or role = 'apartment' or email = 'catering@ligercambodia.org' or role = 'central_bank' ORDER BY role, username"); + var emailToRemove = await pool.query("SELECT email FROM account WHERE role = 'senior_student' or role = 'apartment' or role = 'central_bank' ORDER BY role, username"); for(var i = 0; i < emailToRemove.rows.length; i++){ emailsList.push(emailToRemove.rows[i].email); @@ -146,7 +146,9 @@ module.exports.set = function(router, pool) { budgetRemain = fix.fixROE(budgetRemain); apartmentTransferBudget = fix.fixROE(apartmentTransferBudget); - + for (var i = 0; i < dataTransferFinish.rows.length; i++){ + // dataTransferFinish.rows[i].date = moment(dataTransferFinish.rows[i].date).tz("Asia/Bangkok"); + } response.render('apartment/apartment_history', { user: request.user, data: personality.rows[0].role, diff --git a/routes/transfer.js b/routes/transfer.js index 87b80b9..1fe56ab 100644 --- a/routes/transfer.js +++ b/routes/transfer.js @@ -32,7 +32,7 @@ module.exports.set = function(router, pool) { var emailsList = []; - var emailToRemove = await pool.query("SELECT email FROM account WHERE role = 'senior_student' or role = 'apartment' or email = 'catering@ligercambodia.org' or role = 'central_bank' ORDER BY role, username"); + var emailToRemove = await pool.query("SELECT email FROM account WHERE role = 'senior_student' or role = 'apartment' or role = 'central_bank' ORDER BY role, username"); for(var i = 0; i < emailToRemove.rows.length; i++){ emailsList.push(emailToRemove.rows[i].email); diff --git a/views/keeper/d-pExchange.handlebars b/views/keeper/d-pExchange.handlebars index 7f14979..b2326a2 100644 --- a/views/keeper/d-pExchange.handlebars +++ b/views/keeper/d-pExchange.handlebars @@ -21,7 +21,7 @@
- +
diff --git a/views/keeper/p-dExchange.handlebars b/views/keeper/p-dExchange.handlebars index 7da4463..da71f7c 100644 --- a/views/keeper/p-dExchange.handlebars +++ b/views/keeper/p-dExchange.handlebars @@ -40,7 +40,7 @@
- + @@ -88,7 +88,7 @@
- + @@ -136,7 +136,7 @@
- + @@ -184,7 +184,7 @@
- + @@ -251,7 +251,7 @@
- + @@ -299,7 +299,7 @@
- + @@ -347,7 +347,7 @@
- + @@ -395,7 +395,7 @@
- + diff --git a/views/personal/history_personal.handlebars b/views/personal/history_personal.handlebars index f94c48f..44fe94f 100644 --- a/views/personal/history_personal.handlebars +++ b/views/personal/history_personal.handlebars @@ -19,7 +19,6 @@ Date User Amount - Initial Budget Remaining Budget Reason @@ -35,6 +34,7 @@ Sent from {{this.sender}} {{/ifCondA}} P {{this.amount}} + {{#ifCondA sender '==' ../email}} P {{this.sender_resulting_budget}} {{else}}