]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/invoice/view.tt2
#LP801961, error when running edi_fetcher.pl
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / invoice / view.tt2
1 [% WRAPPER 'default/base.tt2' %]
2 [% ctx.page_title = 'Invoicing' %]
3 <script type="text/javascript">var invoiceId = '[% ctx.page_args.0 %]';</script>
4 <div dojoType="dijit.layout.ContentPane" style="height:100%">
5
6     <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
7         <div> Invoice </div>
8         <div> </div>
9     </div>
10
11     <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
12         <div id='acq-view-invoice-div'/>
13     </div>
14
15     <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
16         <table class='oils-acq-invoice-table'>
17             <thead/>
18             <tbody id='acq-invoice-entry-header' class='hidden'>
19                 <tr>
20                     <td colspan='0'>
21                         <h3>Bibliographic Items</h3>
22                     </td>
23                 </tr>
24             </tbody>
25             <!-- acq.invoice_entry -->
26             <thead id='acq-invoice-entry-thead' class='hidden'>
27                 <tr>
28                     <th colspan='2'>Title Details</th>
29                     <th class='acq-invoice-center-col'>#&nbsp;Invoiced&nbsp;/&nbsp;#&nbsp;Paid</th>
30                     <th class='acq-invoice-center-col'>Billed</th>
31                     <th class='acq-invoice-paid-col'>Paid</th>
32                     <th class='acq-invoice-center-col hide-complete'>Detach</th>
33                 </tr>
34             </thead>
35             <tbody id='acq-invoice-entry-tbody' class='hidden'>
36                 <tr id='acq-invoice-entry-template' class='acq-invoice-row'>
37                     <td colspan='2'>
38                         <div name='title_details'></div>
39                         <div name='note'></div>
40                     </td>
41                     <td class='acq-invoice-center-col'>
42                         <span name='inv_item_count'></span>&nbsp;/&nbsp;<span name='phys_item_count'></span>
43                     </td>
44                     <td class='acq-invoice-billed-col'><div name='cost_billed'/></td>
45                     <td class='acq-invoice-paid-col'><div name='amount_paid'/></td>
46                     <td class='acq-invoice-center-col hide-complete'><a href='javascript:void(0);' name='detach'>Detach</a></td>
47                 </tr>
48             </tbody>
49             <tbody>
50                 <tr>
51                     <td  style='margin-top:15px;' colspan='0'>
52                         <h3>Direct Charges, Taxes, Fees, etc.</h3>
53                     </td>
54                 </tr>
55             </tbody>
56             <!-- acq.invoice_item -->
57             <thead>
58                 <tr>
59                     <th>Charge Type</th>
60                     <th class='acq-invoice-center-col'>Fund</th>
61                     <th>Title/Description</th>
62                     <th class='acq-invoice-center-col'>Billed</th>
63                     <th class='acq-invoice-paid-col'>Paid</th>
64                     <th class='acq-invoice-center-col hide-complete'>Delete</th>
65                 </tr>
66             </thead>
67             <tbody id='acq-invoice-item-tbody'>
68                 <tr id='acq-invoice-item-template' class='acq-invoice-row acq-invoice-item-row'>
69                     <td><div name='inv_item_type'/></td>
70                     <td class='acq-invoice-center-col'><div name='fund'/></td>
71                     <td><div name='title'/></td>
72                     <td class='acq-invoice-center-col' class='acq-invoice-billed-col'><div name='cost_billed'/></td>
73                     <td class='acq-invoice-paid-col'><div name='amount_paid'/></td>
74                     <td class='acq-invoice-center-col hide-complete'><a href='javascript:void(0);' name='delete'>Delete</a></td>
75                 </tr>
76             </tbody>
77             <tbody class='hide-complete'>
78                 <tr>
79                     <td colspan='0'>
80                         <a href='javascript:void(0);' id='acq-invoice-new-item'>Add Charge...</a>
81                     </td>
82                 </tr>
83             </tbody>
84             <tbody>
85                 <tr>
86                     <td style='margin-top:15px;' colspan='0'> 
87                         <h3> </h3>
88                     </td>
89                 </tr>
90             </tbody>
91             <thead>
92                 <tr>
93                     <th colspan='3'/>
94                     <th class='acq-invoice-center-col' class='acq-invoice-billed-col'>Total</th>
95                     <th class='acq-invoice-paid-col'>Total</th>
96                     <th class='acq-invoice-center-col' class='acq-invoice-balance-col'>Balance</th>
97                 </tr>
98             </thead>
99             <tbody>
100                 <tr>
101                     <td colspan='3' style='text-align:right;'>
102                         <button jsId='invoiceSaveButton' class='hide-complete'
103                             dojoType='dijit.form.Button' onclick='saveChanges();'>Save</button>
104                         <button jsId='invoiceProrateButton' class='hide-complete'
105                             dojoType='dijit.form.Button' onclick='saveChanges(true);'>Save &amp; Prorate</button>
106                         <button jsId='invoiceCloseButton' class='hide-complete'
107                             dojoType='dijit.form.Button' onclick='saveChanges(false, true);'>Save &amp; Close</button>
108                         <span class='hidden' id='acq-invoice-reopen-button-wrapper'>
109                             <button jsId='invoiceReopenButton' 
110                                 dojoType='dijit.form.Button' onclick='saveChanges(false, false, true);'>Reopen Invoice</button>
111                         </span>
112                     </td>
113                     <td class='acq-invoice-center-col'><div jsId='totalInvoicedBox' dojoType='dijit.form.CurrencyTextBox' style='width:9em;'/></td>
114                     <td class='acq-invoice-paid-col'><div jsId='totalPaidBox' dojoType='dijit.form.CurrencyTextBox' style='width:9em;'/></td>
115                     <td class='acq-invoice-center-col'><div jsId='balanceOwedBox' dojoType='dijit.form.CurrencyTextBox' style='width:9em;'/></td>
116                 </tr>
117             </tbody>
118         </table>
119     </div>
120 </div>
121 <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'/>
122 <div jsId='extraItemsDialog' dojoType="dijit.Dialog" title="Extra Items">
123     <div dojoType="dijit.layout.ContentPane" style='text-align:center;'>
124         <div id='acq-invoice-extra-copies-message'></div>
125         <br/>
126         Select a fund for the new items: <div id='acq-invoice-extra-copies-fund'></div>
127         <br/><br/>
128         <br/><br/>
129         <span style='padding-right: 10px;'>
130             <button dojoType='dijit.form.Button' jsId='extraCopiesCancel'>Cancel</button>
131         </span>
132         <button dojoType='dijit.form.Button' jsId='extraCopiesGo'>Add New Items</button>
133     </div>
134 </div>
135 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/invoice/common.js'> </script>
136 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/invoice/view.js'> </script>
137 [% END %]