|
@@ -505,6 +505,13 @@ module.exports = app => {
|
|
return rptPaymentSafe.getReportData(params, sourceFilters, memFieldKeys);
|
|
return rptPaymentSafe.getReportData(params, sourceFilters, memFieldKeys);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ async payment(params, sourceFilters, memFieldKeys) {
|
|
|
|
+ const RptPayment = require('../lib/rm/payment');
|
|
|
|
+ const rptPayment = new RptPayment(this.ctx);
|
|
|
|
+
|
|
|
|
+ return rptPayment.getReportData(params, sourceFilters, memFieldKeys);
|
|
|
|
+ }
|
|
|
|
+
|
|
async getReportData(source_type, params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
async getReportData(source_type, params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
const sourceType = sourceTypeConst.sourceTypeData.find(x => { return x.id === source_type; });
|
|
const sourceType = sourceTypeConst.sourceTypeData.find(x => { return x.id === source_type; });
|
|
if (!sourceType && !this[sourceType.key]) return {};
|
|
if (!sourceType && !this[sourceType.key]) return {};
|