diff --git a/vendor/model/FinancialMovements.class.php b/vendor/model/FinancialMovements.class.php index 932fa7a..7c36959 100644 --- a/vendor/model/FinancialMovements.class.php +++ b/vendor/model/FinancialMovements.class.php @@ -106,8 +106,7 @@ class FinancialMovements $this->sql = 'select count(financial_movements_id) as amount_output, sum(movement_value) as total_value_output from financial_movements - where company_id = :company_id - and financial_outputs_id > 0 + where financial_outputs_id > 0 and movement_date_paid is null'; /** Preparo o SQL para execução */