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

(-)a/Koha/Account/Credit.pm (+1 lines)
Lines 48-53 sub to_api_mapping { Link Here
48
        borrowernumber    => 'patron_id',
48
        borrowernumber    => 'patron_id',
49
        branchcode        => 'library_id',
49
        branchcode        => 'library_id',
50
        issue_id          => undef,
50
        issue_id          => undef,
51
        old_issue_id      => undef,
51
        itemnumber        => undef,
52
        itemnumber        => undef,
52
        manager_id        => 'user_id',
53
        manager_id        => 'user_id',
53
        note              => 'internal_note',
54
        note              => 'internal_note',
(-)a/Koha/Account/Debit.pm (+1 lines)
Lines 48-53 sub to_api_mapping { Link Here
48
        borrowernumber    => 'patron_id',
48
        borrowernumber    => 'patron_id',
49
        branchcode        => 'library_id',
49
        branchcode        => 'library_id',
50
        issue_id          => 'checkout_id',
50
        issue_id          => 'checkout_id',
51
        old_issue_id      => 'old_checkout_id',
51
        itemnumber        => 'item_id',
52
        itemnumber        => 'item_id',
52
        manager_id        => 'user_id',
53
        manager_id        => 'user_id',
53
        note              => 'internal_note',
54
        note              => 'internal_note',
(-)a/Koha/Account/Line.pm (+1 lines)
Lines 982-987 sub to_api_mapping { Link Here
982
        borrowernumber    => 'patron_id',
982
        borrowernumber    => 'patron_id',
983
        branchcode        => 'library_id',
983
        branchcode        => 'library_id',
984
        issue_id          => 'checkout_id',
984
        issue_id          => 'checkout_id',
985
        old_issue_id      => 'old_checkout_id',
985
        itemnumber        => 'item_id',
986
        itemnumber        => 'item_id',
986
        manager_id        => 'user_id',
987
        manager_id        => 'user_id',
987
        note              => 'internal_note',
988
        note              => 'internal_note',
(-)a/api/v1/swagger/definitions/account_line.yaml (+5 lines)
Lines 24-29 properties: Link Here
24
      - integer
24
      - integer
25
      - "null"
25
      - "null"
26
    description: Internal identifier for the checkout the account line is related to
26
    description: Internal identifier for the checkout the account line is related to
27
  old_checkout_id:
28
    type:
29
      - integer
30
      - "null"
31
    description: Internal identifier for the old checkout the account line is related to
27
  credit_number:
32
  credit_number:
28
    type:
33
    type:
29
      - string
34
      - string
(-)a/api/v1/swagger/definitions/debit.yaml (+5 lines)
Lines 23-28 properties: Link Here
23
      - integer
23
      - integer
24
      - "null"
24
      - "null"
25
    description: Internal identifier for the checkout the account line is related to
25
    description: Internal identifier for the checkout the account line is related to
26
  old_checkout_id:
27
    type:
28
      - integer
29
      - "null"
30
    description: Internal identifier for the old checkout the account line is related to
26
  date:
31
  date:
27
    type: string
32
    type: string
28
    format: date-time
33
    format: date-time
(-)a/t/db_dependent/api/v1/patrons_accounts.t (-2 / +1 lines)
Lines 90-96 subtest 'get_balance() tests' => sub { Link Here
90
    $debit_2->discard_changes;
90
    $debit_2->discard_changes;
91
91
92
    $t->get_ok("//$userid:$password@/api/v1/patrons/$patron_id/account")
92
    $t->get_ok("//$userid:$password@/api/v1/patrons/$patron_id/account")
93
      ->status_is(200)->json_is(
93
      ->status_is(200)->or(sub { diag $t->tx->res->body } )->json_is(
94
        {
94
        {
95
            balance            => 100.01,
95
            balance            => 100.01,
96
            outstanding_debits => {
96
            outstanding_debits => {
97
- 

Return to bug 22421