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

(-)a/C4/Acquisition.pm (+29 lines)
Lines 265-270 sub ReopenBasket { Link Here
265
        WHERE basketno = ?
265
        WHERE basketno = ?
266
        AND orderstatus NOT IN ( 'complete', 'cancelled' )
266
        AND orderstatus NOT IN ( 'complete', 'cancelled' )
267
        }, {}, $basketno);
267
        }, {}, $basketno);
268
269
    # Log the basket reopening
270
    if (C4::Context->preference("AcqLog")) {
271
        logaction(
272
            'ACQUISITIONS',
273
            'REOPEN_BASKET',
274
            $basketno
275
        );
276
    }
268
    return;
277
    return;
269
}
278
}
270
279
Lines 607-612 sub ModBasketHeader { Link Here
607
        $sth2->execute($contractnumber,$basketno);
616
        $sth2->execute($contractnumber,$basketno);
608
    }
617
    }
609
618
619
    # Log the basket update
620
    if (C4::Context->preference("AcqLog")) {
621
        logaction(
622
            'ACQUISITIONS',
623
            'MODIFY_BASKET_HEADER',
624
            $basketno
625
        );
626
    }
627
628
    return;
610
    return;
629
    return;
611
}
630
}
612
631
Lines 787-792 sub ModBasketUsers { Link Here
787
    foreach my $basketuser_id (@basketusers_ids) {
806
    foreach my $basketuser_id (@basketusers_ids) {
788
        $sth->execute($basketno, $basketuser_id);
807
        $sth->execute($basketno, $basketuser_id);
789
    }
808
    }
809
810
    # Log the basket update
811
    if (C4::Context->preference("AcqLog")) {
812
        logaction(
813
            'ACQUISITIONS',
814
            'MODIFY_BASKET_USERS',
815
            $basketno
816
        );
817
    }
818
790
    return;
819
    return;
791
}
820
}
792
821
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-2 / +4 lines)
Lines 104-111 Link Here
104
[%        CASE 'STATUS_CHANGE'  %]Change ILL request status
104
[%        CASE 'STATUS_CHANGE'  %]Change ILL request status
105
[%        CASE 'ADD_BASKET' %]Create an acquisitions basket
105
[%        CASE 'ADD_BASKET' %]Create an acquisitions basket
106
[%        CASE 'MODIFY_BASKET' %]Modify an acquisitions basket
106
[%        CASE 'MODIFY_BASKET' %]Modify an acquisitions basket
107
[%        CASE 'MODIFY_BASKET_HEADER' %]Modify an acquisitions basket header
108
[%        CASE 'MODIFY_BASKET_USERS' %]Modify an acquisitions basket's users
107
[%        CASE 'CLOSE_BASKET' %]Close an acquisitions basket
109
[%        CASE 'CLOSE_BASKET' %]Close an acquisitions basket
108
[%        CASE 'APPROVE_BASKET' %]Approve an acquisitions basket
110
[%        CASE 'APPROVE_BASKET' %]Approve an acquisitions basket
111
[%        CASE 'REOPEN_BASKET' %]Reopen an acquisitions basket
109
[%        CASE 'Run'    %]Run
112
[%        CASE 'Run'    %]Run
110
[%        CASE %][% action | html %]
113
[%        CASE %][% action | html %]
111
[%    END %]
114
[%    END %]
Lines 180-186 Link Here
180
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
183
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
181
                                    [% END %]
184
                                    [% END %]
182
185
183
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'CHANGE PASS' 'Run' 'ADD_BASKET' 'MODIFY_BASKET' 'CLOSE_BASKET' 'APPROVE_BASKET' ] %]
186
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'CHANGE PASS' 'Run' 'ADD_BASKET' 'MODIFY_BASKET' 'MODIFY_BASKET_HEADER' 'MODIFY_BASKET_USERS' 'CLOSE_BASKET' 'APPROVE_BASKET' 'REOPEN_BASKET' ] %]
184
                                        [% IF actions.grep(actx).size %]
187
                                        [% IF actions.grep(actx).size %]
185
                                            <label for="action[% actx | html %]" class="viewlog"><input type="checkbox" id="action[% actx | html %]" name="actions" value="[% actx | html %]" checked="checked"> [% PROCESS translate_log_action action=actx %]</label>
188
                                            <label for="action[% actx | html %]" class="viewlog"><input type="checkbox" id="action[% actx | html %]" name="actions" value="[% actx | html %]" checked="checked"> [% PROCESS translate_log_action action=actx %]</label>
186
                                        [% ELSE %]
189
                                        [% ELSE %]
187
- 

Return to bug 23971