🐛 Don't import only the last remittance...

This commit is contained in:
Yohann D'ANELLO 2020-07-26 09:05:44 +02:00
parent 85568dd4f5
commit 748ad7eb48
1 changed files with 2 additions and 2 deletions

View File

@ -284,7 +284,7 @@ class Command(ImportCommand):
@transaction.atomic @transaction.atomic
def import_remittances(self, cur, chunk_size): def import_remittances(self, cur, chunk_size):
bulk_mgr = BulkCreateManager(chunk_size=chunk_size) bulk_mgr = BulkCreateManager(chunk_size=chunk_size)
cur.execute("SELECT id, date, commentaire, close FROM remises WHERE id = 105 ORDER BY id;") cur.execute("SELECT id, date, commentaire, close FROM remises ORDER BY id;")
n = cur.rowcount n = cur.rowcount
pk_remittance = 1 pk_remittance = 1
@ -309,7 +309,7 @@ class Command(ImportCommand):
@timed @timed
def import_checks(self, cur): def import_checks(self, cur):
cur.execute("SELECT id, nom, prenom, banque, idtransaction, idremise " cur.execute("SELECT id, nom, prenom, banque, idtransaction, idremise "
"FROM cheques WHERE idremise = 105 ORDER BY id;") "FROM cheques ORDER BY id;")
n = cur.rowcount n = cur.rowcount
for idx, row in enumerate(cur): for idx, row in enumerate(cur):