#}
{% set summa_man = getListJobsPeriodAll.data.money_to_pay[get.sp][man_id] %}
{#{ summa_man|number_format(0, '.', '`') }#}
{% if 1 == 2 %}
{{ pa(summa_man,2) }}
{% endif %}
{% set buh_pm_cfg = get_buh_PM_cfg() %}
{% if 1 == 2 %}
{{ pa(buh_pm_cfg,2) }}
{% endif %}
{% set pm_user = job_buh__get_buh_PM(db,get.d_start,man_id) %}
{% if 1 == 2 %}
{{ pa(pm_user,2) }}
{% endif %}
{{ summa_man|number_format(2, '.', '`') }}
{% set show_dop = 0 %}
{% if 1 == 2 %}
getListJobsPeriodAll.data.oplats
{{ pa(getListJobsPeriodAll.data.oplats) }}
{% endif %}
{% set show_dop2 = 0 %}
{% for k7, pay in getListJobsPeriodAll.data.oplats
if
pay.jobman == man_id
and pay.sale_point == get.sp
and pay.summa is defined
and pay.date_end_period is defined
and pay.date_end_period >= get.d_start
and pay.date_end_period <= get.d_fin
%}
{% if show_dop2 == 0 %}
{% set show_dop2 = 1 %}
{% if show_dop == 0 %}
{% endif %}
Произведённые выплаты:
{% endif %}
{#{ pa(pay) }#}
{{ pay.date ?? '' }} / {{ pay.summa|number_format(2,'.','`') }}
{% set summa_man = summa_man - pay.summa %}
{% endfor %}
{% if 1 == 2 %}
{% endif %}
|
{# плюсы #}
{% for k,v in buh_pm_cfg.plus if k != 'skip' and pm_user[k]['summa'] is defined %}
|
{{ v }}
|
{{ pm_user[k]['summa']|number_format(2,'.','`') }}
{% set summa_man = summa_man + pm_user[k]['summa'] %}
|
{% endfor %}
|
{# взыскания #}
{% for k,v in buh_pm_cfg.minus if k != 'skip' and pm_user[k]['summa'] is defined %}
|
{{ v }}
|
{{ pm_user[k]['summa']|number_format(2,'.','`') }}
{% set summa_man = summa_man - pm_user[k]['summa'] %}
|
{% endfor %}
|
{% if get.d_fin|date('d') == 20 %}
{% set summa90 = summa_man/100*90 %}
{#% set summa_all = summa90 - ( pm_user['avans_on_karta']['summa'] ?? 0 ) - ( pm_user['ndfl']['summa'] ?? 0 ) %#}
{% set summa_all = summa90 %}
{% set a22 = summa_all/100 %}
{% set a1 = a22|round(0,'floor')*100 %}
{% else %}
{% set a1 = summa_man %}
{% endif %}
{{ a1|number_format(2, '.', '`') }}
|
|
{% endspaceless %}