1 [% WRAPPER 'default/base.tt2' %]
2 <script type="text/javascript"> var fundingSourceID = [% ctx.page_args.0 %]; </script>
4 <!-- load the page-specific JS -->
5 <script src='[% ctx.media_prefix %]/js/ui/default/acq/financial/view_funding_source.js'> </script>
7 <div id='oils-acq-list-header' class='container'>
8 <div id='oils-acq-list-header-label'>Funding Source Details</div>
11 <div class='oils-acq-actions-div' style='margin:8px;'> <!-- XXX CSS -->
13 <!-- Dropdown menu for creating a new funding source credit -->
14 <div dojoType="dijit.form.DropDownButton">
15 <span>Apply Credit</span>
16 <div dojoType="dijit.TooltipDialog" execute="applyFSCredit(arguments[0]);">
17 <table class='dijitTooltipTable'>
19 <td><label for="amount">Amount: </label></td>
21 <input dojoType="dijit.form.CurrencyTextBox" name="amount"> </input>
25 <td><label for="note">Note: </label></td>
27 <input dojoType="dijit.form.TextBox" name="note"> </input>
31 <td colspan='2' align='center'>
32 <button dojoType=dijit.form.Button type="submit">Apply</button>
38 <div dojoType="dijit.form.DropDownButton">
39 <span>Allocate to Fund</span>
40 <div dojoType="dijit.TooltipDialog" execute="applyFSAllocation(arguments[0]);">
41 <script type='dojo/connect' event='onOpen'>
42 openils.acq.Fund.createStore(
44 fundingSourceFundSelector.store =
45 new dojo.data.ItemFileReadStore({data:store});
46 fundingSourceFundSelector.setValue(store.items[0].code);
50 <table class='dijitTooltipTable'>
52 <td><label for="amount">Fund: </label></td>
54 <input jsId='fundingSourceFundSelector' name="fund"
55 dojoType="dijit.form.FilteringSelect" searchAttr='code' labelAttr='code'>
60 <td><label for="amount">Amount: </label></td>
62 <input dojoType="dijit.form.CurrencyTextBox" name="amount"> </input>
65 <!-- Percent-based allocations are not supported. Will implement or remove later.
67 <td><label for="amount">Percent: </label></td>
70 dojoType="dijit.form.NumberTextBox"
71 constraints="{min:0,max:100}"
72 promptMessage="Please enter an amount between 0 and 100"
79 <td><label for="note">Note: </label></td>
81 <input dojoType="dijit.form.TextBox" name="note"> </input>
85 <td colspan='2' align='center'>
86 <button dojoType=dijit.form.Button type="submit">Apply</button>
94 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
95 <div dojoType="dijit.layout.TabContainer">
97 <div dojoType="dijit.layout.ContentPane" class='oils-acq-detail-content-pane' title="Summary" selected='true'>
98 <script type='dojo/connect' event='onShow'>loadFSGrid();</script>
100 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
101 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
102 <table jsId="fundingSourceGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'>
105 <th field="id">ID</th>
106 <th field="name" width='auto'>Name</th>
107 <th field="code">Code</th>
108 <th field="balance" get='getSummaryInfo'>Balance</th>
109 <th field="credit_total" get='getSummaryInfo'>Total Credits</th>
110 <th field="allocation_total" get='getSummaryInfo'>Total Debits</th>
111 <th field="currency_type">Currency Type</th>
112 <th field="owner" width='auto' get='getOrgInfo'>Owner</th>
120 <div dojoType="dijit.layout.ContentPane" class='oils-acq-detail-content-pane' title="Credits">
121 <script type='dojo/connect' event='onShow'>loadCreditGrid(); </script>
123 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
124 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
128 dojoType="openils.widget.AutoGrid"
129 fieldOrder="['amount', 'effective_date', 'deadline_date', 'note']"
130 suppressFields="['id', 'funding_source']"
131 defaultCellWidth='"auto"'
134 showPaginator='true'>
140 <!-- Fund Allocations -->
141 <div dojoType="dijit.layout.ContentPane" class='oils-acq-detail-content-pane' title="Allocations">
142 <script type='dojo/connect' event='onShow'>loadAllocationGrid();</script>
144 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
145 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
148 jsId="fsAllocationGrid"
150 dojoType="openils.widget.AutoGrid"
151 fieldOrder="['fund', 'amount', 'create_time', 'allocator', 'note']"
152 suppressFields="['id', 'funding_source']"
153 defaultCellWidth='"auto"'
156 showPaginator='true'>
160 <th field='fund' get='getFund' formatter='formatFund'/>