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.reference as movement_reference,
fm.status, fm.status,
c.reference, c.reference,
c.fantasy_name, c.name_fantasy,
c.contract_type, c.contract_type,
u.name_first, u.name_first,
u.name_last, u.name_last,
@ -365,7 +365,7 @@ class FinancialMovements
fm.movement_user_confirmed, fm.movement_user_confirmed,
fm.reference, fm.reference,
fm.sicoob_response, fm.sicoob_response,
c.fantasy_name, c.name_fantasy,
c.document, c.document,
c.reference as client_reference, c.reference as client_reference,
c.responsible, c.responsible,
@ -546,7 +546,7 @@ class FinancialMovements
fm.movement_user_confirmed, fm.movement_user_confirmed,
fm.reference, fm.reference,
fm.sicoob_response, fm.sicoob_response,
c.fantasy_name c.name_fantasy
from financial_movements fm from financial_movements fm
left join companies c on fm.company_id = c.company_id left join companies c on fm.company_id = c.company_id
where fm.reference = :reference'; where fm.reference = :reference';
@ -637,7 +637,7 @@ class FinancialMovements
fm.status, fm.status,
fm.reference, fm.reference,
c.reference, c.reference,
c.fantasy_name, c.name_fantasy,
c.contract_type c.contract_type
from financial_movements fm from financial_movements fm
left join companies c on fm.company_id = c.company_id left join companies c on fm.company_id = c.company_id
@ -689,7 +689,7 @@ class FinancialMovements
fm.reference as movement_reference, fm.reference as movement_reference,
fm.status, fm.status,
c.reference, c.reference,
c.fantasy_name, c.name_fantasy,
c.contract_type, 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.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, (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 .= ' and fm.description like concat(\'%\', :description, \'%\')';
$this->and .= ' or c.reference like concat(\'%\', :reference, \'%\')'; $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'; $this->and .= ' or fm.reference = :movement_reference';
} }
} }
@ -851,7 +851,7 @@ class FinancialMovements
$this->and .= ' and fm.description like concat(\'%\', :description, \'%\')'; $this->and .= ' and fm.description like concat(\'%\', :description, \'%\')';
$this->and .= ' or c.reference like concat(\'%\', :reference, \'%\')'; $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'; $this->and .= ' or fm.reference = :movement_reference';
} }
} }
@ -1002,7 +1002,7 @@ class FinancialMovements
fm.status, fm.status,
fm.sicoob_response, fm.sicoob_response,
c.reference, c.reference,
c.fantasy_name, c.name_fantasy,
c.contract_type c.contract_type
from financial_movements fm from financial_movements fm
left join companies c on fm.company_id = c.company_id left join companies c on fm.company_id = c.company_id
@ -1050,7 +1050,7 @@ class FinancialMovements
fm.status, fm.status,
fm.sicoob_response, fm.sicoob_response,
c.reference, c.reference,
c.fantasy_name, c.name_fantasy,
c.contract_type c.contract_type
from financial_movements fm from financial_movements fm
left join companies c on fm.company_id = c.company_id left join companies c on fm.company_id = c.company_id