Ajuste, melhroando visualização de documentos na movimentação
This commit is contained in:
parent
43f6b19629
commit
c32f4c584d
2 changed files with 18 additions and 15 deletions
30
vendor/model/FinancialMovements.class.php
vendored
30
vendor/model/FinancialMovements.class.php
vendored
|
|
@ -1459,20 +1459,22 @@ class FinancialMovements
|
|||
$this->financialMovementsId = $financialMovementsId;
|
||||
|
||||
/** Consulta SQL */
|
||||
$this->sql = 'select documents_id,
|
||||
documents_drafts_id,
|
||||
documents_categorys_id,
|
||||
user_id,
|
||||
company_id,
|
||||
financial_movements_id,
|
||||
description,
|
||||
date_register,
|
||||
archive,
|
||||
extension,
|
||||
active,
|
||||
tag
|
||||
from documents
|
||||
where financial_movements_id = :financial_movements_id';
|
||||
$this->sql = 'select d.documents_id,
|
||||
d.documents_drafts_id,
|
||||
d.documents_categorys_id,
|
||||
d.user_id,
|
||||
d.company_id,
|
||||
d.financial_movements_id,
|
||||
d.description,
|
||||
d.date_register,
|
||||
d.archive,
|
||||
d.extension,
|
||||
d.active,
|
||||
d.tag,
|
||||
dc.description as category
|
||||
from documents d
|
||||
left join documents_categorys dc on d.documents_categorys_id = dc.documents_categorys_id
|
||||
where d.financial_movements_id = :financial_movements_id';
|
||||
|
||||
/** Preparo o SQL para execução */
|
||||
$this->stmt = $this->connection->connect()->prepare($this->sql);
|
||||
|
|
|
|||
|
|
@ -138,7 +138,8 @@ try{
|
|||
foreach($FinancialDocumentsResult as $FinancialDocumentsKey => $Result){ ?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo date('d/m/Y', strtotime($Result->date_register));?></td>
|
||||
<td class="text-center" width="120"><?php echo date('d/m/Y', strtotime($Result->date_register));?></td>
|
||||
<td class="text-center" width="120"><?php echo $Result->category;?></td>
|
||||
<td><?php echo $Result->description;?></td>
|
||||
<td width="10">
|
||||
<button class="btn btn-info btn-sm"><i class="fas fa-arrow-down" onclick="request('FOLDER=action&TABLE=financial_movements&ACTION=financial_movements_download_file&documents_id=<?php echo $Result->documents_id;?>', '#sendMovement', true, '', '', '', 'Preparando arquivo para download', 'blue', 'circle', 'sm', '')" ></i></button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue