@@ -673,8 +673,8 @@ async def view_user_kpi_calculator(
673673 )
674674 target_calculation = KPICalculator .calculate_target_needed (
675675 user_premium .target ,
676- user_premium .target_goal_first ,
677- user_premium .target_goal_second ,
676+ user_premium .target_normative_first ,
677+ user_premium .target_normative_second ,
678678 user_premium .target_type ,
679679 is_head = True ,
680680 )
@@ -700,7 +700,7 @@ async def view_user_kpi_calculator(
700700
701701🎯 <b>Цель</b>
702702<blockquote>Факт: { SalaryFormatter .format_value (user_premium .target )} ({ SalaryFormatter .format_percentage (user_premium .target_result_first )} / { SalaryFormatter .format_percentage (user_premium .target_result_second )} )
703- План: { SalaryFormatter .format_value (round (user_premium .target_goal_first ))} / { SalaryFormatter .format_value (round (user_premium .target_goal_second ))}
703+ План: { SalaryFormatter .format_value (round (user_premium .target_normative_first ))} / { SalaryFormatter .format_value (round (user_premium .target_normative_second ))}
704704
705705<b>Для премии:</b>
706706{ target_calculation } </blockquote>
@@ -719,8 +719,8 @@ async def view_user_kpi_calculator(
719719 )
720720 target_calculation = KPICalculator .calculate_target_needed (
721721 user_premium .target ,
722- user_premium .target_goal_first ,
723- user_premium .target_goal_second ,
722+ user_premium .target_normative_first ,
723+ user_premium .target_normative_second ,
724724 user_premium .target_type ,
725725 )
726726
@@ -751,8 +751,8 @@ async def view_user_kpi_calculator(
751751{ gok_calculation } </blockquote>
752752
753753🎯 <b>Цель</b>
754- <blockquote>Факт: { SalaryFormatter .format_value (user_premium .target )} ({ SalaryFormatter .format_percentage (round ((user_premium .target_goal_first / user_premium .target * 100 ) if user_premium .target_type and "AHT" in user_premium .target_type and user_premium .target and user_premium .target > 0 and user_premium .target_goal_first else (user_premium .target / user_premium .target_goal_first * 100 ) if user_premium .target_goal_first and user_premium .target_goal_first > 0 else 0 ))} / { SalaryFormatter .format_percentage (round ((user_premium .target_goal_second / user_premium .target * 100 ) if user_premium .target_type and "AHT" in user_premium .target_type and user_premium .target and user_premium .target > 0 and user_premium .target_goal_second else (user_premium .target / user_premium .target_goal_second * 100 ) if user_premium .target_goal_second and user_premium .target_goal_second > 0 else 0 ))} )
755- План: { SalaryFormatter .format_value (round (user_premium .target_goal_first ))} / { SalaryFormatter .format_value (round (user_premium .target_goal_second ))}
754+ <blockquote>Факт: { SalaryFormatter .format_value (user_premium .target )} ({ SalaryFormatter .format_percentage (round ((user_premium .target_normative_first / user_premium .target * 100 ) if user_premium .target_type and "AHT" in user_premium .target_type and user_premium .target and user_premium .target > 0 and user_premium .target_normative_first else (user_premium .target / user_premium .target_normative_first * 100 ) if user_premium .target_normative_first and user_premium .target_normative_first > 0 else 0 ))} / { SalaryFormatter .format_percentage (round ((user_premium .target_normative_second / user_premium .target * 100 ) if user_premium .target_type and "AHT" in user_premium .target_type and user_premium .target and user_premium .target > 0 and user_premium .target_normative_second else (user_premium .target / user_premium .target_normative_second * 100 ) if user_premium .target_normative_second and user_premium .target_normative_second > 0 else 0 ))} )
755+ План: { SalaryFormatter .format_value (round (user_premium .target_normative_first ))} / { SalaryFormatter .format_value (round (user_premium .target_normative_second ))}
756756
757757Требуется минимум 100 { "чатов" if user .division == "НЦК" else "звонков" } для получения премии за цель
758758
@@ -923,7 +923,7 @@ async def view_user_kpi(
923923🎯 <b>Цель - { SalaryFormatter .format_percentage (premium .target_premium )} </b>
924924<blockquote>Тип: { premium .target_type or "—" }
925925Факт: { SalaryFormatter .format_value (premium .target )}
926- План: { SalaryFormatter .format_value (round (premium .target_goal_first ))} / { SalaryFormatter .format_value (round (premium .target_goal_second ))} </blockquote>
926+ План: { SalaryFormatter .format_value (round (premium .target_normative_first ))} / { SalaryFormatter .format_value (round (premium .target_normative_second ))} </blockquote>
927927
928928💰 <b>Итого:</b>
929929<b>Общая премия: { SalaryFormatter .format_percentage (premium .total_premium )} </b>
@@ -956,7 +956,7 @@ async def view_user_kpi(
956956🎯 <b>Цель - { SalaryFormatter .format_percentage (premium .target_premium )} </b>
957957<blockquote>Тип: { premium .target_type or "—" }
958958Факт: { SalaryFormatter .format_value (premium .target )}
959- План: { SalaryFormatter .format_value (round (premium .target_goal_first )) if premium .target_goal_first else "—" } / { SalaryFormatter .format_value (round (premium .target_goal_second )) if premium .target_goal_second else "—" } </blockquote>
959+ План: { SalaryFormatter .format_value (round (premium .target_normative_first )) if premium .target_normative_first else "—" } / { SalaryFormatter .format_value (round (premium .target_normative_second )) if premium .target_normative_second else "—" } </blockquote>
960960
961961💼 <b>Дополнительно</b>
962962<blockquote>Дисциплина: { SalaryFormatter .format_percentage (premium .discipline_premium )}
0 commit comments