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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt (+16 lines)
Lines 53-58 Link Here
53
                                    <th>Nonpublic notes</th>
53
                                    <th>Nonpublic notes</th>
54
                                    <th>Call number</th>
54
                                    <th>Call number</th>
55
                                    <th>Create item when receiving</th>
55
                                    <th>Create item when receiving</th>
56
                                    <th>Warn when late</th>
56
                                    <th>Expiration date</th>
57
                                    <th>Expiration date</th>
57
                                </tr>
58
                                </tr>
58
                            </thead>
59
                            </thead>
Lines 75-80 Link Here
75
                                                <span>No</span>
76
                                                <span>No</span>
76
                                            [% END %]
77
                                            [% END %]
77
                                        </td>
78
                                        </td>
79
                                        <td>
80
                                            [% IF subscription.warn_when_late %]
81
                                                <span>Yes</span>
82
                                            [% ELSE %]
83
                                                <span>No</span>
84
                                            [% END %]
85
                                        </td>
78
                                        <td>[% subscription.enddate | $KohaDates %]</td>
86
                                        <td>[% subscription.enddate | $KohaDates %]</td>
79
                                    </tr>
87
                                    </tr>
80
                                [% END %]
88
                                [% END %]
Lines 145-150 Link Here
145
                                    </select>
153
                                    </select>
146
154
147
                                </li>
155
                                </li>
156
                                <li>
157
                                    <label for="warn_when_late">Warn when late: </label>
158
                                    <select id="warn_when_late" name="warn_when_late">
159
                                        <option value="">No change</option>
160
                                        <option value="0">No</option>
161
                                        <option value="1">Yes</option>
162
                                    </select>
163
                                </li>
148
                                <li>
164
                                <li>
149
                                    <label for="enddate">Expiration date: </label>
165
                                    <label for="enddate">Expiration date: </label>
150
                                    <input type="text" class="flatpickr" id="enddate" name="enddate" placeholder="No change"/>
166
                                    <input type="text" class="flatpickr" id="enddate" name="enddate" placeholder="No change"/>
(-)a/serials/subscription-batchedit.pl (-1 / +1 lines)
Lines 61-66 if ( $op eq 'cud-batchedit' ) { Link Here
61
        notes           => scalar $cgi->param('notes'),
61
        notes           => scalar $cgi->param('notes'),
62
        internalnotes   => scalar $cgi->param('internalnotes'),
62
        internalnotes   => scalar $cgi->param('internalnotes'),
63
        serialsadditems => scalar $cgi->param('serialsadditems'),
63
        serialsadditems => scalar $cgi->param('serialsadditems'),
64
        warn_when_late  => scalar $cgi->param('warn_when_late'),
64
    );
65
    );
65
    # If we convert a blank string we get todays date, we should only convert enddate if it is not blank
66
    # If we convert a blank string we get todays date, we should only convert enddate if it is not blank
66
    $params{'enddate'} = dt_from_string( scalar $cgi->param('enddate') ) if $cgi->param('enddate');
67
    $params{'enddate'} = dt_from_string( scalar $cgi->param('enddate') ) if $cgi->param('enddate');
67
- 

Return to bug 30095