No mostrar dia de pago en metodo de pago por tarjeta.

This commit is contained in:
Joan Sanchez 2017-06-08 16:53:10 +02:00
parent 8a31a3608b
commit 9aa549cfc5
3 changed files with 10 additions and 4 deletions

View File

@ -57,10 +57,9 @@ gulp.task('services', ['copy'], function() {
}
});
/* Nota (dani): Comentado para que no me borre el mock del Localizador
gulp.task('clean', function() {
return del(`${buildDir}/*`, {force: true});
}); */
});
// Spliting

View File

@ -24,7 +24,7 @@
<p style="text-align: justify">{{_.bodyDescription}}</p>
<p style="text-align: justify">
<div>{{_.paymentMethod}}: <strong style="font-size: 16px">{{payMethod}}</strong></div>
<div>{{_.paymentDay}}: <strong style="font-size: 16px">{{paymentDay}} {{_.everyMonth}}</strong></div>
{{{paymentDay}}}
</p>
<p style="text-align: justify">{{paymentAdvice}}</p>
<p style="text-align: justify">{{_.notifyError}}</p>

View File

@ -4,13 +4,20 @@ var format = require(path.join(__dirname, '../../util/format.js'));
module.exports = class PaymentUpdate {
getData(params, cb) {
let query = `SELECT pm.name AS payMethod, pm.id AS payMethodId, c.vencimiento AS paymentDay, c.CC AS accountAddress
let query = `SELECT pm.name AS payMethod, pm.id AS payMethodId, c.vencimiento AS payDay, c.CC AS accountAddress
FROM Clientes AS c JOIN pay_met AS pm ON pm.id = c.pay_met_id WHERE Id_Cliente = ?`;
database.pool.query(query, [params.userId], (error, result) => {
Object.assign(this, result[0]);
cb();
});
}
get paymentDay() {
if (this.payMethodId != 5) {
return `<div>${this._.paymentDay}: <strong style="font-size: 16px">${this.payDay} ${this._.everyMonth}</strong></div>`;
}
}
get paymentAdvice() {
switch (this.payMethodId) {
case 4: