This commit is contained in:
Kenio 2025-08-04 19:30:19 -03:00
parent bd608e44c7
commit 4d33effbf6

View file

@ -218,7 +218,7 @@ class FinancialMovements
fm.reference as movement_reference,
fm.status,
c.reference,
c.fantasy_name,
c.name_fantasy,
c.contract_type,
u.name_first,
u.name_last,
@ -365,7 +365,7 @@ class FinancialMovements
fm.movement_user_confirmed,
fm.reference,
fm.sicoob_response,
c.fantasy_name,
c.name_fantasy,
c.document,
c.reference as client_reference,
c.responsible,
@ -546,7 +546,7 @@ class FinancialMovements
fm.movement_user_confirmed,
fm.reference,
fm.sicoob_response,
c.fantasy_name
c.name_fantasy
from financial_movements fm
left join companies c on fm.company_id = c.company_id
where fm.reference = :reference';
@ -637,7 +637,7 @@ class FinancialMovements
fm.status,
fm.reference,
c.reference,
c.fantasy_name,
c.name_fantasy,
c.contract_type
from financial_movements fm
left join companies c on fm.company_id = c.company_id
@ -689,7 +689,7 @@ class FinancialMovements
fm.reference as movement_reference,
fm.status,
c.reference,
c.fantasy_name,
c.name_fantasy,
c.contract_type,
(select fmn.notification_date from financial_movements_notify fmn where fmn.financial_movements_id = fm.financial_movements_id order by fmn.financial_movements_notify_id desc limit 0, 1) as notification_date,
(select fmn.message from financial_movements_notify fmn where fmn.financial_movements_id = fm.financial_movements_id order by fmn.financial_movements_notify_id desc limit 0, 1) as message,
@ -727,7 +727,7 @@ class FinancialMovements
$this->and .= ' and fm.description like concat(\'%\', :description, \'%\')';
$this->and .= ' or c.reference like concat(\'%\', :reference, \'%\')';
$this->and .= ' or c.fantasy_name like concat(\'%\', :fantasy_name, \'%\')';
$this->and .= ' or c.name_fantasy like concat(\'%\', :fantasy_name, \'%\')';
$this->and .= ' or fm.reference = :movement_reference';
}
}
@ -851,7 +851,7 @@ class FinancialMovements
$this->and .= ' and fm.description like concat(\'%\', :description, \'%\')';
$this->and .= ' or c.reference like concat(\'%\', :reference, \'%\')';
$this->and .= ' or c.fantasy_name like concat(\'%\', :fantasy_name, \'%\')';
$this->and .= ' or c.name_fantasy like concat(\'%\', :fantasy_name, \'%\')';
$this->and .= ' or fm.reference = :movement_reference';
}
}
@ -1002,7 +1002,7 @@ class FinancialMovements
fm.status,
fm.sicoob_response,
c.reference,
c.fantasy_name,
c.name_fantasy,
c.contract_type
from financial_movements fm
left join companies c on fm.company_id = c.company_id
@ -1050,7 +1050,7 @@ class FinancialMovements
fm.status,
fm.sicoob_response,
c.reference,
c.fantasy_name,
c.name_fantasy,
c.contract_type
from financial_movements fm
left join companies c on fm.company_id = c.company_id