Fix aggiornamento listino di vendita
This commit is contained in:
@ -107,8 +107,8 @@ def update_lsv(connection, id_lsv, prezzo, prezzo_pubblico, listino, sc1, sc2, r
|
|||||||
if prezzo_pubblico != '':
|
if prezzo_pubblico != '':
|
||||||
prezzo = prezzo_pubblico
|
prezzo = prezzo_pubblico
|
||||||
|
|
||||||
query_lsv = "UPDATE lsv SET PREZZO = %s, TRL_CODICE = %s WHERE ID = %s"
|
query_lsv = "UPDATE lsv SET PREZZO = %s, TRL_CODICE = %s, DATA_INIZIO = %s WHERE ID = %s"
|
||||||
cursor_update.execute(query_lsv, (prezzo, ricarica, id_lsv))
|
cursor_update.execute(query_lsv, (prezzo, ricarica, date.today().strftime("%Y-%m-%d"), id_lsv))
|
||||||
|
|
||||||
if cursor_update.rowcount > 0:
|
if cursor_update.rowcount > 0:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user