This commit is contained in:
James Cole 2018-08-18 20:13:26 +02:00
parent ba09901228
commit 21bff39e31
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 11 additions and 11 deletions

View File

@ -48,15 +48,15 @@ class BillFormRequest extends Request
public function getBillData(): array
{
return [
'name' => $this->string('name'),
'amount_min' => $this->string('amount_min'),
'transaction_currency_id' => $this->integer('transaction_currency_id'),
'amount_max' => $this->string('amount_max'),
'date' => $this->date('date'),
'repeat_freq' => $this->string('repeat_freq'),
'skip' => $this->integer('skip'),
'notes' => $this->string('notes'),
'active' => $this->boolean('active'),
'name' => $this->string('name'),
'amount_min' => $this->string('amount_min'),
'currency_id' => $this->integer('transaction_currency_id'),
'amount_max' => $this->string('amount_max'),
'date' => $this->date('date'),
'repeat_freq' => $this->string('repeat_freq'),
'skip' => $this->integer('skip'),
'notes' => $this->string('notes'),
'active' => $this->boolean('active'),
];
}

View File

@ -47,7 +47,7 @@ class BillUpdateService
$bill->amount_min = $data['amount_min'];
$bill->amount_max = $data['amount_max'];
$bill->date = $data['date'];
$bill->transaction_currency_id = $data['transaction_currency_id'];
$bill->transaction_currency_id = $data['currency_id'];
$bill->repeat_freq = $data['repeat_freq'];
$bill->skip = $data['skip'];
$bill->automatch = true;
@ -55,7 +55,7 @@ class BillUpdateService
$bill->save();
// update note:
if (isset($data['notes']) && null !== $data['notes']) {
if (isset($data['notes'])) {
$this->updateNote($bill, (string)$data['notes']);
}