Ajustar CompaniesProductsValidade.class.php

This commit is contained in:
Kenio 2025-07-17 16:18:33 -03:00
parent 4a3a9ac516
commit dc377449d2
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ try{
<td class="text-center" width="90"><?php echo $Main->setzeros($Result->maturity, 2);?></td>
<td class="text-right" width="120"><?php echo number_format($Result->product_value, 2, ',', '.');?></td>
<td class="text-center" width="20"><button type="button" class="btn btn-light btn-sm" onclick="questionModal('<?php echo $dataDelete;?>', '<?php echo $messageDelete;?>')" data-toggle="tooltip" data-placement="left" title="Excluir produto"><i class="far fa-trash-alt"></i></button></td>
<td class="text-center" width="20"><button type="button" class="btn btn-light btn-sm" onclick="request('FOLDER=view&TABLE=products_companies&ACTION=products_companies_form&product_id=<?php echo $Result->product_id;?>&company_id=<?php echo $Result->company_id;?>', '', true, '', '', '', 'Preparando formulário...', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Editar produto"><i class="far fa-edit"></i></button></td>
<td class="text-center" width="20"><button type="button" class="btn btn-light btn-sm" onclick="request('FOLDER=view&TABLE=products_companies&ACTION=products_companies_form&product_company_id=<?php echo $Result->product_company_id;?>&company_id=<?php echo $Result->company_id;?>', '', true, '', '', '', 'Preparando formulário...', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Editar produto"><i class="far fa-edit"></i></button></td>
</tr>
<?php } ?>

View file

@ -16,8 +16,8 @@ try{
$CompaniesProductsValidate = new CompaniesProductsValidate();
/** Parametros de entrada */
$clientProductId = isset($_POST['client_product_id']) ? (int)filter_input(INPUT_POST,'client_product_id', FILTER_SANITIZE_NUMBER_INT) : 0;
$companyId = isset($_POST['company_id']) ? (int)filter_input(INPUT_POST,'company_id', FILTER_SANITIZE_NUMBER_INT) : 0;
$productCompanyId = isset($_POST['product_company_id']) ? (int)filter_input(INPUT_POST,'product_company_id', FILTER_SANITIZE_NUMBER_INT) : 0;
$companyId = isset($_POST['company_id']) ? (int)filter_input(INPUT_POST,'company_id', FILTER_SANITIZE_NUMBER_INT) : 0;
/** Validando os campos de entrada */
$CompaniesProductsValidate->setProductCompanyId($clientProductId);