Ajustar companies_products_delete.php
This commit is contained in:
parent
eeaca3f099
commit
330bae566c
2 changed files with 3 additions and 3 deletions
|
|
@ -14,11 +14,11 @@ try{
|
|||
$CompaniesProductsValidate = new CompaniesProductsValidate();
|
||||
|
||||
/** Parametros de entrada */
|
||||
$CompanyProductId = isset($_POST['company_product_id']) ? (int)filter_input(INPUT_POST,'company_product_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($CompanyProductId);
|
||||
$CompaniesProductsValidate->setProductCompanyId($productCompanyId);
|
||||
$CompaniesProductsValidate->setCompanyId($CompanyId);
|
||||
|
||||
/** Verifico a existência de erros */
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ try{
|
|||
$messageDelete = '<b>Deseja realmente excluir o produto '.$Result->description.'?</b>';
|
||||
|
||||
/** Data para excluir */
|
||||
$dataDelete = 'TABLE=companies_products&ACTION=companies_products_delete&FOLDER=action&company_product_id='.$Result->company_product_id.'&company_id='.$Result->company_id;
|
||||
$dataDelete = 'TABLE=companies_products&ACTION=companies_products_delete&FOLDER=action&product_company_id='.$Result->product_company_id.'&company_id='.$Result->company_id;
|
||||
?>
|
||||
|
||||
<tr onclick="prepareBudget('#<?php echo $Result->product_id;?>', 'products', <?php echo $Result->products_id;?>, 0)" id="<?php echo $Result->product_id;?>">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue