diff --git a/migrations/0224.sql b/migrations/0224.sql index b889fcae..dfdaff37 100644 --- a/migrations/0224.sql +++ b/migrations/0224.sql @@ -130,4 +130,4 @@ WHERE sl.undone = 0 OR (sl.transaction_type = 'stock-edit-new' AND sl.stock_id IN (SELECT stock_id FROM stock_edited_entries) AND sl.id IN (SELECT stock_log_id_of_newest_edited_entry FROM stock_edited_entries)) ) AND IFNULL(sl.price, 0) > 0 - AND IFNULL(sl.amount, 0) > 0 + AND IFNULL(sl.amount, 0) > 0;