| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Aqinvoice.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 33µs | 38µs | Class::C3::Componentised::BEGIN@1.2007 |
| 1 | 1 | 1 | 10µs | 22µs | Koha::Schema::Result::Aqinvoice::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 88µs | Koha::Schema::Result::Aqinvoice::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 19µs | Koha::Schema::Result::Aqinvoice::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 42µs | # spent 38µs (33+4) within Class::C3::Componentised::BEGIN@1.2007 which was called:
# once (33µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 38µs making 1 call to Class::C3::Componentised::BEGIN@1.2007
# spent 4µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::Aqinvoice; | ||||
| 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::Aqinvoice | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 33µs | # spent 22µs (10+11) within Koha::Schema::Result::Aqinvoice::BEGIN@13 which was called:
# once (10µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 22µs making 1 call to Koha::Schema::Result::Aqinvoice::BEGIN@13
# spent 11µs making 1 call to strict::import | ||
| 14 | 2 | 28µs | # spent 19µs (10+9) within Koha::Schema::Result::Aqinvoice::BEGIN@14 which was called:
# once (10µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 19µs making 1 call to Koha::Schema::Result::Aqinvoice::BEGIN@14
# spent 9µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 166µs | # spent 88µs (10+78) within Koha::Schema::Result::Aqinvoice::BEGIN@16 which was called:
# once (10µs+78µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 88µs making 1 call to Koha::Schema::Result::Aqinvoice::BEGIN@16
# spent 78µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<aqinvoices> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 334µs | __PACKAGE__->table("aqinvoices"); # spent 334µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 invoiceid | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 invoicenumber | ||||
| 33 | |||||
| 34 | data_type: 'mediumtext' | ||||
| 35 | is_nullable: 0 | ||||
| 36 | |||||
| 37 | =head2 booksellerid | ||||
| 38 | |||||
| 39 | data_type: 'integer' | ||||
| 40 | is_foreign_key: 1 | ||||
| 41 | is_nullable: 0 | ||||
| 42 | |||||
| 43 | =head2 shipmentdate | ||||
| 44 | |||||
| 45 | data_type: 'date' | ||||
| 46 | datetime_undef_if_invalid: 1 | ||||
| 47 | is_nullable: 1 | ||||
| 48 | |||||
| 49 | =head2 billingdate | ||||
| 50 | |||||
| 51 | data_type: 'date' | ||||
| 52 | datetime_undef_if_invalid: 1 | ||||
| 53 | is_nullable: 1 | ||||
| 54 | |||||
| 55 | =head2 closedate | ||||
| 56 | |||||
| 57 | data_type: 'date' | ||||
| 58 | datetime_undef_if_invalid: 1 | ||||
| 59 | is_nullable: 1 | ||||
| 60 | |||||
| 61 | =head2 shipmentcost | ||||
| 62 | |||||
| 63 | data_type: 'decimal' | ||||
| 64 | is_nullable: 1 | ||||
| 65 | size: [28,6] | ||||
| 66 | |||||
| 67 | =head2 shipmentcost_budgetid | ||||
| 68 | |||||
| 69 | data_type: 'integer' | ||||
| 70 | is_foreign_key: 1 | ||||
| 71 | is_nullable: 1 | ||||
| 72 | |||||
| 73 | =cut | ||||
| 74 | |||||
| 75 | 1 | 3.61ms | __PACKAGE__->add_columns( # spent 3.61ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 76 | "invoiceid", | ||||
| 77 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 78 | "invoicenumber", | ||||
| 79 | { data_type => "mediumtext", is_nullable => 0 }, | ||||
| 80 | "booksellerid", | ||||
| 81 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 82 | "shipmentdate", | ||||
| 83 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 84 | "billingdate", | ||||
| 85 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 86 | "closedate", | ||||
| 87 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 88 | "shipmentcost", | ||||
| 89 | { data_type => "decimal", is_nullable => 1, size => [28, 6] }, | ||||
| 90 | "shipmentcost_budgetid", | ||||
| 91 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 92 | ); | ||||
| 93 | |||||
| 94 | =head1 PRIMARY KEY | ||||
| 95 | |||||
| 96 | =over 4 | ||||
| 97 | |||||
| 98 | =item * L</invoiceid> | ||||
| 99 | |||||
| 100 | =back | ||||
| 101 | |||||
| 102 | =cut | ||||
| 103 | |||||
| 104 | 1 | 90µs | __PACKAGE__->set_primary_key("invoiceid"); # spent 90µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 105 | |||||
| 106 | =head1 RELATIONS | ||||
| 107 | |||||
| 108 | =head2 aqorders | ||||
| 109 | |||||
| 110 | Type: has_many | ||||
| 111 | |||||
| 112 | Related object: L<Koha::Schema::Result::Aqorder> | ||||
| 113 | |||||
| 114 | =cut | ||||
| 115 | |||||
| 116 | 1 | 343µs | __PACKAGE__->has_many( # spent 343µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 117 | "aqorders", | ||||
| 118 | "Koha::Schema::Result::Aqorder", | ||||
| 119 | { "foreign.invoiceid" => "self.invoiceid" }, | ||||
| 120 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 121 | ); | ||||
| 122 | |||||
| 123 | =head2 booksellerid | ||||
| 124 | |||||
| 125 | Type: belongs_to | ||||
| 126 | |||||
| 127 | Related object: L<Koha::Schema::Result::Aqbookseller> | ||||
| 128 | |||||
| 129 | =cut | ||||
| 130 | |||||
| 131 | 1 | 337µs | __PACKAGE__->belongs_to( # spent 337µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 132 | "booksellerid", | ||||
| 133 | "Koha::Schema::Result::Aqbookseller", | ||||
| 134 | { id => "booksellerid" }, | ||||
| 135 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 136 | ); | ||||
| 137 | |||||
| 138 | =head2 shipmentcost_budgetid | ||||
| 139 | |||||
| 140 | Type: belongs_to | ||||
| 141 | |||||
| 142 | Related object: L<Koha::Schema::Result::Aqbudget> | ||||
| 143 | |||||
| 144 | =cut | ||||
| 145 | |||||
| 146 | 1 | 825µs | __PACKAGE__->belongs_to( # spent 825µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 147 | "shipmentcost_budgetid", | ||||
| 148 | "Koha::Schema::Result::Aqbudget", | ||||
| 149 | { budget_id => "shipmentcost_budgetid" }, | ||||
| 150 | { | ||||
| 151 | is_deferrable => 1, | ||||
| 152 | join_type => "LEFT", | ||||
| 153 | on_delete => "SET NULL", | ||||
| 154 | on_update => "CASCADE", | ||||
| 155 | }, | ||||
| 156 | ); | ||||
| 157 | |||||
| 158 | |||||
| 159 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 | ||||
| 160 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3se4f767VfvBKaZ8tlXwHQ | ||||
| 161 | |||||
| 162 | |||||
| 163 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 164 | 1; |