belongsTo(Expense::class); } /** * Get the sale that owns the Transaction * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function sale(): BelongsTo { return $this->belongsTo(Sale::class); } /** * Get the account that owns the Transaction * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function account(): BelongsTo { return $this->belongsTo(Account::class); } /** * Get the ledgers associated with the Transaction * * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function ledgers(): HasMany { return $this->hasMany(Ledger::class); } }