inyectamos datos del recibo al sat
This commit is contained in:
@@ -70,7 +70,7 @@ const agregarRecibo = async (folio, monto, fechaTicket, numeroCuenta) => {
|
||||
|
||||
return conn
|
||||
.query(
|
||||
`INSERT INTO recibo(folio_recibo, monto, fecha_recibo, fechaRegistro, id_cuenta, id_usuario) values(${folio}, ${monto}, ${fechaTicket}, now() ,${numeroCuenta}, 6)`
|
||||
`INSERT INTO recibo(folio_recibo, monto, fecha_recibo, fecha_registro, id_cuenta, id_usuario) values(${folio}, ${monto}, STR_TO_DATE('${fechaTicket}', '%m/%d/%Y'), now() ,${numeroCuenta}, 6)`
|
||||
)
|
||||
.then((rows) => {
|
||||
conn.end();
|
||||
|
||||
Reference in New Issue
Block a user