Complete API for recurring transactions.

This commit is contained in:
James Cole
2018-06-30 06:14:39 +02:00
parent b8893bcad7
commit 0509e54a95
8 changed files with 98 additions and 47 deletions

View File

@@ -73,7 +73,7 @@ class RecurrenceTransaction extends Model
*/
public function destinationAccount(): BelongsTo
{
return $this->belongsTo(Account::class);
return $this->belongsTo(Account::class,'destination_id');
}
/**
@@ -109,7 +109,7 @@ class RecurrenceTransaction extends Model
*/
public function sourceAccount(): BelongsTo
{
return $this->belongsTo(Account::class);
return $this->belongsTo(Account::class,'source_id');
}
/**