|
|
@@ -239,7 +239,15 @@ Ext.define('saas.view.core.report.ReportPanel', {
|
|
|
return s.hasOwnProperty(name);
|
|
|
})
|
|
|
if(type && d) {
|
|
|
- c.summaryValue = Ext.util.Format.number(d[name], c.format || '0.00');
|
|
|
+ if(type == 'count') {
|
|
|
+ c.summaryValue = Ext.util.Format.number(d[name], c.format || '0');
|
|
|
+ }else if(typeof c.summaryRender == 'function') {
|
|
|
+ c.summaryValue = c.summaryRender(d[name]);
|
|
|
+ }else if(typeof c.renderer == 'function') {
|
|
|
+ c.summaryValue = c.renderer(d[name]);
|
|
|
+ }else {
|
|
|
+ c.summaryValue = Ext.util.Format.number(d[name], c.format || '0.00');
|
|
|
+ }
|
|
|
}else {
|
|
|
c.summaryValue = 0;
|
|
|
}
|