Atualizando
This commit is contained in:
parent
3be7af634b
commit
787ac64be7
1 changed files with 16 additions and 4 deletions
20
vendor/model/FinancialEntries.class.php
vendored
20
vendor/model/FinancialEntries.class.php
vendored
|
|
@ -153,10 +153,10 @@ class FinancialEntries
|
|||
public function GetBudgets(int $companiesBudgetsId)
|
||||
{
|
||||
/** Parametros de entrada */
|
||||
$this->companiesBudgetsId = $companiesBudgetsId;
|
||||
echo $this->companiesBudgetsId = $companiesBudgetsId;
|
||||
|
||||
/** Consulta SQL */
|
||||
$this->sql = 'select fm.financial_movements_id,
|
||||
echo $this->sql = 'select fm.financial_movements_id,
|
||||
fm.financial_accounts_id,
|
||||
fm.financial_entries_id,
|
||||
fm.financial_outputs_id,
|
||||
|
|
@ -292,7 +292,19 @@ class FinancialEntries
|
|||
}
|
||||
|
||||
/** Insere um novo registro no banco */
|
||||
public function Save(int $financialEntriesId, int $companyId, int $companiesBudgetsId, string $description, int $fixed, int $duration, string $startDate, float $entrieValue, string $endDate, int $financialAccountsId, string $active, int $financialCategoriesId, ? string $reference)
|
||||
public function Save(int $financialEntriesId,
|
||||
int $companyId,
|
||||
int $companiesBudgetsId,
|
||||
string $description,
|
||||
int $fixed,
|
||||
int $duration,
|
||||
string $startDate,
|
||||
float $entrieValue,
|
||||
string $endDate,
|
||||
int $financialAccountsId,
|
||||
string $active,
|
||||
int $financialCategoriesId,
|
||||
? string $reference)
|
||||
{
|
||||
|
||||
/** Parametros */
|
||||
|
|
@ -482,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.'/'.$this->clientBudgetsResult->reference_client.'-'.($i+1);
|
||||
$this->reference = $this->lastid.$this->clientBudgetsResult->reference_client.'-'.($i+1);
|
||||
|
||||
|
||||
/** Consulta SQL */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue