Atualizando consolidação
This commit is contained in:
parent
e73631e78c
commit
dde89a01be
2 changed files with 33 additions and 29 deletions
|
|
@ -6,6 +6,9 @@ use vendor\controller\documents\DocumentsValidate;
|
||||||
use vendor\controller\registroDetalheSegmentoT\RegistroDetalheSegmentoTValidate;
|
use vendor\controller\registroDetalheSegmentoT\RegistroDetalheSegmentoTValidate;
|
||||||
use vendor\controller\registroDetalheSegmentoU\RegistroDetalheSegmentoUValidate;
|
use vendor\controller\registroDetalheSegmentoU\RegistroDetalheSegmentoUValidate;
|
||||||
|
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
ini_set('display_errors', 'On');
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
/** Verifica se o token de acesso é válido */
|
/** Verifica se o token de acesso é válido */
|
||||||
|
|
|
||||||
59
vendor/model/FinancialConsolidations.class.php
vendored
59
vendor/model/FinancialConsolidations.class.php
vendored
|
|
@ -237,37 +237,38 @@ class FinancialConsolidations
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
/** Consulta SQL */
|
|
||||||
$this->sql = 'insert into financial_consolidations(financial_consolidations_id,
|
|
||||||
users_id,
|
|
||||||
company_id,
|
|
||||||
file_consolidation,
|
|
||||||
total_movements,
|
|
||||||
total_movements_to_be_consolidateds,
|
|
||||||
total_movements_not_found,
|
|
||||||
total_movements_localized,
|
|
||||||
total_movements_unpaid,
|
|
||||||
total_movements_already_consolidated,
|
|
||||||
inconsistencies,
|
|
||||||
type
|
|
||||||
) values (:financial_consolidations_id,
|
|
||||||
:users_id,
|
|
||||||
:company_id,
|
|
||||||
:file_consolidation,
|
|
||||||
:total_movements,
|
|
||||||
:total_movements_to_be_consolidateds,
|
|
||||||
:total_movements_not_found,
|
|
||||||
:total_movements_localized,
|
|
||||||
:total_movements_unpaid,
|
|
||||||
:total_movements_already_consolidated,
|
|
||||||
:inconsistencies,
|
|
||||||
:type)';
|
|
||||||
|
|
||||||
/** Preparo o sql para receber os valores */
|
|
||||||
$this->stmt = $this->connection->connect()->prepare($this->sql);
|
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
|
/** Consulta SQL */
|
||||||
|
$this->sql = 'insert into financial_consolidations(financial_consolidations_id,
|
||||||
|
users_id,
|
||||||
|
company_id,
|
||||||
|
file_consolidation,
|
||||||
|
total_movements,
|
||||||
|
total_movements_to_be_consolidateds,
|
||||||
|
total_movements_not_found,
|
||||||
|
total_movements_localized,
|
||||||
|
total_movements_unpaid,
|
||||||
|
total_movements_already_consolidated,
|
||||||
|
inconsistencies,
|
||||||
|
type
|
||||||
|
) values (:financial_consolidations_id,
|
||||||
|
:users_id,
|
||||||
|
:company_id,
|
||||||
|
:file_consolidation,
|
||||||
|
:total_movements,
|
||||||
|
:total_movements_to_be_consolidateds,
|
||||||
|
:total_movements_not_found,
|
||||||
|
:total_movements_localized,
|
||||||
|
:total_movements_unpaid,
|
||||||
|
:total_movements_already_consolidated,
|
||||||
|
:inconsistencies,
|
||||||
|
:type)';
|
||||||
|
|
||||||
|
/** Preparo o sql para receber os valores */
|
||||||
|
$this->stmt = $this->connection->connect()->prepare($this->sql);
|
||||||
|
|
||||||
|
|
||||||
/** Inicia a transação */
|
/** Inicia a transação */
|
||||||
$this->connection->connect()->beginTransaction();
|
$this->connection->connect()->beginTransaction();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue