1 [% WRAPPER 'default/base.tt2' %]
2 [% ctx.page_title = 'Invoicing' %]
3 <script src='[% ctx.media_prefix %]/js/ui/default/acq/invoice/common.js'> </script>
4 <script src='[% ctx.media_prefix %]/js/ui/default/acq/invoice/view.js'> </script>
5 <script type="text/javascript">var invoiceId = '[% ctx.page_args.0 %]';</script>
6 <div dojoType="dijit.layout.ContentPane" style="height:100%">
8 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
13 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
14 <div id='acq-view-invoice-div'/>
17 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
18 <table class='oils-acq-invoice-table'>
20 <tbody id='acq-invoice-entry-header' class='hidden'>
23 <h3>Bibliographic Items</h3>
27 <!-- acq.invoice_entry -->
28 <thead id='acq-invoice-entry-thead' class='hidden'>
30 <th colspan='2'>Title Details</th>
31 <th class='acq-invoice-center-col'># Invoiced / # Paid</th>
32 <th class='acq-invoice-center-col'>Billed</th>
33 <th class='acq-invoice-paid-col'>Paid</th>
34 <th class='acq-invoice-center-col hide-complete'>Detach</th>
37 <tbody id='acq-invoice-entry-tbody' class='hidden'>
38 <tr id='acq-invoice-entry-template' class='acq-invoice-row'>
40 <div name='title_details'></div>
41 <div name='note'></div>
43 <td class='acq-invoice-center-col'>
44 <span name='inv_item_count'></span> / <span name='phys_item_count'></span>
46 <td class='acq-invoice-billed-col'><div name='cost_billed'/></td>
47 <td class='acq-invoice-paid-col'><div name='amount_paid'/></td>
48 <td class='acq-invoice-center-col hide-complete'><a href='javascript:void(0);' name='detach'>Detach</a></td>
53 <td style='margin-top:15px;' colspan='0'>
54 <h3>Direct Charges, Taxes, Fees, etc.</h3>
58 <!-- acq.invoice_item -->
62 <th class='acq-invoice-center-col'>Fund</th>
63 <th>Title/Description</th>
64 <th class='acq-invoice-center-col'>Billed</th>
65 <th class='acq-invoice-paid-col'>Paid</th>
66 <th class='acq-invoice-center-col hide-complete'>Delete</th>
69 <tbody id='acq-invoice-item-tbody'>
70 <tr id='acq-invoice-item-template' class='acq-invoice-row acq-invoice-item-row'>
71 <td><div name='inv_item_type'/></td>
72 <td class='acq-invoice-center-col'><div name='fund'/></td>
73 <td><div name='title'/></td>
74 <td class='acq-invoice-center-col' class='acq-invoice-billed-col'><div name='cost_billed'/></td>
75 <td class='acq-invoice-paid-col'><div name='amount_paid'/></td>
76 <td class='acq-invoice-center-col hide-complete'><a href='javascript:void(0);' name='delete'>Delete</a></td>
79 <tbody class='hide-complete'>
82 <a href='javascript:void(0);' id='acq-invoice-new-item'>Add Charge...</a>
88 <td style='margin-top:15px;' colspan='0'>
96 <th class='acq-invoice-center-col' class='acq-invoice-billed-col'>Total</th>
97 <th class='acq-invoice-paid-col'>Total</th>
98 <th class='acq-invoice-center-col' class='acq-invoice-balance-col'>Balance</th>
103 <td colspan='4' style='text-align:right;'>
104 <button jsId='invoiceSaveButton' class='hide-complete'
105 dojoType='dijit.form.Button' onclick='saveChanges();'>Save</button>
106 <button jsId='invoiceProrateButton' class='hide-complete'
107 dojoType='dijit.form.Button' onclick='saveChanges(true);'>Save & Prorate</button>
108 <button jsId='invoiceCloseButton' class='hide-complete'
109 dojoType='dijit.form.Button' onclick='saveChanges(false, true);'>Save & Close</button>
110 <span class='hidden' id='acq-invoice-reopen-button-wrapper'>
111 <button jsId='invoiceReopenButton'
112 dojoType='dijit.form.Button' onclick='saveChanges(false, false, true);'>Reopen Invoice</button>
115 <td class='acq-invoice-center-col'><div jsId='totalInvoicedBox' dojoType='dijit.form.CurrencyTextBox' style='width:6em;'/></td>
116 <td class='acq-invoice-paid-col'><div jsId='totalPaidBox' dojoType='dijit.form.CurrencyTextBox' style='width:6em;'/></td>
117 <td class='acq-invoice-center-col'><div jsId='balanceOwedBox' dojoType='dijit.form.CurrencyTextBox' style='width:6em;'/></td>
123 <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'/>
124 <div jsId='extraItemsDialog' dojoType="dijit.Dialog" title="Extra Items">
125 <div dojoType="dijit.layout.ContentPane" style='text-align:center;'>
126 <div id='acq-invoice-extra-copies-message'></div>
128 Select a fund for the new items: <div id='acq-invoice-extra-copies-fund'></div>
131 <span style='padding-right: 10px;'>
132 <button dojoType='dijit.form.Button' jsId='extraCopiesCancel'>Cancel</button>
134 <button dojoType='dijit.form.Button' jsId='extraCopiesGo'>Add New Items</button>