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

(-)a/Koha/Schema/Result/Aqorder.pm (-2 / +17 lines)
Lines 794-799 __PACKAGE__->belongs_to( Link Here
794
  },
794
  },
795
);
795
);
796
796
797
=head2 suggestions
798
799
Type: has_many
800
801
Related object: L<Koha::Schema::Result::Suggestion>
802
803
=cut
804
805
__PACKAGE__->has_many(
806
  "suggestions",
807
  "Koha::Schema::Result::Suggestion",
808
  { "foreign.ordernumber" => "self.ordernumber" },
809
  { cascade_copy => 0, cascade_delete => 0 },
810
);
811
797
=head2 borrowernumbers
812
=head2 borrowernumbers
798
813
799
Type: many_to_many
814
Type: many_to_many
Lines 805-812 Composing rels: L</aqorder_users> -> borrowernumber Link Here
805
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
820
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
806
821
807
822
808
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-04-30 13:34:51
823
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-10-17 13:11:14
809
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FyRqcj4OmkBR6PpW3tY8bA
824
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hoDBpSPphnZZgVVZB02Obw
810
825
811
__PACKAGE__->belongs_to(
826
__PACKAGE__->belongs_to(
812
  "basket",
827
  "basket",
(-)a/Koha/Schema/Result/Suggestion.pm (-3 / +32 lines)
Lines 219-224 isbn of the suggested item Link Here
219
219
220
foreign key linking the suggestion to the biblio table after the suggestion has been ordered
220
foreign key linking the suggestion to the biblio table after the suggestion has been ordered
221
221
222
=head2 ordernumber
223
224
  data_type: 'integer'
225
  is_foreign_key: 1
226
  is_nullable: 1
227
228
foreign key linking the suggestion to the acquisitions order after the suggestion has been ordered
229
222
=head2 reason
230
=head2 reason
223
231
224
  data_type: 'mediumtext'
232
  data_type: 'mediumtext'
Lines 360-365 __PACKAGE__->add_columns( Link Here
360
  { data_type => "varchar", is_nullable => 1, size => 30 },
368
  { data_type => "varchar", is_nullable => 1, size => 30 },
361
  "biblionumber",
369
  "biblionumber",
362
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
370
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
371
  "ordernumber",
372
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
363
  "reason",
373
  "reason",
364
  { data_type => "mediumtext", is_nullable => 1 },
374
  { data_type => "mediumtext", is_nullable => 1 },
365
  "patronreason",
375
  "patronreason",
Lines 516-521 __PACKAGE__->belongs_to( Link Here
516
  },
526
  },
517
);
527
);
518
528
529
=head2 ordernumber
530
531
Type: belongs_to
532
533
Related object: L<Koha::Schema::Result::Aqorder>
534
535
=cut
536
537
__PACKAGE__->belongs_to(
538
  "ordernumber",
539
  "Koha::Schema::Result::Aqorder",
540
  { ordernumber => "ordernumber" },
541
  {
542
    is_deferrable => 1,
543
    join_type     => "LEFT",
544
    on_delete     => "SET NULL",
545
    on_update     => "CASCADE",
546
  },
547
);
548
519
=head2 rejectedby
549
=head2 rejectedby
520
550
521
Type: belongs_to
551
Type: belongs_to
Lines 557-564 __PACKAGE__->belongs_to( Link Here
557
);
587
);
558
588
559
589
560
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-07 20:40:07
590
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-10-17 13:11:14
561
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NSX5a0b7SJyhLVT8Fx4jaQ
591
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WUh0j1iuWDQ1oiKplb0meg
562
592
563
__PACKAGE__->belongs_to(
593
__PACKAGE__->belongs_to(
564
  "suggester",
594
  "suggester",
565
- 

Return to bug 35717