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 633-638 sub ModBasketHeader { Link Here
633
        $sth2->execute($contractnumber,$basketno);
642
        $sth2->execute($contractnumber,$basketno);
634
    }
643
    }
635
644
645
    # Log the basket update
646
    if (C4::Context->preference("AcqLog")) {
647
        logaction(
648
            'ACQUISITIONS',
649
            'MODIFY_BASKET_HEADER',
650
            $basketno
651
        );
652
    }
653
654
    return;
636
    return;
655
    return;
637
}
656
}
638
657
Lines 813-818 sub ModBasketUsers { Link Here
813
    foreach my $basketuser_id (@basketusers_ids) {
832
    foreach my $basketuser_id (@basketusers_ids) {
814
        $sth->execute($basketno, $basketuser_id);
833
        $sth->execute($basketno, $basketuser_id);
815
    }
834
    }
835
836
    # Log the basket update
837
    if (C4::Context->preference("AcqLog")) {
838
        logaction(
839
            'ACQUISITIONS',
840
            'MODIFY_BASKET_USERS',
841
            $basketno
842
        );
843
    }
844
816
    return;
845
    return;
817
}
846
}
818
847
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-2 / +4 lines)
Lines 59-66 Link Here
59
[%        CASE 'STATUS_CHANGE'  %]Change ILL request status
59
[%        CASE 'STATUS_CHANGE'  %]Change ILL request status
60
[%        CASE 'ADD_BASKET' %]Create an acquisitions basket
60
[%        CASE 'ADD_BASKET' %]Create an acquisitions basket
61
[%        CASE 'MODIFY_BASKET' %]Modify an acquisitions basket
61
[%        CASE 'MODIFY_BASKET' %]Modify an acquisitions basket
62
[%        CASE 'MODIFY_BASKET_HEADER' %]Modify an acquisitions basket header
63
[%        CASE 'MODIFY_BASKET_USERS' %]Modify an acquisitions basket's users
62
[%        CASE 'CLOSE_BASKET' %]Close an acquisitions basket
64
[%        CASE 'CLOSE_BASKET' %]Close an acquisitions basket
63
[%        CASE 'APPROVE_BASKET' %]Approve an acquisitions basket
65
[%        CASE 'APPROVE_BASKET' %]Approve an acquisitions basket
66
[%        CASE 'REOPEN_BASKET' %]Reopen an acquisitions basket
64
[%        CASE 'Run'    %]Run
67
[%        CASE 'Run'    %]Run
65
[%        CASE %][% action | html %]
68
[%        CASE %][% action | html %]
66
[%    END %]
69
[%    END %]
Lines 128-134 Link Here
128
                                        <option value="">All</option>
131
                                        <option value="">All</option>
129
                                    [% END %]
132
                                    [% END %]
130
133
131
                                    [% 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' ] %]
134
                                    [% 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' ] %]
132
                                        [% IF actions.grep(actx).size %]
135
                                        [% IF actions.grep(actx).size %]
133
                                            <option value="[% actx | html %]" selected="selected">[% PROCESS translate_log_action action=actx %]</option>
136
                                            <option value="[% actx | html %]" selected="selected">[% PROCESS translate_log_action action=actx %]</option>
134
                                        [% ELSE %]
137
                                        [% ELSE %]
135
- 

Return to bug 23971