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

(-)a/Koha/Schema/Result/Aqorder.pm (-2 / +17 lines)
Lines 803-808 __PACKAGE__->belongs_to( Link Here
803
  },
803
  },
804
);
804
);
805
805
806
=head2 suggestions
807
808
Type: has_many
809
810
Related object: L<Koha::Schema::Result::Suggestion>
811
812
=cut
813
814
__PACKAGE__->has_many(
815
  "suggestions",
816
  "Koha::Schema::Result::Suggestion",
817
  { "foreign.ordernumber" => "self.ordernumber" },
818
  { cascade_copy => 0, cascade_delete => 0 },
819
);
820
806
=head2 borrowernumbers
821
=head2 borrowernumbers
807
822
808
Type: many_to_many
823
Type: many_to_many
Lines 814-821 Composing rels: L</aqorder_users> -> borrowernumber Link Here
814
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
829
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
815
830
816
831
817
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-09-06 17:56:52
832
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-01-05 14:22:44
818
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aaj6mc1M13YFx5P0aXMiEQ
833
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ym0QsLhqY/xj2BuzZ9Idpg
819
834
820
__PACKAGE__->belongs_to(
835
__PACKAGE__->belongs_to(
821
  "basket",
836
  "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.07049 @ 2024-01-05 14:22:45
561
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NSX5a0b7SJyhLVT8Fx4jaQ
591
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:r/e9P7F0v11ITvFT1qQztQ
562
592
563
__PACKAGE__->belongs_to(
593
__PACKAGE__->belongs_to(
564
  "suggester",
594
  "suggester",
565
- 

Return to bug 35717