Menu

## PayrollTransaction extends Model
in package
uses SoftDeletes

PayrollTransaction.php : 39

Class PayrollTransaction

Model for managing payroll transactions and payment records.

##### Tags

mixin

### Table of Contents

#### Properties

$account : TransactionAccount
$account_id : int
$amount : decimal
$attachment : string|null
$created_at : DateTime
$deleted_at : DateTime
$id : int
$payment_method : string
$payroll : Payroll
$payroll_id : int
$paytype_id : int
$reference_number : string|null
$remarks : string|null
$school_id : int
$staff_id : int
$transaction_date : DateTime
$transaction_detail : array<string|int, mixed>|null
$transaction_no : string
$transactiontype : TransactionType
$updated_at : DateTime
$user : User
$casts : mixed
$fillable : mixed

#### Methods

account() : BelongsTo
  Get the transaction account for this transaction.
payroll() : BelongsTo
  Get the payroll record for this transaction.
transactiontype() : BelongsTo
  Get the transaction type for this transaction.
user() : BelongsTo
  Get the staff member for this transaction.

### Properties

#### $account read-only

PayrollTransaction.php : 0
`public TransactionAccount $account`

#### $account_id

PayrollTransaction.php : 0
`public int $account_id`

#### $amount

PayrollTransaction.php : 0
`public decimal $amount`

#### $attachment

PayrollTransaction.php : 0
`public string|null $attachment`

#### $created_at

PayrollTransaction.php : 0
`public DateTime $created_at`

#### $deleted_at

PayrollTransaction.php : 0
`public DateTime $deleted_at`

#### $id

PayrollTransaction.php : 0
`public int $id`

#### $payment_method

PayrollTransaction.php : 0
`public string $payment_method`

#### $payroll read-only

PayrollTransaction.php : 0
`public Payroll $payroll`

#### $payroll_id

PayrollTransaction.php : 0
`public int $payroll_id`

#### $paytype_id

PayrollTransaction.php : 0
`public int $paytype_id`

#### $reference_number

PayrollTransaction.php : 0
`public string|null $reference_number`

#### $remarks

PayrollTransaction.php : 0
`public string|null $remarks`

#### $school_id

PayrollTransaction.php : 0
`public int $school_id`

#### $staff_id

PayrollTransaction.php : 0
`public int $staff_id`

#### $transaction_date

PayrollTransaction.php : 0
`public DateTime $transaction_date`

#### $transaction_detail

PayrollTransaction.php : 0
`public array<string|int, mixed>|null $transaction_detail`

#### $transaction_no

PayrollTransaction.php : 0
`public string $transaction_no`

#### $transactiontype read-only

PayrollTransaction.php : 0
`public TransactionType $transactiontype`

#### $updated_at

PayrollTransaction.php : 0
`public DateTime $updated_at`

#### $user read-only

PayrollTransaction.php : 0
`public User $user`

#### $casts

PayrollTransaction.php : 44
`protected mixed $casts = ['transaction_detail' => 'array']`

#### $fillable

PayrollTransaction.php : 46
`protected mixed $fillable = ['school_id', 'transaction_no', 'paytype_id', 'account_id', 'staff_id', 'payroll_id', 'transaction_date', 'amount', 'payment_method', 'transaction_detail', 'reference_number', 'attachment', 'remarks']`

### Methods

#### account()

PayrollTransaction.php : 85

Get the transaction account for this transaction.

`public account() : BelongsTo`

##### Return values

BelongsTo

#### payroll()

PayrollTransaction.php : 75

Get the payroll record for this transaction.

`public payroll() : BelongsTo`

##### Return values

BelongsTo

#### transactiontype()

PayrollTransaction.php : 65

Get the transaction type for this transaction.

`public transactiontype() : BelongsTo`

##### Return values

BelongsTo

#### user()

PayrollTransaction.php : 55

Get the staff member for this transaction.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results