[open-ils-commits] r16390 - trunk/Open-ILS/web/js/ui/default/acq/invoice (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed May 5 13:45:11 EDT 2010
Author: erickson
Date: 2010-05-05 13:45:07 -0400 (Wed, 05 May 2010)
New Revision: 16390
Modified:
trunk/Open-ILS/web/js/ui/default/acq/invoice/view.js
Log:
don't assume order date is set in invoice po_item rendering
Modified: trunk/Open-ILS/web/js/ui/default/acq/invoice/view.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/invoice/view.js 2010-05-05 17:45:06 UTC (rev 16389)
+++ trunk/Open-ILS/web/js/ui/default/acq/invoice/view.js 2010-05-05 17:45:07 UTC (rev 16390)
@@ -333,6 +333,8 @@
var po_item = item.po_item();
var node = nodeByName('inv_item_type', row);
var itemType = itemTypes.filter(function(t) { return (t.code() == item.inv_item_type()) })[0];
+ orderDate = (!po.order_date()) ? '' :
+ dojo.date.locale.format(dojo.date.stamp.fromISOString(po.order_date()), {selector:'date'});
node.innerHTML = dojo.string.substitute(
localeStrings.INVOICE_ITEM_PO_DETAILS,
@@ -341,7 +343,7 @@
oilsBasePath,
po.id(),
po.name(),
- dojo.date.locale.format(dojo.date.stamp.fromISOString(po.order_date()), {selector:'date'}),
+ orderDate,
po_item.estimated_cost()
]
);
More information about the open-ils-commits
mailing list