probar sin compilar
This commit is contained in:
@@ -46,6 +46,22 @@ app.get('/traer_persona', async(req, res) => {
|
||||
aux.bienvenida = 'No';
|
||||
aux.comprobante_pago = false;
|
||||
aux.carta_aceptacion = false;
|
||||
aux.rfc='No_registrado';
|
||||
aux.domicilio='No_registrado';
|
||||
aux.f_telefono='No_registrado';
|
||||
aux.f_correo='No_registrado';
|
||||
|
||||
let f_cad=`select * from factura where id_persona=${p[i].id_persona};`;
|
||||
let f_ans=await query(f_cad);
|
||||
if(f_ans.length>0)
|
||||
{
|
||||
aux.rfc=f_ans[0].rfc;
|
||||
aux.domicilio=f_ans[0].domicilio;
|
||||
aux.f_telefono=f_ans[0].telefono;
|
||||
aux.f_correo=f_ans[0].correo;
|
||||
}
|
||||
|
||||
|
||||
if (fs.existsSync(`./files/carta_aceptacion-${p[i].id_persona}.docx`)) {
|
||||
|
||||
aux.carta_aceptacion = true;
|
||||
|
||||
Reference in New Issue
Block a user