View | Details | Raw Unified | Return to bug 8007
Collapse All | Expand All

(-)a/Koha/Schema/Result/Borrower.pm (+15 lines)
Lines 813-818 __PACKAGE__->has_many( Link Here
813
  { cascade_copy => 0, cascade_delete => 0 },
813
  { cascade_copy => 0, cascade_delete => 0 },
814
);
814
);
815
815
816
=head2 discharges
817
818
Type: has_many
819
820
Related object: L<Koha::Schema::Result::Discharge>
821
822
=cut
823
824
__PACKAGE__->has_many(
825
  "discharges",
826
  "Koha::Schema::Result::Discharge",
827
  { "foreign.borrower" => "self.borrowernumber" },
828
  { cascade_copy => 0, cascade_delete => 0 },
829
);
830
816
=head2 hold_fill_targets
831
=head2 hold_fill_targets
817
832
818
Type: has_many
833
Type: has_many
(-)a/Koha/Schema/Result/BorrowerDebarment.pm (-4 / +4 lines)
Lines 45-51 __PACKAGE__->table("borrower_debarments"); Link Here
45
45
46
  data_type: 'enum'
46
  data_type: 'enum'
47
  default_value: 'MANUAL'
47
  default_value: 'MANUAL'
48
  extra: {list => ["SUSPENSION","OVERDUES","MANUAL"]}
48
  extra: {list => ["SUSPENSION","OVERDUES","MANUAL","DISCHARGE"]}
49
  is_nullable: 0
49
  is_nullable: 0
50
50
51
=head2 comment
51
=head2 comment
Lines 84-90 __PACKAGE__->add_columns( Link Here
84
  {
84
  {
85
    data_type => "enum",
85
    data_type => "enum",
86
    default_value => "MANUAL",
86
    default_value => "MANUAL",
87
    extra => { list => ["SUSPENSION", "OVERDUES", "MANUAL"] },
87
    extra => { list => ["SUSPENSION", "OVERDUES", "MANUAL", "DISCHARGE"] },
88
    is_nullable => 0,
88
    is_nullable => 0,
89
  },
89
  },
90
  "comment",
90
  "comment",
Lines 136-143 __PACKAGE__->belongs_to( Link Here
136
);
136
);
137
137
138
138
139
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 01:30:23
139
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-01-07 17:25:44
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Vq6rOYGJBK8Mw2YFAX52Vg
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4KkoPNcgZoANIScMWUyS/w
141
141
142
142
143
# You can replace this text with custom code or comments, and it will be preserved on regeneration
143
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Discharge.pm (-1 / +91 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::Discharge;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::Discharge
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<discharges>
19
20
=cut
21
22
__PACKAGE__->table("discharges");
23
24
=head1 ACCESSORS
25
26
=head2 borrower
27
28
  data_type: 'integer'
29
  is_foreign_key: 1
30
  is_nullable: 1
31
32
=head2 needed
33
34
  data_type: 'timestamp'
35
  datetime_undef_if_invalid: 1
36
  is_nullable: 1
37
38
=head2 validated
39
40
  data_type: 'timestamp'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
43
44
=cut
45
46
__PACKAGE__->add_columns(
47
  "borrower",
48
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
49
  "needed",
50
  {
51
    data_type => "timestamp",
52
    datetime_undef_if_invalid => 1,
53
    is_nullable => 1,
54
  },
55
  "validated",
56
  {
57
    data_type => "timestamp",
58
    datetime_undef_if_invalid => 1,
59
    is_nullable => 1,
60
  },
61
);
62
63
=head1 RELATIONS
64
65
=head2 borrower
66
67
Type: belongs_to
68
69
Related object: L<Koha::Schema::Result::Borrower>
70
71
=cut
72
73
__PACKAGE__->belongs_to(
74
  "borrower",
75
  "Koha::Schema::Result::Borrower",
76
  { borrowernumber => "borrower" },
77
  {
78
    is_deferrable => 1,
79
    join_type     => "LEFT",
80
    on_delete     => "CASCADE",
81
    on_update     => "CASCADE",
82
  },
83
);
84
85
86
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-01-08 18:15:13
87
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uq7Zb0SNf2mD3cpC4oub9A
88
89
90
# You can replace this text with custom code or comments, and it will be preserved on regeneration
91
1;

Return to bug 8007