[open-ils-commits] r16224 - in trunk/Open-ILS/web: js/ui/default/acq/invoice templates/default/acq/invoice (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 13 11:18:15 EDT 2010
Author: erickson
Date: 2010-04-13 11:18:12 -0400 (Tue, 13 Apr 2010)
New Revision: 16224
Modified:
trunk/Open-ILS/web/js/ui/default/acq/invoice/view.js
trunk/Open-ILS/web/templates/default/acq/invoice/view.tt2
Log:
added a balance owed column to invoice UI
Modified: trunk/Open-ILS/web/js/ui/default/acq/invoice/view.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/invoice/view.js 2010-04-13 14:07:06 UTC (rev 16223)
+++ trunk/Open-ILS/web/js/ui/default/acq/invoice/view.js 2010-04-13 15:18:12 UTC (rev 16224)
@@ -27,6 +27,7 @@
var entryTemplate;
var totalInvoicedBox;
var totalPaidBox;
+var balanceOwedBox;
var invoicePane;
var itemTypes;
var virtualId = -1;
@@ -214,6 +215,12 @@
invoiceProrateButton.attr('disabled', false);
}
}
+
+ if(!balanceOwedBox) {
+ balanceOwedBox = new dijit.form.CurrencyTextBox(
+ {style : 'width: 6em'}, dojo.byId('acq-invoice-balance-owed'));
+ }
+ balanceOwedBox.attr('value', (totalCost - totalPaid));
}
Modified: trunk/Open-ILS/web/templates/default/acq/invoice/view.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/invoice/view.tt2 2010-04-13 14:07:06 UTC (rev 16223)
+++ trunk/Open-ILS/web/templates/default/acq/invoice/view.tt2 2010-04-13 15:18:12 UTC (rev 16224)
@@ -93,6 +93,7 @@
<td colspan='4'/>
<td>Total Invoiced</td>
<td>Total Paid</td>
+ <td>Balance Owed</td>
</tr>
</thead>
<tbody>
@@ -105,6 +106,7 @@
</td>
<td><div id='acq-invoice-total-invoiced'/></td>
<td><div id='acq-invoice-total-paid'/></td>
+ <td><div id='acq-invoice-balance-owed'/></td>
</tr>
</tbody>
</table>
More information about the open-ils-commits
mailing list