|
@@ -16,7 +16,7 @@ if __name__ == "__main__":
|
|
|
|
|
|
|
|
for num_aff in ("175256/1", "175195/1"):
|
|
for num_aff in ("175256/1", "175195/1"):
|
|
|
|
|
|
|
|
- num_piece = facture_db.first("SELECT * FROM tblPieceEntete WHERE memObsInterne='N° Affaire analytique : {}'".format(num_aff)).lngPieceId
|
|
|
|
|
|
|
+ num_piece = facture_db.first("SELECT * FROM tblPieceEntete WHERE memObsInterne like '*N° Affaire analytique : {}*'".format(num_aff)).lngPieceId
|
|
|
|
|
|
|
|
facture_db.execute("DELETE * FROM tblPieceEntete WHERE lngPieceId={}".format(num_piece))
|
|
facture_db.execute("DELETE * FROM tblPieceEntete WHERE lngPieceId={}".format(num_piece))
|
|
|
facture_db.execute("DELETE * FROM tblPieceLigne WHERE lngPieceId={}".format(num_piece))
|
|
facture_db.execute("DELETE * FROM tblPieceLigne WHERE lngPieceId={}".format(num_piece))
|