fix: formatea fechas de historial de inventario a hora local del navegador
This commit is contained in:
@@ -374,7 +374,7 @@ def get_movement_history(conn, inventory_id, limit=50):
|
||||
history.append({
|
||||
'id': r[0], 'type': r[1], 'quantity': r[2],
|
||||
'cost': float(r[3]) if r[3] else None,
|
||||
'notes': r[4], 'date': str(r[5]),
|
||||
'notes': r[4], 'date': r[5].isoformat() if r[5] else None,
|
||||
'employee': r[6], 'branch_id': r[7]
|
||||
})
|
||||
cur.close()
|
||||
|
||||
Reference in New Issue
Block a user