Atualizando config

This commit is contained in:
Kenio 2025-08-06 08:13:13 -03:00
parent e720cdf11f
commit 9b2b7fe09c
2 changed files with 6 additions and 6 deletions

View file

@ -952,7 +952,7 @@ function checkNumber(e)
}
/** Função de Upload */
function uploadFiles(folder, table, action, documents_categorys_id, indexing, financial_movements_id, clients_id) {
function uploadFiles(folder, table, action, documents_categorys_id, indexing, financial_movements_id, company_id) {
$('#selectFiles').filestyle({
buttonName : 'btn-info',
@ -1042,7 +1042,7 @@ function uploadFiles(folder, table, action, documents_categorys_id, indexing, fi
'ACTION' : action,
'documents_categorys_id' : documents_categorys_id,
'financial_movements_id' : financial_movements_id,
'clients_id' : clients_id
'company_id' : company_id
},
/** Antes de enviar */
@ -1190,7 +1190,7 @@ function uploadFiles(folder, table, action, documents_categorys_id, indexing, fi
badge += ' <input type="hidden" name="TABLE" value="documents" />';
badge += ' <input type="hidden" name="ACTION" value="documents_save" />';
badge += ' <input type="hidden" name="FOLDER" value="action" />';
badge += ' <input type="hidden" name="clients_id" value="'+result.clients_id+'" />';
badge += ' <input type="hidden" name="company_id" value="'+result.company_id+'" />';
/** Armazena os formulários de envios */
formSend.push('#'+'frmDocuments-'+id);

View file

@ -14,13 +14,13 @@ try{
/** Parametros de entrada */
$documentsCategorysId = isset($_POST['documents_categorys_id']) ? (int)filter_input(INPUT_POST, 'documents_categorys_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
$clientsId = isset($_POST['clients_id']) ? (int)filter_input(INPUT_POST, 'clients_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
$companyId = isset($_POST['company_id']) ? (int)filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_SPECIAL_CHARS) : 0;
$name = isset($_POST['name']) ? (string)filter_input(INPUT_POST, 'name', FILTER_SANITIZE_SPECIAL_CHARS) : '';
$file = isset($_POST['file']) ? (string)filter_input(INPUT_POST, 'file', FILTER_SANITIZE_SPECIAL_CHARS) : '';
/** Validando os campos de entrada */
$DocumentsValidate->setDocumentsCategorysId($documentsCategorysId);
$DocumentsValidate->setClientsId($clientsId);
$DocumentsValidate->setcompanyId($companyId);
$DocumentsValidate->setName($name);
$DocumentsValidate->setFile($file);
@ -92,7 +92,7 @@ try{
'tags' => $tag,
'formats' => $format,
'requireds' => $required,
'clients_id' => $DocumentsValidate->getClientsId()
'company_id' => $DocumentsValidate->getcompanyId()
];