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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt (-23 / +22 lines)
Lines 127-133 Link Here
127
                                        <input type="checkbox" name="close" id="close" />
127
                                        <input type="checkbox" name="close" id="close" />
128
                                    </li>
128
                                    </li>
129
                                [% END %]
129
                                [% END %]
130
                            [% END %]
130
                            [% END # /IF ( invoiceclosedate ) %]
131
                        </ol>
131
                        </ol>
132
132
133
                        <fieldset class="rows">
133
                        <fieldset class="rows">
Lines 200-207 Link Here
200
                                                [% ELSE %]
200
                                                [% ELSE %]
201
                                                    <p title="Define values in authorised value category ADJ_REASON to enable">None</p>
201
                                                    <p title="Define values in authorised value category ADJ_REASON to enable">None</p>
202
                                                    <input type="hidden" name="reason" id="reason_[% adjustment.adjustment_id | html %]" value="" />
202
                                                    <input type="hidden" name="reason" id="reason_[% adjustment.adjustment_id | html %]" value="" />
203
                                                [% END %]
203
                                                [% END # /IF reasons.0 %]
204
                                            [% END %]
204
                                            [% END # /IF readonly %]
205
                                        </td>
205
                                        </td>
206
                                        <td>
206
                                        <td>
207
                                            [% IF readonly %]
207
                                            [% IF readonly %]
Lines 229-244 Link Here
229
                                                    <input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id | html %]"  value="[% adjustment.adjustment_id | html %]" />
229
                                                    <input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id | html %]"  value="[% adjustment.adjustment_id | html %]" />
230
                                                [% END %]
230
                                                [% END %]
231
                                            </td>
231
                                            </td>
232
                                        [% END %]
232
                                        [% END # /IF adjustment.encumber_open  %]
233
                                        [% UNLESS readonly %]
233
                                        [% UNLESS readonly %]
234
                                            <td>
234
                                            <td>
235
                                                <a class="btn btn-default btn-xs delete_adjustment" href="/cgi-bin/koha/acqui/invoice.pl?op=del_adj&adjustment_id=[% adjustment.adjustment_id | html %]&invoiceid=[% invoiceid | html %]"><i class="fa fa-trash"></i> Delete</a>
235
                                                <a class="btn btn-default btn-xs delete_adjustment" href="/cgi-bin/koha/acqui/invoice.pl?op=del_adj&adjustment_id=[% adjustment.adjustment_id | html %]&invoiceid=[% invoiceid | html %]"><i class="fa fa-trash"></i> Delete</a>
236
                                            </td>
236
                                            </td>
237
                                        [% END %]
237
                                        [% END %]
238
                                    </tr>
238
                                    </tr>
239
                                [% END %]
239
                                [% END # /FOREACH adjustment %]
240
                            </table>
240
                            </table> <!-- /#invoice_adj_table -->
241
                        [% END %]
241
                        [% END # /IF adjustments %]
242
242
243
                        [% UNLESS readonly %]
243
                        [% UNLESS readonly %]
244
                            <p>
244
                            <p>
Lines 272-278 Link Here
272
                                            <span>None</span>
272
                                            <span>None</span>
273
                                            <div class="hint">Define values in authorised value category ADJ_REASON to enable</div>
273
                                            <div class="hint">Define values in authorised value category ADJ_REASON to enable</div>
274
                                        </li>
274
                                        </li>
275
                                    [% END %]
275
                                    [% END # /IF reasons.0 %]
276
                                    <li>
276
                                    <li>
277
                                        <label for="note_new">Note: </label>
277
                                        <label for="note_new">Note: </label>
278
                                        <input type="text" name="note" id="note_new" value=""/>
278
                                        <input type="text" name="note" id="note_new" value=""/>
Lines 290-301 Link Here
290
                                        <a href="#" id="cancel_invoice_adjustment" class="toggle_invoice_adjustment" style="display:none"><i class="fa fa-remove"></i> Cancel</a>
290
                                        <a href="#" id="cancel_invoice_adjustment" class="toggle_invoice_adjustment" style="display:none"><i class="fa fa-remove"></i> Cancel</a>
291
                                    </li>
291
                                    </li>
292
                                </ol>
292
                                </ol>
293
                            </fieldset>
293
                            </fieldset> <!-- /#add_invoice_adjustment -->
294
                            <fieldset class="action">
294
                            <fieldset class="action">
295
                                <input type="hidden" name="op" value="mod_adj" />
295
                                <input type="hidden" name="op" value="mod_adj" />
296
                                <input type="submit" class="btn btn-primary" value="Update adjustments" />
296
                                <input type="submit" class="btn btn-primary" value="Update adjustments" />
297
                            </fieldset>
297
                            </fieldset>
298
                        [% END %]
298
                        [% END #/UNLESS readonly %]
299
                    </fieldset>
299
                    </fieldset>
300
                </form>
300
                </form>
301
301
Lines 382-388 Link Here
382
                                            <a href="#" class="modify_fund" data-order_id="[% order.ordernumber | html %]" data-budget_id="[% order.budget_id | html %]" data-sort_1="[% order.sort1 | html %]" data-sort_2="[% order.sort2 | html %]" data-sort1="[% order.sort1 | html %]" data-sort2="[% order.sort2 | html %]">Modify fund</a>
382
                                            <a href="#" class="modify_fund" data-order_id="[% order.ordernumber | html %]" data-budget_id="[% order.budget_id | html %]" data-sort_1="[% order.sort1 | html %]" data-sort_2="[% order.sort2 | html %]" data-sort1="[% order.sort1 | html %]" data-sort2="[% order.sort2 | html %]">Modify fund</a>
383
                                        </td>
383
                                        </td>
384
                                    </tr>
384
                                    </tr>
385
                                [% END %]
385
                                [% END # /FOREACH order %]
386
                            </tbody>
386
                            </tbody>
387
                            <tfoot>
387
                            <tfoot>
388
                                [% FOR tf IN foot_loop %]
388
                                [% FOR tf IN foot_loop %]
Lines 398-404 Link Here
398
                                        <th>[% tf.tax_value | $Price %]</th>
398
                                        <th>[% tf.tax_value | $Price %]</th>
399
                                        <th>&nbsp;</th>
399
                                        <th>&nbsp;</th>
400
                                    </tr>
400
                                    </tr>
401
                                [% END %]
401
                                [% END # /FOR tf %]
402
                                <tr>
402
                                <tr>
403
                                    <th colspan="2">Total ([% currency.symbol | html %])</th>
403
                                    <th colspan="2">Total ([% currency.symbol | html %])</th>
404
                                    <th class="tax_excluded"></th>
404
                                    <th class="tax_excluded"></th>
Lines 424-430 Link Here
424
                                    <th>&nbsp;</th>
424
                                    <th>&nbsp;</th>
425
                                </tr>
425
                                </tr>
426
                            </tfoot>
426
                            </tfoot>
427
                        </table>
427
                        </table> <!-- /#orderst -->
428
                    [% ELSE %]
428
                    [% ELSE %]
429
                        <div class="dialog message">
429
                        <div class="dialog message">
430
                            <p>No orders yet</p>
430
                            <p>No orders yet</p>
Lines 432-438 Link Here
432
                                <p>Adjustments plus shipping: [% total_adj + shipmentcost | $Price %]</p>
432
                                <p>Adjustments plus shipping: [% total_adj + shipmentcost | $Price %]</p>
433
                            [% END %]
433
                            [% END %]
434
                        </div>
434
                        </div>
435
                    [% END %]
435
                    [% END # /IF orders_loop.size %]
436
                    [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
436
                    [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
437
                        <br />
437
                        <br />
438
                        <h2>Files attached to invoice</h2>
438
                        <h2>Files attached to invoice</h2>
Lines 459-466 Link Here
459
                                    </tr>
459
                                    </tr>
460
                                [% END %]
460
                                [% END %]
461
                            </tbody>
461
                            </tbody>
462
                        </table>
462
                        </table> <!-- /#invoice_files_table -->
463
                    [% END %]
463
                    [% END # /IF AcqEnableFiles %]
464
                </fieldset>
464
                </fieldset>
465
            </main>
465
            </main>
466
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
466
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
Lines 500-509 Link Here
500
            </div>
500
            </div>
501
            <div class="modal-footer">
501
            <div class="modal-footer">
502
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
502
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
503
            </div>
503
            </div> <!-- /.modal-footer -->
504
        </div>
504
        </div> <!-- /.modal-content -->
505
    </div>
505
    </div> <!-- /.modal-dialog -->
506
</div>
506
</div> <!-- /#updateFund.modal -->
507
507
508
<span style="display:none;" id="all_fund_dropdown">
508
<span style="display:none;" id="all_fund_dropdown">
509
    [% FOREACH budget IN budgets %]
509
    [% FOREACH budget IN budgets %]
Lines 512-519 Link Here
512
        [% ELSE %]
512
        [% ELSE %]
513
            <option value="[% budget.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat |html %]">[% budget.b_txt | html %] (inactive)</option>
513
            <option value="[% budget.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat |html %]">[% budget.b_txt | html %] (inactive)</option>
514
        [% END %]
514
        [% END %]
515
    [% END %]
515
    [% END # /FOREACH budget %]
516
</span>
516
</span> <!-- /#all_fund_dropdown -->
517
517
518
[% MACRO jsinclude BLOCK %]
518
[% MACRO jsinclude BLOCK %]
519
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
519
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
520
- 

Return to bug 32743