Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion satcfdi/pacs/sat.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def _refresh_listado_69(connection: sqlite3.Connection, lista: TaxpayerStatusLis
with connection:
connection.execute("DELETE FROM listado_69 WHERE lista = ?", (lista.value,))
connection.executemany(
"INSERT INTO listado_69 (lista, rfc, supuesto) VALUES (?, ?, ?)",
"INSERT OR IGNORE INTO listado_69 (lista, rfc, supuesto) VALUES (?, ?, ?)",
((lista.value, rfc, sup) for rfc, sup in rows)
)
connection.execute(
Expand Down
1 change: 1 addition & 0 deletions tests/pac_sat_responses/listado_69/Cancelados.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ RFC,RAZON SOCIAL,SUPUESTO
AAA010101AAA,EMPRESA UNO SA DE CV,CANCELADOS POR INSOLVENCIA
CCC030303CCC,EMPRESA TRES SA DE CV,CANCELADOS
CCC030303FFF,EMPRESA TRES SA DE CV,CANCELADOS POR INSOLVENCIA
CCC030303CCC,EMPRESA TRES SA DE CV,CANCELADOS POR INSOLVENCIA
1 change: 1 addition & 0 deletions tests/pac_sat_responses/listado_69/Condonados_07_15.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RFC,RAZON SOCIAL,MOTIVO DE CONDONACION
AAA010101AAA,EMPRESA UNO SA DE CV,MOTIVO A
AAA010101NNN,EMPRESA UNO SA DE CV,MOTIVO B
AAA010101AAA,EMPRESA UNO SA DE CV,MOTIVO B
Loading