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

(-)a/Koha/ERM/EUsage/CounterLog.pm (+15 lines)
Lines 31-36 Koha::ERM::EUsage::CounterLog - Koha ErmCounterLog Object class Link Here
31
31
32
=cut
32
=cut
33
33
34
35
=head3 borrowernumber
36
37
Return the borrower for this counter_file
38
39
=cut
40
41
sub borrowernumber {
42
    my ($self) = @_;
43
    my $borrowers_rs = $self->_result->borrowernumber;
44
    return unless $borrowers_rs;
45
    return Koha::Patron->_new_from_dbic($borrowers_rs);
46
}
47
48
34
=head2 Internal methods
49
=head2 Internal methods
35
50
36
=head3 _type
51
=head3 _type
(-)a/api/v1/swagger/definitions/erm_counter_log.yaml (-2 / +3 lines)
Lines 11-19 properties: Link Here
11
    - integer
11
    - integer
12
    - "null"
12
    - "null"
13
  borrowernumber:
13
  borrowernumber:
14
    description: borrowernumber of the counter_log
14
    type: object
15
    description: patron object
15
    type:
16
    type:
16
    - integer
17
    - object
17
    - "null"
18
    - "null"
18
  importdate:
19
  importdate:
19
    type: string
20
    type: string
(-)a/api/v1/swagger/paths/erm_counter_logs.yaml (-1 / +9 lines)
Lines 13-18 Link Here
13
        name: usage_data_provider_id
13
        name: usage_data_provider_id
14
        required: false
14
        required: false
15
        type: integer
15
        type: integer
16
      - name: x-koha-embed
17
        in: header
18
        required: false
19
        description: Embed list sent as a request header
20
        type: array
21
        items:
22
          type: string
23
          enum:
24
            - borrowernumber
16
      - $ref: "../swagger.yaml#/parameters/match"
25
      - $ref: "../swagger.yaml#/parameters/match"
17
      - $ref: "../swagger.yaml#/parameters/order_by"
26
      - $ref: "../swagger.yaml#/parameters/order_by"
18
      - $ref: "../swagger.yaml#/parameters/page"
27
      - $ref: "../swagger.yaml#/parameters/page"
19
- 

Return to bug 36627