diff --git a/vendor/action/companies_budgets/companies_budgets_financial_entries.php b/vendor/action/companies_budgets/companies_budgets_financial_entries.php index 99adc1b..fc70739 100644 --- a/vendor/action/companies_budgets/companies_budgets_financial_entries.php +++ b/vendor/action/companies_budgets/companies_budgets_financial_entries.php @@ -88,7 +88,7 @@ try{ $next = $FinancialEntriesValidate->getDescription() . ' - '.($i).'/'.$FinancialEntriesValidate->getDuration(); /** Gera a referência da movimentação para gravar no boleto */ - $reference = $Result->financial_movements_id.$Result->reference_client.'-'; + $reference = $Result->financial_movements_id.((int)$Result->reference_client).'-'; /** Atualiza a movimentação */ $FinancialMovements->SaveMovementBudgets($Result->financial_movements_id, diff --git a/vendor/model/FinancialEntries.class.php b/vendor/model/FinancialEntries.class.php index bd063a3..8b834c7 100644 --- a/vendor/model/FinancialEntries.class.php +++ b/vendor/model/FinancialEntries.class.php @@ -494,7 +494,7 @@ class FinancialEntries $this->clientBudgetsResult = $this->GetBudgets($this->companiesBudgetsId); /** Gera a referência da movimentação para gravar no boleto */ - $this->reference = $this->lastid.$this->clientBudgetsResult->reference_client.'-'.($i+1); + $this->reference = $this->lastid.((int)$this->clientBudgetsResult->reference_client).'-'.($i+1); /** Consulta SQL */