erp_app 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,9 +37,9 @@ module ErpApp
37
37
 
38
38
  def items
39
39
  render :json => {:total_count => AuditLog.find(params[:audit_log_id]).items.count,
40
- :audit_log_entries => AuditLog.find(params[:audit_log_id]).items.collect{
40
+ :audit_log_items => AuditLog.find(params[:audit_log_id]).items.collect{
41
41
  |audit_log_item| audit_log_item.to_hash(:only => [:id, :description, :created_at, :audit_log_id],
42
- :additional_values => {:value => audit_log.audit_log_item_value,
42
+ :additional_values => {:value => audit_log_item.audit_log_item_value,
43
43
  :audit_log_item_type => audit_log_item.type.description})}}
44
44
  end
45
45
 
@@ -2,7 +2,7 @@ module ErpApp
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
@@ -74,6 +74,7 @@ Ext.define('Compass.ErpApp.Desktop.Applications.AuditLogViewer.AuditLogGrid', {
74
74
  alias:'widget.audit_log_viewer-audit_log_grid',
75
75
  extend:'Ext.grid.Panel',
76
76
  title:'Audit Log Records',
77
+ autoScroll:true,
77
78
  store:Ext.getStore('audit-log-view-audit-log-entry-store'),
78
79
  dockedItems:[
79
80
  {
@@ -54,6 +54,7 @@ Ext.define('Compass.ErpApp.Desktop.Applications.AuditLogViewer.AuditLogItemGrid'
54
54
  alias:'widget.audit_log_viewer-audit_log_item_grid',
55
55
  extend:'Ext.grid.Panel',
56
56
  title:'Audit Log Items',
57
+ autoScroll:true,
57
58
  store:Ext.getStore('audit-log-view-audit-log-item-store'),
58
59
  columns:[
59
60
  {
@@ -68,27 +69,27 @@ Ext.define('Compass.ErpApp.Desktop.Applications.AuditLogViewer.AuditLogItemGrid'
68
69
  width:75
69
70
  },
70
71
  {
71
- header:'Description',
72
- dataIndex:'description',
73
- sortable:false,
74
- width:300
75
- },
72
+ header:'Audit Log Item Type',
73
+ dataIndex:'audit_log_item_type',
74
+ width:200
75
+ },
76
76
  {
77
77
  header:'Value',
78
78
  dataIndex:'value',
79
79
  sortable:false,
80
80
  width:300
81
81
  },
82
+ {
83
+ header:'Description',
84
+ dataIndex:'description',
85
+ sortable:false,
86
+ width:200
87
+ },
82
88
  {
83
89
  header:'Created At',
84
90
  dataIndex:'created_at',
85
91
  renderer:function(value){return Ext.Date.format(value, 'm-d-Y');},
86
92
  width:100
87
- },
88
- {
89
- header:'Audit Log Item Type',
90
- dataIndex:'audit_log_item_type',
91
- width:200
92
93
  }
93
94
 
94
95
  ],
@@ -1,7 +1,8 @@
1
1
  Ext.define("Compass.ErpApp.Desktop.Applications.AuditLogViewer.TabPanel", {
2
2
  alias:'widget.audit_log_viewer-tabpanel',
3
3
  extend:"Ext.tab.Panel",
4
- plugins:Ext.create('Ext.ux.TabCloseMenu', {
4
+ autoScroll:true,
5
+ plugins:Ext.create('Ext.ux.TabCloseMenu', {
5
6
  extraItemsTail:[
6
7
  '-',
7
8
  {
@@ -60,7 +61,7 @@ Ext.define("Compass.ErpApp.Desktop.Applications.AuditLogViewer", {
60
61
  {
61
62
  closable:true,
62
63
  listeners:{
63
- 'render':function(comp){
64
+ 'afterrender':function(comp){
64
65
  comp.getStore().load({params:{audit_log_id:auditLogEntry.get('id')}});
65
66
  }
66
67
  }
@@ -75,13 +76,15 @@ Ext.define("Compass.ErpApp.Desktop.Applications.AuditLogViewer", {
75
76
  win = desktop.createWindow({
76
77
  id:'audit_log_viewer',
77
78
  title:'Audit Log Viewer',
79
+ layout:'fit',
80
+ autoScroll:true,
78
81
  width:1000,
79
82
  height:540,
80
83
  iconCls:'icon-history',
81
84
  shim:false,
85
+ autoScroll:true,
82
86
  animCollapse:false,
83
87
  constrainHeader:true,
84
- layout:'fit',
85
88
  items:[container]
86
89
  });
87
90
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: will_paginate
16
- requirement: &70353213158540 !ruby/object:Gem::Requirement
16
+ requirement: &70320719949660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70353213158540
24
+ version_requirements: *70320719949660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: uglifier
27
- requirement: &70353213157940 !ruby/object:Gem::Requirement
27
+ requirement: &70320719949040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70353213157940
35
+ version_requirements: *70320719949040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: erp_tech_svcs
38
- requirement: &70353213157320 !ruby/object:Gem::Requirement
38
+ requirement: &70320719948420 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70353213157320
46
+ version_requirements: *70320719948420
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: erp_dev_svcs
49
- requirement: &70353213156460 !ruby/object:Gem::Requirement
49
+ requirement: &70320719947640 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '3.0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70353213156460
57
+ version_requirements: *70320719947640
58
58
  description: Provides an application infrastructure based on the Sencha/extjs UI framework,
59
59
  as well as several utilities and example applications. It houses the core application
60
60
  container framework and component model infrastructure that play a key role in the