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

(-)a/Koha/Schema/Result/Aqorder.pm (-2 / +32 lines)
Lines 366-371 was this price uncertain (1 for yes, 0 for no) Link Here
366
366
367
links this order line to a subscription (subscription.subscriptionid)
367
links this order line to a subscription (subscription.subscriptionid)
368
368
369
=head2 suggestionid
370
371
  data_type: 'integer'
372
  is_foreign_key: 1
373
  is_nullable: 1
374
375
links this order line to a suggestion (suggestion.suggestionid)
376
369
=head2 parent_ordernumber
377
=head2 parent_ordernumber
370
378
371
  data_type: 'integer'
379
  data_type: 'integer'
Lines 534-539 __PACKAGE__->add_columns( Link Here
534
  { data_type => "tinyint", is_nullable => 1 },
542
  { data_type => "tinyint", is_nullable => 1 },
535
  "subscriptionid",
543
  "subscriptionid",
536
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
544
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
545
  "suggestionid",
546
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
537
  "parent_ordernumber",
547
  "parent_ordernumber",
538
  { data_type => "integer", is_nullable => 1 },
548
  { data_type => "integer", is_nullable => 1 },
539
  "orderstatus",
549
  "orderstatus",
Lines 803-808 __PACKAGE__->belongs_to( Link Here
803
  },
813
  },
804
);
814
);
805
815
816
=head2 suggestionid
817
818
Type: belongs_to
819
820
Related object: L<Koha::Schema::Result::Suggestion>
821
822
=cut
823
824
__PACKAGE__->belongs_to(
825
  "suggestionid",
826
  "Koha::Schema::Result::Suggestion",
827
  { suggestionid => "suggestionid" },
828
  {
829
    is_deferrable => 1,
830
    join_type     => "LEFT",
831
    on_delete     => "SET NULL",
832
    on_update     => "CASCADE",
833
  },
834
);
835
806
=head2 borrowernumbers
836
=head2 borrowernumbers
807
837
808
Type: many_to_many
838
Type: many_to_many
Lines 814-821 Composing rels: L</aqorder_users> -> borrowernumber Link Here
814
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
844
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
815
845
816
846
817
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-05 12:31:38
847
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-10 12:49:29
818
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Bt8GMBWcWja5oa7r+8Vbig
848
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QII6LGWS65eIOYsDpSWTqA
819
849
820
__PACKAGE__->belongs_to(
850
__PACKAGE__->belongs_to(
821
  "basket",
851
  "basket",
(-)a/Koha/Schema/Result/Suggestion.pm (-3 / +17 lines)
Lines 416-421 __PACKAGE__->belongs_to( Link Here
416
  },
416
  },
417
);
417
);
418
418
419
=head2 aqorders
420
421
Type: has_many
422
423
Related object: L<Koha::Schema::Result::Aqorder>
424
425
=cut
426
427
__PACKAGE__->has_many(
428
  "aqorders",
429
  "Koha::Schema::Result::Aqorder",
430
  { "foreign.suggestionid" => "self.suggestionid" },
431
  { cascade_copy => 0, cascade_delete => 0 },
432
);
433
419
=head2 biblionumber
434
=head2 biblionumber
420
435
421
Type: belongs_to
436
Type: belongs_to
Lines 557-564 __PACKAGE__->belongs_to( Link Here
557
);
572
);
558
573
559
574
560
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-07 20:40:07
575
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-10 12:49:30
561
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NSX5a0b7SJyhLVT8Fx4jaQ
576
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z1aF1it3LooyS8nMMiTrSw
562
577
563
__PACKAGE__->belongs_to(
578
__PACKAGE__->belongs_to(
564
  "suggester",
579
  "suggester",
565
- 

Return to bug 28844