<<

NAME

Koha::Schema::Result::AccountOffset

TABLE: account_offsets

ACCESSORS

id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

unique identifier for each offset

credit_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

The id of the accountline the increased the patron's balance

debit_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

The id of the accountline that decreased the patron's balance

type

  data_type: 'enum'
  extra: {list => ["CREATE","APPLY","VOID","OVERDUE_INCREASE","OVERDUE_DECREASE"]}
  is_nullable: 0

The type of offset this is

amount

  data_type: 'decimal'
  is_nullable: 0
  size: [26,6]

The amount of the change

created_on

  data_type: 'timestamp'
  datetime_undef_if_invalid: 1
  default_value: current_timestamp
  is_nullable: 0

PRIMARY KEY

RELATIONS

credit

Type: belongs_to

Related object: Koha::Schema::Result::Accountline

debit

Type: belongs_to

Related object: Koha::Schema::Result::Accountline

<<