sql_buche(): automatic S <-> H switching on negative amount