this.load({ method: 'GET', params: { '_id' : _this.data.gltrans_id }});
return;
}
- this.grid.footer.onClick('first'); // clear..
+ _this.grid.footer.onClick('first'); // clear..
return;
}
if (action.type == 'load') {
- this.grid.footer.onClick('first');
+ _this.grid.footer.onClick('first');
return;
}
if (action.type =='submit') {
xns: Roo.form,
fieldLabel : 'Sequence',
name : 'gltrans_sequence',
+ readOnly : true,
width : 100
},
{
xns: Roo.form,
fieldLabel : 'Journal No.',
name : 'gltrans_journalnumber',
+ readOnly : true,
width : 75
},
{
{
xtype: 'TextField',
xns: Roo.form,
- fieldLabel : 'Entered',
- name : 'gltrans_entered',
+ fieldLabel : 'Created',
+ name : 'gltrans_created',
+ readOnly : true,
width : 150
}
]
xns: Roo.form,
boxLabel : 'Posted',
fieldLabel : 'Status',
- name : 'Posted',
- width : 75
+ name : 'gltrans_posted',
+ width : 100,
+ inputValue : true
},
{
xtype: 'Row',
xns: Roo.form,
boxLabel : 'Recorded in Bank Reconcile',
fieldLabel : ' ',
+ inputValue : true,
name : 'gltrans_rec',
width : 200
},
xns: Roo.form,
boxLabel : 'Deleted',
fieldLabel : 'Deleted',
+ inputValue : true,
name : 'gltrans_deleted',
width : 75
}
xns: Roo.form,
fieldLabel : 'Source',
name : 'gltrans_source',
+ readOnly : true,
width : 100
},
{
xns: Roo.form,
fieldLabel : 'Doc Type',
name : 'gltrans_doctype',
+ readOnly : true,
width : 100
},
{
xns: Roo.form,
fieldLabel : 'References',
name : 'gltrans_misc_id',
+ readOnly : true,
width : 75
+ },
+ {
+ xtype: 'Button',
+ xns: Roo,
+ text : "Show"
}
]
},
{
- xtype: 'TextField',
+ xtype: 'Row',
xns: Roo.form,
- fieldLabel : 'Doc No.',
- name : 'gltrans_docnumber',
- width : 400
+ items : [
+ {
+ xtype: 'TextField',
+ xns: Roo.form,
+ fieldLabel : 'Doc No.',
+ name : 'gltrans_docnumber',
+ width : 100
+ },
+ {
+ xtype: 'TextField',
+ xns: Roo.form,
+ fieldLabel : 'Notes',
+ name : 'gltrans_notes',
+ width : 300
+ }
+ ]
}
]
}
renderer : function(v) {
var vv = Roo.util.Format.number(v,2);
- if (v < 0 ) {
- return '<span color="red">' + vv + '</span>';
+ if (v*1 < 0 ) {
+ return '<span style="color:red">' + vv + '</span>';
}
return vv;
}