lp1436797-Remove grocery from the UI user/kmlussier/lp1436797-remove-grocery-from-ui
authorKathy Lussier <klussier@masslnc.org>
Fri, 7 Aug 2015 20:23:19 +0000 (16:23 -0400)
committerKathy Lussier <klussier@masslnc.org>
Mon, 10 Aug 2015 02:59:58 +0000 (22:59 -0400)
Removes xact_type as a menu when adding a bill and from column lists. End
users are confused by the 'grocery' terminology and the info isn't
really necessary to display in the UI. This branch also displays the
last billing type and last billing note by default since these two fields
will let staff know if the bill is system generated.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/xul/staff_client/server/patron/bill_history.js
Open-ILS/xul/staff_client/server/patron/bill_wizard.xul
Open-ILS/xul/staff_client/server/patron/util.js

index d897f6f..33c237c 100644 (file)
@@ -177,11 +177,6 @@ function init_payments_list() {
     g.payments_list.init( {
         'columns' : g.payments_list.fm_columns('mp').concat( [
             {
-                'id' : 'payments_blob_xact_type', 'flex' : 0,
-                'label' : $('patronStrings').getString('staff.patron.bill_history.column.xact_type.label'),
-                'render' : function(my) { return my.xact_type; }
-            },
-            {
                 'id' : 'payments_blob_last_billing_type', 'flex' : 0,
                 'label' : $('patronStrings').getString('staff.patron.bill_history.column.last_billing_type.label'),
                 'render' : function(my) { return my.last_billing_type; }
index 44cb12a..dcf8d7a 100644 (file)
                     <columns> <column flex="0" /> <column flex="0" /> </columns>
                     <rows id="page1_rows">
                         <row><label value="&staff.patron.bill_wizard.location.value;"/><textbox id="wizard_billing_location" disabled="true" context="clipboard" /></row>
-                        <row><label value="&staff.patron.bill_wizard.transaction_type.value;"/>
-                            <menulist id="xact_type">
-                                <menupopup>
-                                    <menuitem label="&staff.patron.bill_wizard.grocery.label;" value="grocery" selected="true"/>
-                                    <menuitem label="&staff.patron.bill_wizard.circulation.label;" value="circulation" disabled="true"/>
-                                </menupopup>
-                            </menulist>
-                        </row>
                         <row><label value="&staff.patron.bill_wizard.billing_type.label;"/>
                             <hbox id="menu_placeholder"/>
                         </row>
index d77b3de..b07c128 100644 (file)
@@ -27,10 +27,6 @@ patron.util.mbts_columns = function(modify,params) {
             'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return my.mbts.usr() ? "Id = " + my.mbts.usr() : ""; }
         },
         {
-            'id' : 'xact_type', 'label' : commonStrings.getString('staff.mbts_xact_type_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return my.mbts.xact_type(); }
-        },
-        {
             'id' : 'balance_owed', 'label' : commonStrings.getString('staff.mbts_balance_owed_label'), 'flex' : 1,
             'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return util.money.sanitize( my.mbts.balance_owed() ); },
             'sort_type' : 'money'
@@ -47,11 +43,11 @@ patron.util.mbts_columns = function(modify,params) {
         },
         {
             'id' : 'last_billing_note', 'label' : commonStrings.getString('staff.mbts_last_billing_note_label'), 'flex' : 2,
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return my.mbts.last_billing_note(); }
+            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return my.mbts.last_billing_note(); }
         },
         {
             'id' : 'last_billing_type', 'label' : commonStrings.getString('staff.mbts_last_billing_type_label'), 'flex' : 1,
-            'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { return my.mbts.last_billing_type(); }
+            'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return my.mbts.last_billing_type(); }
         },
         {
             'id' : 'last_billing_ts', 'label' : commonStrings.getString('staff.mbts_last_billing_timestamp_label'), 'flex' : 1,