account-financial-reporting/mis_builder_demo/mis.report.kpi.csv

1.0 KiB

1idcompare_methoddescriptionexpressiondividernamedpsequencetypesuffix
2mis_report_kpi_1PercentageCA-bal[X2001]ca1Numeric
3mis_report_kpi_2PercentageCAHT invoicesum([s.amount_untaxed for s in inv])total_invoice2Numeric
4mis_report_kpi_3PercentageCostbal[X2110]cost3Numeric
5mis_report_kpi_4PercentageProfitca - costprofit4Numeric
6mis_report_kpi_5DifferenceMarginprofit/camargin5Percentage%
7mis_report_phonecall_kpi_1PercentageTotal phone calllen(phone)total_phone_call1Numeric
8mis_report_phonecall_kpi_2PercentageAverage duration phone callsum([p.duration for p in phone])/total_phone_callaverage_duration_phone_call22Numeric
9mis_report_phonecall_kpi_3PercentageTotal converted phone callsum([p.opportunity_id and 1 or 0 for p in phone])phone_call_convert3Numeric
10mis_report_phonecall_kpi_4PercentageAverage duration converted phone callsum([p.opportunity_id and p.duration or 0 for p in phone])average_convert_duration_phone_c24Numeric