From 7ad95895551b8df71624de9b24996b2762d69d80 Mon Sep 17 00:00:00 2001
From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Tue, 13 Apr 2010 16:18:01 +0000
Subject: [PATCH] plugged in some required fields for invoicing and fund create
 dialog as proof of concept (and because it's needed)

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16227 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/web/js/ui/default/acq/invoice/common.js            | 6 ++++++
 Open-ILS/web/templates/default/acq/financial/list_funds.tt2 | 1 +
 2 files changed, 7 insertions(+)

diff --git a/Open-ILS/web/js/ui/default/acq/invoice/common.js b/Open-ILS/web/js/ui/default/acq/invoice/common.js
index c03e8cf685..00d2567e0b 100644
--- a/Open-ILS/web/js/ui/default/acq/invoice/common.js
+++ b/Open-ILS/web/js/ui/default/acq/invoice/common.js
@@ -24,6 +24,12 @@ function drawInvoicePane(parentNode, inv, args) {
         mode : (inv) ? 'edit' : 'create',
         hideActionButtons : true,
         overrideWidgetArgs : override,
+        requiredFields : [
+            'inv_ident', 
+            'recv_date', 
+            'provider', 
+            'shipper'
+        ],
         fieldOrder : [
             'inv_ident', 
             'recv_date', 
diff --git a/Open-ILS/web/templates/default/acq/financial/list_funds.tt2 b/Open-ILS/web/templates/default/acq/financial/list_funds.tt2
index 937c277f96..7dbabf74f7 100644
--- a/Open-ILS/web/templates/default/acq/financial/list_funds.tt2
+++ b/Open-ILS/web/templates/default/acq/financial/list_funds.tt2
@@ -137,6 +137,7 @@
             autoHeight='true'
             dojoType="openils.widget.AutoGrid"
             fieldOrder="['id', 'name', 'code', 'year', 'org', 'currency_type', 'combined_balance']"
+            requiredFields="['name', 'code', 'year', 'org', 'currency_type']"
             query="{id: '*'}"
             defaultCellWidth='"auto"'
             fmClass='acqf'
-- 
2.11.0