| 12345678910111213141516171819202122232425262728 |
- Ext.define('saas.model.report.VendorCheck', {
- extend: 'saas.model.Base',
- fields: [
- { name: 'pi_date', type: 'date' }, // 单据日期
- { name: 'pi_inoutno', type: 'string' }, // 单号
- { name: 'pi_class', type: 'string' }, // 业务类型
- { name: 'pd_pdno', type: 'int' }, // 序号
- { name: 'pr_code', type: 'string' }, // 物料编号
- { name: 'pr_brand', type: 'string' }, // 品牌
- { name: 'pr_detail', type: 'string' }, // 名称
- { name: 'pr_orispeccode', type: 'string' }, // 型号
- { name: 'pr_spec', type: 'string' }, // 规格
- { name: 'qty', type: 'float' }, // 数量
- { name: 'pd_unit', type: 'string' }, // 单位
- { name: 'pd_netprice', type: 'float' }, // 单价
- { name: 'pd_nettotal', type: 'float' }, // 金额
- { name: 'pd_taxrate', type: 'float' }, // 税率
- { name: 'pd_ordertotal-pd_nettotal', type: 'float', // 税额
- convert: function(v, rec) {
- var t = (rec.get('pd_ordertotal') || 0.0) - (rec.get('pd_nettotal') || 0.0);
- return Number(saas.util.BaseUtil.numberFormat(t, 2, false));
- },
- depends: ['pd_ordertotal', 'pd_nettotal']
- },
- { name: 'pd_ordertotal', type: 'float' }, // 价税合计
- ],
- });
|