Browse Source

报表-应收账款明细-单据总金额合计

zhuth 7 years ago
parent
commit
b3f09a3dfb
1 changed files with 8 additions and 1 deletions
  1. 8 1
      frontend/saas-web/app/view/money/report/RecDetail.js

+ 8 - 1
frontend/saas-web/app/view/money/report/RecDetail.js

@@ -124,7 +124,14 @@ Ext.define('saas.view.money.report.RecDetail', {
             text: '单据总金额',
             dataIndex: 'pi_total',
             xtype: 'numbercolumn',
-            width: 110
+            width: 110,
+            summaryType: 'sum',
+            summaryRenderer: function(v) {
+                var arr = (v + '.').split('.');
+                var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
+                var format = '0,000.' + xr.join();
+                return Ext.util.Format.number(v, format);
+            }
         }, {
             text: '备注',
             dataIndex: 'pd_unit',