Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Tab.XtuplePurchaseRecv.js
index f5a661b..20399e9 100644 (file)
@@ -137,7 +137,12 @@ Pman.Tab.XtuplePurchaseRecv = new Roo.XComponent({
                                         
                                         // only filter by type if the number is empty..
                                         if (!o.params['query[number]'].length) {
-                                            o.params.pohead_status = _this.status.getValue();
+                                            if (_this.status.getValue() != 'E') {
+                                                o.params._status = _this.status.getValue();
+                                            }
+                                        }
+                                        if (_this.status.getValue() == 'E') {
+                                            o.params['!pohead_has_error'] = 0;
                                         }
                                         
                                         
@@ -1363,13 +1368,14 @@ Pman.Tab.XtuplePurchaseRecv = new Roo.XComponent({
                                         mode : 'local',
                                         name : 'cm_status_name',
                                         triggerAction : 'all',
-                                        value : "O",
+                                        value : "OU",
                                         valueField : 'ftype',
                                         width : 150,
                                         store : {
                                             xtype: 'SimpleStore',
                                             xns: Roo.data,
                                             data : [ 
+                                                [ 'OU', "Open And Unreleased"],
                                                 [ 'O', "Open"],
                                                 [ 'C' , "Closed"],
                                                 [ 'U', "Unreleased"],
@@ -1959,7 +1965,7 @@ Pman.Tab.XtuplePurchaseRecv = new Roo.XComponent({
                                     xns: Roo.grid,
                                     align : 'right',
                                     dataIndex : 'pohead_qty_recv',
-                                    header : 'Recieved',
+                                    header : 'Received',
                                     width : 75,
                                     renderer : function(v,x,r) {