| 12345678910111213141516171819202122 |
- Ext.define('saas.model.report.TotalRecDetail', {
- extend: 'saas.model.Base',
- fields: [
- { name: 'cm_yearmonth', type: 'string' }, // 期间
- { name: 'cm_custname', type: 'string' }, // 客户名称
- { name: 'cm_beginpreamount', type: 'float' }, // 期初预收
- { name: 'cm_beginamount', type: 'float' }, // 期初应收
- { name: 'cm_nowpreamount', type: 'float' }, // 本期预收
- { name: 'cm_nowamount', type: 'float' }, // 本期应收
- { name: 'cm_nowpayamount', type: 'float' }, // 本期核销
- { name: 'cm_endpreamount', type: 'float' }, // 期末预收
- { name: 'cm_endamount', type: 'float' }, // 期末应收
- { name: 'cm_endamount-cm_endpreamount', type: 'float', // 应收余额
- convert: function(v, rec) {
- var t = (rec.get('cm_endamount') || 0.0) - (rec.get('cm_endpreamount') || 0.0);
- return Number(saas.util.BaseUtil.numberFormat(t, 2, false));
- },
- depends: ['cm_endamount', 'cm_endpreamount']
- }
- ],
- });
|